org.opensha.commons.hpc.grid
Class GridJob

java.lang.Object
  extended by org.opensha.commons.hpc.grid.GridJob
All Implemented Interfaces:
XMLSaveable

public class GridJob
extends Object
implements XMLSaveable


Field Summary
protected  GridCalculationParameters calcParams
           
static String XML_METADATA_NAME
           
 
Constructor Summary
GridJob(GridResources resources, GridCalculationParameters calcParams, String jobID, String jobName, String email, String configFileName)
           
 
Method Summary
static GridJob fromXMLMetadata(Element jobElem)
           
 GridCalculationParameters getCalcParams()
           
 String getConfigFileName()
           
 String getEmail()
           
 String getJobID()
           
 String getJobName()
           
 GridResources getResources()
           
static String indentString(String str)
           
 void setConfigFileName(String configFileName)
           
 void setEmail(String email)
           
 void setJobID(String jobID)
           
 String toString()
           
 Element toXMLMetadata(Element root)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

XML_METADATA_NAME

public static final String XML_METADATA_NAME
See Also:
Constant Field Values

calcParams

protected GridCalculationParameters calcParams
Constructor Detail

GridJob

public GridJob(GridResources resources,
               GridCalculationParameters calcParams,
               String jobID,
               String jobName,
               String email,
               String configFileName)
Method Detail

getResources

public GridResources getResources()

getCalcParams

public GridCalculationParameters getCalcParams()

setJobID

public void setJobID(String jobID)

getJobID

public String getJobID()

getJobName

public String getJobName()

getEmail

public String getEmail()

setEmail

public void setEmail(String email)

setConfigFileName

public void setConfigFileName(String configFileName)

getConfigFileName

public String getConfigFileName()

toXMLMetadata

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

fromXMLMetadata

public static GridJob fromXMLMetadata(Element jobElem)

toString

public String toString()
Overrides:
toString in class Object

indentString

public static String indentString(String str)