AbstractPathAction, CommonsCompressAction, CompositeAction, FileRenameAction, GzCompressAction, ZipCompressActionpublic abstract class AbstractAction extends Object implements Action
| Modifier and Type | Field | Description |
|---|---|---|
protected static Logger |
LOGGER |
Allows subclasses access to the status logger without creating another instance.
|
| Modifier | Constructor | Description |
|---|---|---|
protected |
AbstractAction() |
Constructor.
|
| Modifier and Type | Method | 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 Logger LOGGER
public abstract boolean execute()
throws IOException
execute in interface ActionIOException - if IO error.public void close()
public boolean isComplete()
isComplete in interface Actionpublic boolean isInterrupted()
protected void reportException(Exception ex)
ex - exception.Copyright © 1999-2018. 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.