org.opensha.commons.hpc.grid
Class GlobusRSL

java.lang.Object
  extended by org.opensha.commons.hpc.grid.GlobusRSL
All Implemented Interfaces:
java.io.Serializable, XMLSaveable

public class GlobusRSL
extends java.lang.Object
implements XMLSaveable, java.io.Serializable

See Also:
Serialized Form

Field Summary
static java.lang.String JOB_TYPE_NAME
           
static java.lang.String MAX_WALL_TIME_NAME
           
static java.lang.String QUEUE_NAME
           
static java.lang.String SINGLE_JOB_TYPE
           
static java.lang.String XML_METADATA_NAME
           
 
Constructor Summary
GlobusRSL(java.lang.String jobType, int maxWallTime)
           
 
Method Summary
 void addPair(java.lang.String name, java.lang.String value)
           
static GlobusRSL fromXMLMetadata(Element rslElem)
           
 java.lang.String getJobType()
           
 int getMaxWallTime()
           
 java.lang.String getQueue()
           
 java.lang.String getRSLString()
           
 java.lang.String getValue(java.lang.String name)
           
 void setMaxWallTime(int wallTime)
           
 void setQueue(java.lang.String queueName)
           
 Element toXMLMetadata(Element root)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

JOB_TYPE_NAME

public static final java.lang.String JOB_TYPE_NAME
See Also:
Constant Field Values

MAX_WALL_TIME_NAME

public static final java.lang.String MAX_WALL_TIME_NAME
See Also:
Constant Field Values

QUEUE_NAME

public static final java.lang.String QUEUE_NAME
See Also:
Constant Field Values

SINGLE_JOB_TYPE

public static final java.lang.String SINGLE_JOB_TYPE
See Also:
Constant Field Values

XML_METADATA_NAME

public static final java.lang.String XML_METADATA_NAME
See Also:
Constant Field Values
Constructor Detail

GlobusRSL

public GlobusRSL(java.lang.String jobType,
                 int maxWallTime)
Method Detail

addPair

public void addPair(java.lang.String name,
                    java.lang.String value)

setQueue

public void setQueue(java.lang.String queueName)

getQueue

public java.lang.String getQueue()

getJobType

public java.lang.String getJobType()

getMaxWallTime

public int getMaxWallTime()

setMaxWallTime

public void setMaxWallTime(int wallTime)

getValue

public java.lang.String getValue(java.lang.String name)

getRSLString

public java.lang.String getRSLString()

toXMLMetadata

public Element toXMLMetadata(Element root)
Specified by:
toXMLMetadata in interface XMLSaveable

fromXMLMetadata

public static GlobusRSL fromXMLMetadata(Element rslElem)