org.glite.jdl
Class JobState

java.lang.Object
  extended byorg.glite.jdl.Ad
      extended byorg.glite.jdl.JobState

public class JobState
extends Ad

This class stores the information related to a particular state of a checkpointable Job

Version:
0.1
Author:
Alessandro Maraschini

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

JOBID

public static java.lang.String JOBID
String representation for JobState attribute


CURRENT

public static java.lang.String CURRENT
String representation for CurrentStep attribute


JOBSTEPS

public static java.lang.String JOBSTEPS
String representation for JobSteps attribute


USERDATA

public static java.lang.String USERDATA
String representation for UserData attribute

Constructor Detail

JobState

public JobState(java.lang.String state)
         throws java.text.ParseException,
                JobAdException
Constructor copy


JobState

public JobState()
Default Constructor

Method Detail

setId

public void setId(java.lang.String jobId)
Set the specified JobId inside the State

Parameters:
jobId - the string representation of the JobId

check

public void check()
           throws JobAdException
Check the validity of the JobState instance

Throws:
JobAdException

setAttribute

public void setAttribute(java.lang.String attrName,
                         condor.classad.Expr attrValue)
                  throws javax.naming.directory.InvalidAttributeValueException,
                         java.lang.IllegalArgumentException
Set the specified couple attributre, value, inside the JobState

Overrides:
setAttribute in class Ad
Parameters:
attrName - the name of the attribute to be set
attrValue - the classad expression to be added
Throws:
IllegalArgumentException- - The attribute attrName had been
javax.naming.directory.InvalidAttributeValueException - - the value is out of limits for the specified attribute
java.lang.IllegalArgumentException

checkAttribute

public void checkAttribute(java.lang.String attrName,
                           condor.classad.Expr attrValue)
                    throws javax.naming.directory.InvalidAttributeValueException
Throws:
javax.naming.directory.InvalidAttributeValueException