public abstract class AbstractAction extends Object implements Action
Modifier and Type | Field and Description |
---|---|
protected static org.apache.logging.log4j.Logger |
LOGGER
Allows 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()
Performs action.
|
boolean |
isComplete()
Tests if the action is complete.
|
boolean |
isInterrupted() |
protected void |
reportException(Exception ex)
Captures 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
public boolean isInterrupted()
protected void reportException(Exception ex)
ex
- exception.Copyright © 1999-2019 The 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.