Package org.apache.log4j.rolling.helper
Interface Action
- All Superinterfaces:
Runnable
- All Known Implementing Classes:
ActionBase
,CompositeAction
,FileRenameAction
,GZCompressAction
,ZipCompressAction
The Action interface should be implemented by any class that performs
file system actions for RollingFileAppenders after the close of
the active log file.
-
Method Details
-
execute
Perform an action.- Returns:
- true if action was successful. A return value of false will cause the rollover to be aborted if possible.
- Throws:
IOException
- if IO error, a thrown exception will cause the rollover to be aborted if possible.
-
close
void close()Cancels the action if not already initialized or waits till completion. -
isComplete
boolean isComplete()Determines if action has been completed.- Returns:
- true if action is complete.
-