|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.gridbus.broker.common.WorkUnit
org.gridbus.broker.common.Job
public class Job
This class represents a Job. A job consists of the Task from which it was derived, a Hashtable of the variable values for this job, a status string
| Field Summary |
|---|
| Fields inherited from class org.gridbus.broker.common.WorkUnit |
|---|
application, name, service, status, task, type, variableTable |
| Constructor Summary | |
|---|---|
Job()
Constructor |
|
| Method Summary | |
|---|---|
JobEnvironment |
getEnvironment()
|
java.lang.String |
getHandle()
Get the unique handle for the job (middleware-dependent) |
java.lang.String |
getLocalWorkingDirectory()
Returns the local working directory (where the broker puts the job output files locally on the broker machine). |
java.lang.String |
getQueueName()
|
java.lang.String |
getRemoteStagingDirectory()
Returns the staging directory on a file-staging-server (where the broker puts the job input/output files for copying to/from the compute node). |
java.lang.String |
getRemoteWorkingDirectory()
|
JobRequirement |
getRequirements()
|
ComputeServer |
getServer()
Returns the server to which the job is allocated |
int |
getStatus()
Returns the integer value of the job status. |
java.lang.String |
getStatusString()
Returns the status in the form of a string. |
java.lang.String |
getStdErrorFileName()
Returns the name of the stderr filename for this job |
java.lang.String |
getStdOutputFileName()
Returns the name of the stdout filename for this job |
int |
getType()
Returns the integer value of the job type. |
void |
setEnvironment(JobEnvironment environment)
|
void |
setHandle(java.lang.String handle)
Sets the unique handle for the job which comes from the middleware. |
void |
setLocalWorkingDirectory(java.lang.String localWorkingDirectory)
Sets the local working directory (where the broker puts the job output files locally on the broker machine). |
void |
setQueueName(java.lang.String queueName)
|
void |
setRemoteWorkingDirectory(java.lang.String remoteWorkingDirectory)
Sets name of the remote working directory for this job (default = REMOTE.GBB.TMP/appId/jobName). |
void |
setRequirements(JobRequirement requirements)
|
void |
setType(int type)
Sets the job type. |
java.lang.String |
toString()
|
| Methods inherited from class org.gridbus.broker.common.WorkUnit |
|---|
addVariable, clearVariables, getApplication, getCompletedTime, getErrorDescription, getName, getSubmittedTime, getTask, getUserCredential, getVariableTable, getVariableValue, getVariableValueTable, getWallClockTimeTaken, removeVariable, setApplication, setCompletedTime, setErrorDescription, setName, setSubmittedTime, setTask, setUserCredential |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Job()
| Method Detail |
|---|
public ComputeServer getServer()
public java.lang.String getStdErrorFileName()
public java.lang.String getStdOutputFileName()
public java.lang.String getRemoteWorkingDirectory()
public void setRemoteWorkingDirectory(java.lang.String remoteWorkingDirectory)
throws GridBrokerException
remoteWorkingDirectory -
GridBrokerExceptionpublic java.lang.String getQueueName()
public void setQueueName(java.lang.String queueName)
queueName - public java.lang.String toString()
toString in class java.lang.ObjectObject.toString()public java.lang.String getLocalWorkingDirectory()
public void setLocalWorkingDirectory(java.lang.String localWorkingDirectory)
throws GridBrokerException
GridBrokerExceptionpublic java.lang.String getRemoteStagingDirectory()
public JobRequirement getRequirements()
public void setRequirements(JobRequirement requirements)
requirements - The requirements to set.public int getType()
public void setType(int type)
type - public JobEnvironment getEnvironment()
public void setEnvironment(JobEnvironment environment)
environment - The environment to set.public int getStatus()
public java.lang.String getStatusString()
public java.lang.String getHandle()
public void setHandle(java.lang.String handle)
handle -
|
Copyright © The University of Melbourne. 2006 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||