org.globus.cog.gridshell.commands.taskcommands
Class Exec
java.lang.Object
org.globus.cog.gridshell.commands.AbstractCommand
org.globus.cog.gridshell.commands.AbstractShellCommand
org.globus.cog.gridshell.commands.taskcommands.AbstractTaskCommand
org.globus.cog.gridshell.commands.taskcommands.Exec
- All Implemented Interfaces:
- Command, Comparable, EventListener, PropertyChangeListener, PropertyChangeNotifier, Runnable, StatusListener
- public class Exec
- extends AbstractTaskCommand
|
Constructor Summary |
Exec()
|
|
Method Summary |
void |
addExec(URI uri,
Object credential,
String command,
String args,
Boolean isBatch,
Boolean isRedirected,
String stdErr,
String stdOut)
|
GetOpt |
createGetOpt(Scope scope)
Returns the GetOpt object used to parse and validate this command |
Object |
execute()
Executes this command |
void |
executeGroup(String group,
String command,
String args,
Boolean isBatch,
Boolean isRedirected,
String stdErr,
String stdOut)
|
void |
executeUri(URI uri,
String command,
String args,
Boolean isBatch,
Boolean isRedirected,
String stdErr,
String stdOut)
|
Object |
getTaskOutput()
Gets the output for this command, allows the command to format
the output (ie the ls command) |
| Methods inherited from class org.globus.cog.gridshell.commands.AbstractShellCommand |
createAbstractShellCommand, getCredentials, getGetOpt, getGridShell, getGsh, init, kill, resume, run, suspend, toString |
| Methods inherited from class org.globus.cog.gridshell.commands.AbstractCommand |
addPropertyChangeListener, addPropertyChangeListener, arrayToMap, compareTo, getIdentity, getParent, getResult, getScope, getStatus, removePropertyChangeListener, setResult, setStatusCode, setStatusCompleted, setStatusFailed, setStatusFailed, unsupported |
Exec
public Exec()
execute
public Object execute()
throws Exception
- Description copied from interface:
Command
- Executes this command
- Specified by:
execute in interface Command- Overrides:
execute in class AbstractTaskCommand
- Throws:
Exception
executeUri
public void executeUri(URI uri,
String command,
String args,
Boolean isBatch,
Boolean isRedirected,
String stdErr,
String stdOut)
throws Exception
- Throws:
Exception
executeGroup
public void executeGroup(String group,
String command,
String args,
Boolean isBatch,
Boolean isRedirected,
String stdErr,
String stdOut)
throws Exception
- Throws:
Exception
addExec
public void addExec(URI uri,
Object credential,
String command,
String args,
Boolean isBatch,
Boolean isRedirected,
String stdErr,
String stdOut)
throws Exception
- Throws:
Exception
getTaskOutput
public Object getTaskOutput()
- Description copied from class:
AbstractTaskCommand
- Gets the output for this command, allows the command to format
the output (ie the ls command)
- Specified by:
getTaskOutput in class AbstractTaskCommand
- Returns:
createGetOpt
public GetOpt createGetOpt(Scope scope)
- Description copied from class:
AbstractShellCommand
- Returns the GetOpt object used to parse and validate this command
- Specified by:
createGetOpt in class AbstractShellCommand
- Parameters:
scope -
- Returns: