edu.sdsc.inca.depot.persistent
Class RunInfo

java.lang.Object
  extended by edu.sdsc.inca.depot.persistent.PersistentObject
      extended by edu.sdsc.inca.depot.persistent.RunInfo

public class RunInfo
extends PersistentObject

Represents host-specific execution information derived from a Report.


Field Summary
 
Fields inherited from class edu.sdsc.inca.depot.persistent.PersistentObject
DB_EMPTY_STRING, logger, MAX_DB_LONG_STRING_LENGTH, MAX_DB_STRING_LENGTH
 
Constructor Summary
RunInfo()
          Default constructor.
RunInfo(java.lang.String hostname, java.lang.String workingDir, java.lang.String reporterPath)
          Full constructor.
 
Method Summary
 RunInfo fromBean(edu.sdsc.inca.dataModel.util.Report r)
          Copies information from an Inca schema XmlBean Report object so that this object contains equivalent information.
 PersistentObject fromBean(org.apache.xmlbeans.XmlObject o)
          Copies information from an Inca schema XmlBean Report object so that this object contains equivalent information.
 ArgSignature getArgSignature()
          Get the signature for the set of Args associated with this RunInfo.
 java.lang.String getHostname()
          Get the RunInfo hostname.
 java.lang.Long getId()
          Retrieve the id -- null if not yet connected to database.
 java.lang.String getReporterPath()
          Get the RunInfo reporter relative path.
 java.lang.String getWorkingDir()
          Get the RunInfo working directory.
 void setArgSignature(ArgSignature sig)
          Set the signature for the set of Args associated with this RunInfo.
 void setHostname(java.lang.String hostname)
          Set the RunInfo hostname.
protected  void setId(java.lang.Long id)
          Set the id.
 void setReporterPath(java.lang.String reporterPath)
          Set the RunInfo reporter relative.
 void setWorkingDir(java.lang.String workingDir)
          Set the RunInfo working directory.
 org.apache.xmlbeans.XmlObject toBean()
          Returns a Inca schema XmlBean object that contains information equivalent to this object.
 java.lang.String toXml()
          Returns XML that represents the information in this object.
 
Methods inherited from class edu.sdsc.inca.depot.persistent.PersistentObject
truncate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RunInfo

public RunInfo()
Default constructor.


RunInfo

public RunInfo(java.lang.String hostname,
               java.lang.String workingDir,
               java.lang.String reporterPath)
Full constructor.

Method Detail

fromBean

public PersistentObject fromBean(org.apache.xmlbeans.XmlObject o)
Copies information from an Inca schema XmlBean Report object so that this object contains equivalent information.

Specified by:
fromBean in class PersistentObject
Parameters:
o - the XmlBean Report object to copy
Returns:
this, for convenience

fromBean

public RunInfo fromBean(edu.sdsc.inca.dataModel.util.Report r)
Copies information from an Inca schema XmlBean Report object so that this object contains equivalent information.

Parameters:
r - the XmlBean Report object to copy
Returns:
this, for convenience

getId

public java.lang.Long getId()
Retrieve the id -- null if not yet connected to database.

Returns:
The Long representation of the DB ID

setId

protected void setId(java.lang.Long id)
Set the id. Hibernate use only.

Parameters:
id - The DB ID.

getHostname

public java.lang.String getHostname()
Get the RunInfo hostname.

Returns:
the RunInfo hostname

setHostname

public void setHostname(java.lang.String hostname)
Set the RunInfo hostname.

Parameters:
hostname - the RunInfo hostname

getWorkingDir

public java.lang.String getWorkingDir()
Get the RunInfo working directory.

Returns:
the RunInfo working directory

setWorkingDir

public void setWorkingDir(java.lang.String workingDir)
Set the RunInfo working directory.

Parameters:
workingDir - the RunInfo working directory

getReporterPath

public java.lang.String getReporterPath()
Get the RunInfo reporter relative path.

Returns:
the RunInfo reporter relative path

setReporterPath

public void setReporterPath(java.lang.String reporterPath)
Set the RunInfo reporter relative.

Parameters:
reporterPath - the RunInfo reporter relative path

getArgSignature

public ArgSignature getArgSignature()
Get the signature for the set of Args associated with this RunInfo.

Returns:
the Series arg signature

setArgSignature

public void setArgSignature(ArgSignature sig)
Set the signature for the set of Args associated with this RunInfo. Hibernate only.

Parameters:
sig - the Series arg signature

toBean

public org.apache.xmlbeans.XmlObject toBean()
Returns a Inca schema XmlBean object that contains information equivalent to this object.

Specified by:
toBean in class PersistentObject
Returns:
an XmlBean object that contains equivalent information

toXml

public java.lang.String toXml()
Returns XML that represents the information in this object.

Overrides:
toXml in class PersistentObject