|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.glite.jdl.Ad
org.glite.jdl.JobState
This class stores the information related to a particular state of a checkpointable Job
Field Summary | |
static java.lang.String |
CURRENT
String representation for CurrentStep attribute |
static java.lang.String |
JOBID
String representation for JobState attribute |
static java.lang.String |
JOBSTEPS
String representation for JobSteps attribute |
static java.lang.String |
USERDATA
String representation for UserData attribute |
Fields inherited from class org.glite.jdl.Ad |
jobAd, TYPE_AD, TYPE_BOOL, TYPE_EXPRESSION, TYPE_INTEGER, TYPE_REAL, TYPE_STRING, TYPE_UNKNOWN |
Constructor Summary | |
JobState()
Default Constructor |
|
JobState(java.lang.String state)
Constructor copy |
Method Summary | |
void |
check()
Check the validity of the JobState instance |
void |
checkAttribute(java.lang.String attrName,
condor.classad.Expr attrValue)
|
void |
setAttribute(java.lang.String attrName,
condor.classad.Expr attrValue)
Set the specified couple attributre, value, inside the JobState |
void |
setId(java.lang.String jobId)
Set the specified JobId inside the State |
Methods inherited from class org.glite.jdl.Ad |
addAttribute, addAttribute, addAttribute, addAttribute, addAttribute, appendValue, attributes, clear, clone, copy, delAttribute, fromFile, fromRecord, fromString, getAd, getAdValue, getBooleanValue, getConstant, getDoubleValue, getIntValue, getStringValue, getType, getValue, hasAttribute, isSet, lookup, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, size, toString, toString |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static java.lang.String JOBID
public static java.lang.String CURRENT
public static java.lang.String JOBSTEPS
public static java.lang.String USERDATA
Constructor Detail |
public JobState(java.lang.String state) throws java.text.ParseException, JobAdException
public JobState()
Method Detail |
public void setId(java.lang.String jobId)
jobId
- the string representation of the JobIdpublic void check() throws JobAdException
JobAdException
public void setAttribute(java.lang.String attrName, condor.classad.Expr attrValue) throws javax.naming.directory.InvalidAttributeValueException, java.lang.IllegalArgumentException
setAttribute
in class Ad
attrName
- the name of the attribute to be setattrValue
- the classad expression to be added
IllegalArgumentException-
- The attribute attrName had been
javax.naming.directory.InvalidAttributeValueException
- - the value is out of limits for the specified attribute
java.lang.IllegalArgumentException
public void checkAttribute(java.lang.String attrName, condor.classad.Expr attrValue) throws javax.naming.directory.InvalidAttributeValueException
javax.naming.directory.InvalidAttributeValueException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |