org.glite.jdl
Class JobState

java.lang.Object
  extended by org.glite.jdl.Ad
      extended by org.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 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

JOBID

public static String JOBID
String representation for JobState attribute


CURRENT

public static String CURRENT
String representation for CurrentStep attribute


JOBSTEPS

public static String JOBSTEPS
String representation for JobSteps attribute


USERDATA

public static String USERDATA
String representation for UserData attribute

Constructor Detail

JobState

public JobState(String state)
         throws ParseException,
                JobAdException
Constructor copy

Throws:
ParseException
JobAdException

JobState

public JobState()
Default Constructor

Method Detail

setId

public void setId(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(String attrName,
                         condor.classad.Expr attrValue)
                  throws InvalidAttributeValueException,
                         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
InvalidAttributeValueException - - the value is out of limits for the specified attribute
IllegalArgumentException

checkAttribute

public void checkAttribute(String attrName,
                           condor.classad.Expr attrValue)
                    throws InvalidAttributeValueException
Throws:
InvalidAttributeValueException


Copyright © 2013 EMI - European Middleware Initiative. All Rights Reserved.