|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Grid command can be executed in cog-abstraction as tasks.
| Field Summary |
| Fields inherited from interface org.globus.cog.abstraction.interfaces.ExecutableObject |
TASK, TASKGRAPH |
| Method Summary | |
void |
addArgument(String argument)
add one argument at a time |
void |
addStatusListener(StatusListener listener)
add listener to the command |
String |
getArgument(int n)
get the nth argument of the command |
Vector |
getArguments()
get all arguments in the form of a vector |
int |
getArgumentsSize()
get the total number of arguments |
Object |
getAttribute(String name)
get an attribute |
Hashtable |
getAttributes()
return the hashtable containing all attributes. |
String |
getCommand()
get the command name |
Calendar |
getCompletedTime()
|
String |
getError()
Get error msg for the given command when status changes to FAILED |
Exception |
getException()
Returns the exception for the current status object this is here so it can be overridden by the exec object to make sence of the error codes of jglobus |
String |
getExceptionString()
returns an excpetion and its stack to a string using the static method in gridfaces.impl.util.LoggerImpl |
Integer |
getId()
|
Object |
getOutput()
Get output of the given command when status changes to COMPLETED |
Enumeration |
getStatusListeners()
Get a list of all listeners |
Calendar |
getSubmittedTime()
|
Task |
getTask()
|
Object |
getTaskAttribute(String key)
get attributes set for the given command |
ExecutableObject |
prepareTask()
prepare the executable object for this command |
void |
removeStatusListener(StatusListener listener)
remove listener for this command |
void |
setArguments(String[] arguments)
set an array of input arguments |
void |
setAttribute(String name,
Object value)
set an attribute. |
void |
setAttributes(Hashtable attribs)
|
void |
setCommand(String command)
set the command to be executed |
void |
setTask(Task newTask)
|
void |
setTaskAttribute(String key,
Object value)
Set attributes for the task to be prepared for this command |
boolean |
validate()
validate the given command and return true or false |
| Methods inherited from interface org.globus.cog.abstraction.interfaces.StatusListener |
statusChanged |
| Methods inherited from interface org.globus.cog.abstraction.interfaces.ExecutableObject |
getIdentity, getName, getObjectType, getStatus, setIdentity, setName, setStatus, setStatus |
| Method Detail |
public Task getTask()
public void setTask(Task newTask)
public Integer getId()
public void setCommand(String command)
public String getCommand()
public void setArguments(String[] arguments)
public void addArgument(String argument)
public String getArgument(int n)
public int getArgumentsSize()
public Vector getArguments()
public ExecutableObject prepareTask()
throws Exception
Exception
public void setAttribute(String name,
Object value)
public Object getAttribute(String name)
public Hashtable getAttributes()
public void setAttributes(Hashtable attribs)
public void addStatusListener(StatusListener listener)
addStatusListener in interface ExecutableObjectpublic void removeStatusListener(StatusListener listener)
removeStatusListener in interface ExecutableObjectpublic Enumeration getStatusListeners()
public boolean validate()
public Calendar getSubmittedTime()
public Calendar getCompletedTime()
public Object getOutput()
public String getError()
public void setTaskAttribute(String key,
Object value)
public Object getTaskAttribute(String key)
public Exception getException()
public String getExceptionString()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||