org.x4juli.handlers.rolling.helper
Interface Action

All Superinterfaces:
java.lang.Runnable
All Known Implementing Classes:
AbstractAction

public interface Action
extends java.lang.Runnable

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

Logging API as a whole was originally done for Apache log4j. Juli is a port of main parts of that to complete the Java Logging APIs. All credits for initial idea, design, implementation, documentation belong to the log4j crew. This file was originally published by Curt Arnold. Please use exclusively the appropriate mailing lists for questions, remarks and contribution.

Since:
0.5
Author:
Boris Unckel

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

public 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.
Since:
0.5

close

public void close()
Cancels the action if not already initialized or waits till completion.

Since:
0.5

isComplete

public boolean isComplete()
Determines if action has been completed.

Returns:
true if action is complete.
Since:
0.5


${license_html}