Apache Log4cxx  Version 1.8.0
Loading...
Searching...
No Matches
log4cxx::rolling::FileRenameAction Class Reference

#include <filerenameaction.h>

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

Public Member Functions

 FileRenameAction (const File &toRename, const File &renameTo, bool renameEmptyFile)
 Constructor.
 
bool execute (LOG4CXX_EXECUTE_ACTION_FORMAL_PARAMETERS) const override
 Perform rename.
 
bool execute () const
 Perform the action.
 
virtual bool execute (helpers::Pool &pool) const=0
 
- Public Member Functions inherited from log4cxx::rolling::Action
bool execute () const
 Perform the action.
 
void run ()
 
void close ()
 
bool isComplete () const
 Is action is complete?
 
LogString getName () const
 
void reportException (const std::exception &)
 
void run (helpers::Pool &pool)
 
- 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 ()
 Constructor.
 
 Action (LOG4CXX_PRIVATE_PTR(ActionPrivate) priv)
 
virtual ~Action ()
 

Constructor & Destructor Documentation

◆ FileRenameAction()

log4cxx::rolling::FileRenameAction::FileRenameAction ( const File & toRename,
const File & renameTo,
bool renameEmptyFile )

Constructor.

Member Function Documentation

◆ execute() [1/3]

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

Perform the action.

Returns
true if successful.

◆ execute() [2/3]

virtual bool log4cxx::rolling::Action::execute ( helpers::Pool & pool) const
virtual
Deprecated
The pool parameter is not used and will be removed in a future version. Implement this method for now, but plan to migrate to execute() without a helpers::Pool parameter.

Implements log4cxx::rolling::Action.

◆ execute() [3/3]

bool log4cxx::rolling::FileRenameAction::execute ( LOG4CXX_EXECUTE_ACTION_FORMAL_PARAMETERS ) const
override

Perform rename.


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