org.globus.cog.gridshell.commands
Class AbstractExecutableCommand
java.lang.Object
org.globus.cog.gridshell.commands.AbstractCommand
org.globus.cog.gridshell.commands.AbstractExecutableCommand
- All Implemented Interfaces:
- Command, Comparable, EventListener, PropertyChangeListener, PropertyChangeNotifier, Runnable
- public abstract class AbstractExecutableCommand
- extends AbstractCommand
There are lots of methods to a command. At times we may only want to implement
the execute method. This Class only leaves out the execute method.
All methods not in AbstractCommand throw unsupported exception, the implementation
may override this, but should not call the superclass
| Methods inherited from class org.globus.cog.gridshell.commands.AbstractCommand |
addPropertyChangeListener, addPropertyChangeListener, arrayToMap, compareTo, getIdentity, getParent, getResult, getScope, getStatus, init, removePropertyChangeListener, setResult, setStatusCode, setStatusCompleted, setStatusFailed, setStatusFailed, unsupported |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.globus.cog.gridshell.interfaces.Command |
execute |
AbstractExecutableCommand
public AbstractExecutableCommand()
suspend
public Object suspend()
throws Exception
- Description copied from interface:
Command
- Suspends this command
- Returns:
-
- Throws:
Exception
resume
public Object resume()
throws Exception
- Description copied from interface:
Command
- Resumes this command
- Returns:
-
- Throws:
Exception
kill
public Object kill()
throws Exception
- Description copied from interface:
Command
- Kills this command
- Returns:
-
- Throws:
Exception
destroy
public Object destroy()
throws Exception
- Description copied from interface:
Command
- Destroys this command - called after the command has been completed
- Returns:
-
- Throws:
Exception
run
public void run()
propertyChange
public void propertyChange(PropertyChangeEvent arg0)