Apache Log4cxx  Version 1.2.0
Loading...
Searching...
No Matches
log4cxx::rolling::Action Class Referenceabstract

A file system action performed as part of a rollover event. More...

#include <action.h>

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

Public Member Functions

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
 

Protected Member Functions

 Action ()
 Constructor.
 
 Action (LOG4CXX_PRIVATE_PTR(ActionPrivate) priv)
 
virtual ~Action ()
 

Detailed Description

A file system action performed as part of a rollover event.

Constructor & Destructor Documentation

◆ Action() [1/2]

log4cxx::rolling::Action::Action ( )
protected

Constructor.

◆ Action() [2/2]

log4cxx::rolling::Action::Action ( LOG4CXX_PRIVATE_PTR(ActionPrivate)  priv)
protected

◆ ~Action()

virtual log4cxx::rolling::Action::~Action ( )
protectedvirtual

Member Function Documentation

◆ close()

void log4cxx::rolling::Action::close ( )

◆ execute()

virtual bool log4cxx::rolling::Action::execute ( log4cxx::helpers::Pool pool) const
pure virtual

Perform action.

Returns
true if successful.

Implemented in log4cxx::rolling::FileRenameAction, log4cxx::rolling::GZCompressAction, and log4cxx::rolling::ZipCompressAction.

◆ isComplete()

bool log4cxx::rolling::Action::isComplete ( ) const

Tests if the action is complete.

Returns
true if action is complete.

◆ reportException()

void log4cxx::rolling::Action::reportException ( const std::exception &  )

◆ run()

void log4cxx::rolling::Action::run ( log4cxx::helpers::Pool pool)

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