Apache log4cxx Version 0.10.0
Action Class Referenceabstract

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

#include <action.h>

Inherits ObjectImpl.

Inherited by FileRenameAction, GZCompressAction, and 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 ObjectImpl
 ObjectImpl ()
virtual ~ObjectImpl ()
void addRef () const
void releaseRef () const
Public Member Functions inherited from Object
virtual const helpers::ClassgetClass () const
virtual ~Object ()
virtual bool instanceof (const Class &clazz) const =0
virtual const void * cast (const Class &clazz) const =0

Protected Member Functions

 Action ()
 Constructor.
virtual ~Action ()

Additional Inherited Members

Static Public Member Functions inherited from Object
static const helpers::ClassgetStaticClass ()
static const log4cxx::helpers::ClassRegistrationregisterClass ()
Protected Attributes inherited from ObjectImpl
unsigned int volatile ref

Detailed Description

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

Constructor & Destructor Documentation

◆ Action()

Action ( )
protected

Constructor.

◆ ~Action()

virtual ~Action ( )
protectedvirtual

Member Function Documentation

◆ close()

void close ( )

◆ execute()

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

Perform action.

Returns
true if successful.

Implemented in FileRenameAction, GZCompressAction, and ZipCompressAction.

◆ isComplete()

bool isComplete ( ) const

Tests if the action is complete.

Returns
true if action is complete.

◆ reportException()

void reportException ( const std::exception & )

◆ run()

void run ( log4cxx::helpers::Pool & pool)

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