|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.logging.log4j.core.appender.rolling.action.AbstractAction
public abstract class AbstractAction
Abstract base class for implementations of Action.
| Field Summary | |
|---|---|
protected static Logger |
LOGGER
Allow subclasses access to the status logger without creating another instance. |
| Constructor Summary | |
|---|---|
protected |
AbstractAction()
Constructor. |
| 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(Exception ex)
Capture exception. |
void |
run()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final Logger LOGGER
| Constructor Detail |
|---|
protected AbstractAction()
| Method Detail |
|---|
public abstract boolean execute()
throws IOException
execute in interface ActionIOException - if IO error.public void run()
run in interface Runnablepublic void close()
close in interface Actionpublic boolean isComplete()
isComplete in interface Actionprotected void reportException(Exception ex)
ex - exception.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Copyright © 1999-2014 Apache Software Foundation. All Rights Reserved.
Apache Logging, Apache Log4j, Log4j, Apache, the Apache feather logo, the Apache Logging project logo, and the Apache Log4j logo are trademarks of The Apache Software Foundation.