|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.x4juli.global.components.AbstractComponent
org.x4juli.handlers.rolling.helper.AbstractAction
Abstract base class for implementations of Action.
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.
| Field Summary | |
private boolean |
complete
Is action complete. |
private boolean |
interrupted
Is action interrupted. |
| Fields inherited from class org.x4juli.global.components.AbstractComponent |
manager, repository |
| Constructor Summary | |
protected |
AbstractAction()
|
| Method Summary | |
void |
close()
Cancels the action if not already initialized or waits till completion. |
abstract boolean |
execute()
Perform action. |
boolean |
isComplete()
Tests if the action is complete. |
protected void |
reportException(java.lang.Exception ex)
Capture exception. |
void |
run()
|
| Methods inherited from class org.x4juli.global.components.AbstractComponent |
getLogger, getLoggerRepository, getMessageProperties, getNonFloodingLogger, getProperty, getProperty, getProperty, getProperty, resetErrorCount, setObjectStore |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private boolean complete
private boolean interrupted
| Constructor Detail |
protected AbstractAction()
| Method Detail |
public void close()
close in interface Actionpublic boolean isComplete()
isComplete in interface Action
public abstract boolean execute()
throws java.io.IOException
execute in interface Actionjava.io.IOException - if IO error.public void run()
run in interface java.lang.Runnableprotected void reportException(java.lang.Exception ex)
ex - exception.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||