public abstract class ActionBase extends Object implements Action
Modifier | Constructor and Description |
---|---|
protected |
ActionBase()
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() |
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 © 2013 The Apache Software Foundation. All Rights Reserved.