public abstract class AbstractAction extends java.lang.Object implements Action
Modifier and Type | Field and Description |
---|---|
private boolean |
complete
Is action complete.
|
private boolean |
interrupted
Is action interrupted.
|
protected static 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(java.lang.Exception ex)
Captures exception.
|
void |
run() |
protected static final Logger LOGGER
private boolean complete
private boolean interrupted
public abstract boolean execute() throws java.io.IOException
public void run()
run
in interface java.lang.Runnable
public void close()
public boolean isComplete()
isComplete
in interface Action
public boolean isInterrupted()
protected void reportException(java.lang.Exception ex)
ex
- exception.