public class JobState extends Ad
| Modifier and Type | Field and Description |
|---|---|
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
|
jobAd, TYPE_AD, TYPE_BOOL, TYPE_EXPRESSION, TYPE_INTEGER, TYPE_REAL, TYPE_STRING, TYPE_UNKNOWN| Constructor and Description |
|---|
JobState()
Default Constructor
|
JobState(String state)
Constructor copy
|
| Modifier and Type | Method and Description |
|---|---|
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
|
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, toStringpublic static String JOBID
public static String CURRENT
public static String JOBSTEPS
public static String USERDATA
public JobState(String state) throws ParseException, JobAdException
ParseExceptionJobAdExceptionpublic JobState()
public void setId(String jobId)
jobId - the string representation of the JobIdpublic void check()
throws JobAdException
JobAdExceptionpublic void setAttribute(String attrName, condor.classad.Expr attrValue) throws InvalidAttributeValueException, IllegalArgumentException
setAttribute in class AdattrName - the name of the attribute to be setattrValue - the classad expression to be addedIllegalArgumentException- - The attribute attrName had beenInvalidAttributeValueException - - the value is out of limits for the specified attributeIllegalArgumentExceptionpublic void checkAttribute(String attrName, condor.classad.Expr attrValue) throws InvalidAttributeValueException
InvalidAttributeValueExceptionCopyright © 2016 EMI - European Middleware Initiative. All Rights Reserved.