public abstract class AbstractAction extends Object implements Action
Modifier and Type | Field and Description |
---|---|
protected static org.apache.logging.log4j.Logger |
LOGGER
Allow subclasses access to the status logger without creating another instance.
|
Modifier | Constructor and Description |
---|---|
protected |
AbstractAction()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
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() |
protected static final org.apache.logging.log4j.Logger LOGGER
protected AbstractAction()
public abstract boolean execute() throws IOException
execute
in interface Action
IOException
- if IO error.public void close()
public boolean isComplete()
isComplete
in interface Action
protected void reportException(Exception ex)
ex
- exception.Copyright © 1999-2021 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.