|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.globus.cog.abstraction.impl.common.task.JobSpecificationImpl
| Field Summary |
| Fields inherited from interface org.globus.cog.abstraction.interfaces.Specification |
FILE_OPERATION, FILE_TRANSFER, JOB_SUBMISSION |
| Constructor Summary | |
JobSpecificationImpl()
|
|
| Method Summary | |
void |
addArgument(int index,
String argument)
Adds a commandline argument for the remote exectable at the given index. |
void |
addArgument(String argument)
Adds a commandline argument for the remote exectable. |
void |
addEnvironmentVariable(String name,
String value)
Adds an environment variable to the remote execution environment. |
Enumeration |
getAllAttributes()
|
String |
getArguments()
Returns the set of space-separated arguments supplied for the remote executable. |
String |
getArgumentsAsString()
Returns the set of space-separated arguments supplied for the remote executable. |
Vector |
getArgumentsAsVector()
Retruns a Vector representing the set of commandline arguments for the executable. |
Object |
getAttribute(String name)
|
String |
getDirectory()
Returns the absolute path name of the remote working directory. |
Collection |
getEnvironment()
Returns a collection representing all the environment variable names associated with the remote execution environment. |
String |
getEnvironmentVariable(String name)
Returns the environment variable with the given name. |
String |
getExecutable()
Returns the absolute location of the executable |
String |
getSpecification()
|
String |
getStdError()
Returns the file used for redirecting the error produced on the stderr of the remote machine. |
String |
getStdInput()
Returns the file used as stdin on the remote machine. |
String |
getStdOutput()
Returns the file used for redirecting the output produced on the stdout of the remote machine. |
int |
getType()
|
boolean |
isBatchJob()
Chacks if the Task is to be executed as a batch job. |
boolean |
isLocalExecutable()
Checks if the executable is staged-in from the local machine. |
boolean |
isLocalInput()
Checks if the stdin is staged-in from the local machine. |
boolean |
isRedirected()
Checks if the stdout and stderror is redirected to the local machine. |
String |
removeArgument(int index)
Removes the argument at the given index from the argument list |
void |
removeArgument(String argument)
Removes the given argument from the argument list |
String |
removeEnvironmentVariable(String name)
Removes the environment variable with the given name from the remote execution environment. |
void |
setArguments(String arguments)
Sets the comandline arguments for the remote executable. |
void |
setArguments(Vector arguments)
Sets the comandline arguments for the remote executable. |
void |
setAttribute(String name,
Object value)
|
void |
setBatchJob(boolean bool)
Specifies that the Task is to be executed as a batch job. |
void |
setDirectory(String directory)
Sets the working directory on the remote machine. |
void |
setExecutable(String executable)
Sets the name of the executable to be run remotely. |
void |
setLocalExecutable(boolean bool)
Specifies that the executable must be staged-in from the local machine. |
void |
setLocalInput(boolean bool)
Specifies that the stdin must be staged-in from the local machine. |
void |
setRedirected(boolean bool)
Specifies if the stdout and stderr have to be redirected. |
void |
setSpecification(String specification)
|
void |
setStdError(String error)
Sets the file for redirecting the error produced on the stderr of the remote machine. |
void |
setStdInput(String input)
Sets the file from which to redirect the data as stdin on the remote machine. |
void |
setStdOutput(String output)
Sets the file for redirecting the output produced on the stdout of the remote machine. |
void |
setType(int type)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public JobSpecificationImpl()
| Method Detail |
public void setType(int type)
setType in interface Specificationpublic int getType()
getType in interface Specificationpublic void setSpecification(String specification)
setSpecification in interface Specificationpublic String getSpecification()
getSpecification in interface Specificationpublic void setExecutable(String executable)
JobSpecification
setExecutable in interface JobSpecificationexecutable - a string representing the absolute location of the executable.public String getExecutable()
JobSpecification
getExecutable in interface JobSpecificationpublic void setDirectory(String directory)
JobSpecification
setDirectory in interface JobSpecificationdirectory - a string representing the absolute path name of the remote
working directory.public String getDirectory()
JobSpecification
getDirectory in interface JobSpecificationpublic void addArgument(String argument)
JobSpecification
addArgument in interface JobSpecificationargument - a string representing an argument for the remote executable.
public void addArgument(int index,
String argument)
JobSpecification
addArgument in interface JobSpecificationindex - the index in the argument listargument - a string representing an argument for the remote executable.public void removeArgument(String argument)
JobSpecification
removeArgument in interface JobSpecificationargument - the String argument to be removedpublic String removeArgument(int index)
JobSpecification
removeArgument in interface JobSpecificationindex - the index of the argument to be removedpublic Vector getArgumentsAsVector()
JobSpecification
getArgumentsAsVector in interface JobSpecificationpublic void setArguments(Vector arguments)
JobSpecification
setArguments in interface JobSpecificationarguments - a Vector representing the set of arguments for the remote
executable.public void setArguments(String arguments)
JobSpecification
setArguments in interface JobSpecificationarguments - a string representing the set of arguments for the remote
executable.public String getArguments()
JobSpecification
getArguments in interface JobSpecificationpublic String getArgumentsAsString()
JobSpecification
getArgumentsAsString in interface JobSpecification
public void addEnvironmentVariable(String name,
String value)
JobSpecification
addEnvironmentVariable in interface JobSpecificationname - the name of the environment variablevalue - the value of the environment variablepublic String removeEnvironmentVariable(String name)
JobSpecification
removeEnvironmentVariable in interface JobSpecificationname - the name of the environment variable
public String getEnvironmentVariable(String name)
JobSpecification
getEnvironmentVariable in interface JobSpecificationname - the name of the environment variable
public Collection getEnvironment()
JobSpecification
getEnvironment in interface JobSpecificationpublic void setStdOutput(String output)
JobSpecification
setStdOutput in interface JobSpecificationoutput - a string representing the file for redirecting the remote
stdout.public String getStdOutput()
JobSpecification
getStdOutput in interface JobSpecificationpublic void setStdInput(String input)
JobSpecification
setStdInput in interface JobSpecificationpublic String getStdInput()
JobSpecification
getStdInput in interface JobSpecificationpublic void setStdError(String error)
JobSpecification
setStdError in interface JobSpecificationerror - a string representing the file for redirecting the remote
error.public String getStdError()
JobSpecification
getStdError in interface JobSpecificationpublic void setBatchJob(boolean bool)
JobSpecificationTask is to be executed as a batch job.
If it is a batch job, then the client machine will not be notified
regarding the stautus of the remote execution. From the client's
perspective, the Task is completed as soon as it is
submitted remotely. The execution status and the output/error must be
retrieved by the user in an offline fashion.
setBatchJob in interface JobSpecificationbool - a boolean value indicating if the Task is a
batch job.public boolean isBatchJob()
JobSpecificationTask is to be executed as a batch job.
isBatchJob in interface JobSpecificationpublic void setRedirected(boolean bool)
JobSpecification
If filename for the setStdOutput in this
Specification is null and the
setRedirected is true, then the remote
stdout is redirected to the local machine and can be retrieved from the
getOutput method of the container Task.
setRedirected in interface JobSpecificationpublic boolean isRedirected()
JobSpecification
isRedirected in interface JobSpecificationpublic void setLocalInput(boolean bool)
JobSpecification
setLocalInput in interface JobSpecificationpublic boolean isLocalInput()
JobSpecification
isLocalInput in interface JobSpecificationpublic void setLocalExecutable(boolean bool)
JobSpecification
setLocalExecutable in interface JobSpecificationpublic boolean isLocalExecutable()
JobSpecification
isLocalExecutable in interface JobSpecification
public void setAttribute(String name,
Object value)
setAttribute in interface JobSpecificationpublic Object getAttribute(String name)
getAttribute in interface JobSpecificationpublic Enumeration getAllAttributes()
getAllAttributes in interface JobSpecification
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||