Apache Log4cxx  Version 1.2.0
No Matches
log4cxx::rolling::ZipCompressAction Class Reference

#include <zipcompressaction.h>

Inheritance diagram for log4cxx::rolling::ZipCompressAction:
log4cxx::rolling::Action log4cxx::helpers::Object

Public Member Functions

 ZipCompressAction (const File &source, const File &destination, bool deleteSource)
bool execute (log4cxx::helpers::Pool &pool) const override
 Perform action.
void setThrowIOExceptionOnForkFailure (bool throwIO)
 Set to true to throw an IOException on a fork failure.
- Public Member Functions inherited from log4cxx::rolling::Action
virtual bool execute (log4cxx::helpers::Pool &pool) const =0
 Perform action.
void run (log4cxx::helpers::Pool &pool)
void close ()
bool isComplete () const
 Tests if the action is complete.
void reportException (const std::exception &)
- Public Member Functions inherited from log4cxx::helpers::Object
virtual ~Object ()
virtual const helpers::ClassgetClass () const =0
virtual bool instanceof (const Class &clazz) const =0
virtual const void * cast (const Class &clazz) const =0

Additional Inherited Members

- Protected Member Functions inherited from log4cxx::rolling::Action
 Action ()
 Action (LOG4CXX_PRIVATE_PTR(ActionPrivate) priv)
virtual ~Action ()

Constructor & Destructor Documentation

◆ ZipCompressAction()

log4cxx::rolling::ZipCompressAction::ZipCompressAction ( const File source,
const File destination,
bool  deleteSource 


Member Function Documentation

◆ execute()

bool log4cxx::rolling::ZipCompressAction::execute ( log4cxx::helpers::Pool pool) const

Perform action.

true if successful.

Implements log4cxx::rolling::Action.

◆ setThrowIOExceptionOnForkFailure()

void log4cxx::rolling::ZipCompressAction::setThrowIOExceptionOnForkFailure ( bool  throwIO)

Set to true to throw an IOException on a fork failure.

By default, this is true. When an IOException is thrown, this will automatically cause the error handler to be called(which is the recommended way of handling this problem). By setting this to false, the ZipCompressAction effectively turns into a FileRenameAction if any errors are encountered.


The documentation for this class was generated from the following file: