org.globus.cog.gridshell.commands
Class AbstractExecutableCommand

java.lang.Object
  extended byorg.globus.cog.gridshell.commands.AbstractCommand
      extended byorg.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


Field Summary
 
Fields inherited from class org.globus.cog.gridshell.commands.AbstractCommand
PROPERTY_STATUS_CODE
 
Constructor Summary
AbstractExecutableCommand()
           
 
Method Summary
 Object destroy()
          Destroys this command - called after the command has been completed
 Object kill()
          Kills this command
 void propertyChange(PropertyChangeEvent arg0)
           
 Object resume()
          Resumes this command
 void run()
           
 Object suspend()
          Suspends this command
 
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
 

Constructor Detail

AbstractExecutableCommand

public AbstractExecutableCommand()
Method Detail

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)