org.apache.log4j.rolling.helper
Interface Action

All Superinterfaces:
java.lang.Runnable
All Known Implementing Classes:
ActionBase, CompositeAction, FileRenameAction, GZCompressAction, ZipCompressAction

public interface Action
extends java.lang.Runnable

The Action interface should be implemented by any class that performs file system actions for RollingFileAppenders after the close of the active log file.

Author:
Curt Arnold

Method Summary
 void close()
          Cancels the action if not already initialized or waits till completion.
 boolean execute()
          Perform an action.
 boolean isComplete()
          Determines if action has been completed.
 
Methods inherited from interface java.lang.Runnable
run
 

Method Detail

execute

boolean execute()
                throws java.io.IOException
Perform an action.

Returns:
true if action was successful. A return value of false will cause the rollover to be aborted if possible.
Throws:
java.io.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.


Copyright © 2010 The Apache Software Foundation. Licensed under the Apache License, Version 2.0

Apache Extras Companion for Apache log4j, Apache log4j and Apache are trademarks of the Apache Software Foundation.