|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object plgrid.GridJobInfo
public class GridJobInfo
Holds job information
Field Summary | |
---|---|
static int |
STATE_ERRORED
Indicates that state of the job is errored |
static int |
STATE_FINISHED
Indicates that state of the job is finished |
static int |
STATE_NOT_FOUND
Indicates that the job is not found |
static int |
STATE_QUEUED
Indicates that state of the job is queued |
static int |
STATE_RUNNING
Indicates that state of the job is running |
static int |
STATE_UNKNOWN
Indicates that state of the job is unknown |
Constructor Summary | |
---|---|
GridJobInfo(java.lang.String jobId)
|
Method Summary | |
---|---|
void |
addComplexVariable(java.lang.String name,
java.lang.String value)
Adds complex variable into the complex variables list |
static GridJobInfo |
fromXML(java.lang.String xml)
|
static GridJobInfo |
fromXMLElement(nu.xom.Element gjiElement)
|
java.util.Map<java.lang.String,java.lang.String> |
getComplexVariables()
Returns list of complex Variables |
int |
getExitStatus()
Returns the exit status of the job |
long |
getFinishTime()
Returns finish time of the job |
java.lang.String |
getJobId()
Returns the job Id |
long |
getQueuedTime()
Returns queued time of the job |
long |
getStartTime()
Returns start time of the job |
int |
getState()
Returns state of the job |
void |
removeComplexVariable(java.lang.String name)
Removes specified complex variable from the list |
void |
setExitStatus(int exitStatus)
Sets the exit status of the job |
void |
setFinishTime(long finishTime)
Sets the finish time |
void |
setQueuedTime(long queuedTime)
Sets the queued time |
void |
setStartTime(long startTime)
Sets the start time |
void |
setState(int state)
Sets the state of the job |
java.lang.String |
toXML()
|
nu.xom.Element |
toXMLElement()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int STATE_UNKNOWN
public static final int STATE_QUEUED
public static final int STATE_RUNNING
public static final int STATE_FINISHED
public static final int STATE_NOT_FOUND
public static final int STATE_ERRORED
Constructor Detail |
---|
public GridJobInfo(java.lang.String jobId)
Method Detail |
---|
public void addComplexVariable(java.lang.String name, java.lang.String value)
name
- Name of complex Variablevalue
- Value of complex Variablepublic void removeComplexVariable(java.lang.String name)
name
- public java.util.Map<java.lang.String,java.lang.String> getComplexVariables()
public void setState(int state)
state
- One of following
STATE_UNKNOWN
, STATE_QUEUED
, STATE_RUNNING
public void setStartTime(long startTime)
startTime
- Start time in milliseccondspublic void setQueuedTime(long queuedTime)
queuedTime
- Start time in milliseccondspublic void setFinishTime(long finishTime)
finishTime
- Finish time in milliseccondspublic void setExitStatus(int exitStatus)
exitStatus
- The exit status of the jobpublic java.lang.String getJobId()
public int getState()
public long getStartTime()
public long getQueuedTime()
public long getFinishTime()
public int getExitStatus()
public nu.xom.Element toXMLElement()
public java.lang.String toXML()
public static GridJobInfo fromXMLElement(nu.xom.Element gjiElement)
public static GridJobInfo fromXML(java.lang.String xml)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |