|
||||||||
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
public class JobState
This class stores the information related to a particular state of a checkpointable Job
Field Summary | |
---|---|
static String |
CURRENT
String representation for CurrentStep attribute |
static String |
JOBID
String representation for JobState attribute |
static String |
JOBSTEPS
String representation for JobSteps attribute |
static 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(String state)
Constructor copy |
Method Summary | |
---|---|
void |
check()
Check the validity of the JobState instance |
void |
checkAttribute(String attrName,
condor.classad.Expr attrValue)
|
void |
setAttribute(String attrName,
condor.classad.Expr attrValue)
Set the specified couple attributre, value, inside the JobState |
void |
setId(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 String JOBID
public static String CURRENT
public static String JOBSTEPS
public static String USERDATA
Constructor Detail |
---|
public JobState(String state) throws ParseException, JobAdException
ParseException
JobAdException
public JobState()
Method Detail |
---|
public void setId(String jobId)
jobId
- the string representation of the JobIdpublic void check() throws JobAdException
JobAdException
public void setAttribute(String attrName, condor.classad.Expr attrValue) throws InvalidAttributeValueException, 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
InvalidAttributeValueException
- - the value is out of limits for the specified attribute
IllegalArgumentException
public void checkAttribute(String attrName, condor.classad.Expr attrValue) throws InvalidAttributeValueException
InvalidAttributeValueException
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |