|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.sdsc.inca.depot.persistent.PersistentObject edu.sdsc.inca.depot.persistent.Series
public class Series
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 | |
---|---|
Series()
Default constructor. |
|
Series(java.lang.String resource,
java.lang.String context,
java.lang.String reporter)
Constructs a new Series containing the specified values. |
Method Summary | |
---|---|
void |
addReport(Report report)
Add a Report to the set of those associated with this Series. |
void |
addSeriesConfig(SeriesConfig sc)
Add a SeriesConfig to the set of those associated with this Series. |
boolean |
equals(java.lang.Object o)
Compares another object to this Series for logical equality. |
Series |
fromBean(edu.sdsc.inca.dataModel.util.Report r)
Copies information from an Inca schema XmlBean Report object so that this object contains equivalent information. |
Series |
fromBean(edu.sdsc.inca.dataModel.util.Series s)
Copies information from an Inca schema XmlBean Series object so that this object contains equivalent information. |
PersistentObject |
fromBean(org.apache.xmlbeans.XmlObject o)
Copies information from an Inca schema XmlBean Series object so that this object contains equivalent information. |
static Series |
generate(java.lang.String resource,
java.lang.String context,
int args)
Returns a phony Series with a given resource and context. |
java.lang.String |
generateReport()
Generates a phony report for this Series. |
java.lang.String |
generateReport(java.util.Date d)
Generates a phony report for this Series. |
java.util.Set |
getArgs()
Get the set of Args associated with this Series. |
ArgSignature |
getArgSignature()
Get the signature for the set of Args associated with this Series. |
java.lang.String |
getContext()
Get the Series context string. |
java.lang.Long |
getId()
Retrieve the id -- null if not yet connected to database. |
boolean |
getNice()
Get the indicator as to whether the Series reporter should be run niced. |
java.lang.String |
getReporter()
Get the Series reporter name. |
java.util.Collection |
getReports()
Get the set of Reports associated with this Series. |
java.lang.String |
getResource()
Get the name of the resource where this Series runs. |
java.util.Set |
getSeriesConfigs()
Get the set of SeriesConfigs associated with this Series. |
java.lang.String |
getUri()
Get the Series reporter URI. |
java.lang.String |
getVersion()
Get the Series reporter version. |
int |
hashCode()
Calculate a hash code using the same fields that where used in equals. |
protected void |
setArgs(java.util.Set args)
Set the set of Args associated with this Series. |
protected void |
setArgSignature(ArgSignature sig)
Set the signature for the set of Args associated with this Series. |
void |
setContext(java.lang.String context)
Set the Series context string. |
protected void |
setId(java.lang.Long id)
Set the id. |
void |
setNice(boolean nice)
Set the indicator as to whether the Series reporter should be run niced. |
void |
setReporter(java.lang.String reporter)
Set the Series reporter name. |
protected void |
setReports(java.util.Collection reports)
Set the set of Reports associated with this Series. |
void |
setResource(java.lang.String resource)
Set the name of the resource where this Series runs. |
protected void |
setSeriesConfigs(java.util.Set configs)
Set the set of SeriesConfigs associated with this Series. |
void |
setUri(java.lang.String uri)
Set the Series reporter URI. |
void |
setVersion(java.lang.String version)
Set the Series reporter version. |
org.apache.xmlbeans.XmlObject |
toBean()
Returns a Inca schema XmlBean Series object that contains information equivalent to this object. |
java.lang.String |
toString()
Returns a string representation of this Series. |
Methods inherited from class edu.sdsc.inca.depot.persistent.PersistentObject |
---|
toXml, truncate |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Series()
public Series(java.lang.String resource, java.lang.String context, java.lang.String reporter)
resource
- the Series resourcecontext
- the Series context stringreporter
- the Series reporterMethod Detail |
---|
public PersistentObject fromBean(org.apache.xmlbeans.XmlObject o)
fromBean
in class PersistentObject
o
- the XmlBean Series object to copy
public Series fromBean(edu.sdsc.inca.dataModel.util.Report r)
r
- the XmlBean Report object to copy
public Series fromBean(edu.sdsc.inca.dataModel.util.Series s)
s
- the XmlBean Series object to copy
public java.lang.Long getId()
protected void setId(java.lang.Long id)
id
- The DB ID.public java.lang.String getReporter()
public void setReporter(java.lang.String reporter)
reporter
- the Series reporter namepublic java.lang.String getVersion()
public void setVersion(java.lang.String version)
version
- the Series reporter versionpublic java.lang.String getUri()
public void setUri(java.lang.String uri)
uri
- the Series reporter URIpublic java.lang.String getContext()
public void setContext(java.lang.String context)
context
- the Series context stringpublic boolean getNice()
public void setNice(boolean nice)
nice
- the Series nice indicatorpublic java.lang.String getResource()
public void setResource(java.lang.String resource)
resource
- the Series resourcepublic java.util.Set getArgs()
protected void setArgs(java.util.Set args)
args
- the Series set of Argspublic ArgSignature getArgSignature()
protected void setArgSignature(ArgSignature sig)
sig
- the Series arg signaturepublic java.util.Collection getReports()
protected void setReports(java.util.Collection reports)
reports
- the Series associated Reportspublic void addReport(Report report)
report
- a Report to associatepublic java.util.Set getSeriesConfigs()
protected void setSeriesConfigs(java.util.Set configs)
configs
- the Series set of SeriesConfigspublic void addSeriesConfig(SeriesConfig sc)
sc
- a SeriesConfig to associatepublic org.apache.xmlbeans.XmlObject toBean()
toBean
in class PersistentObject
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
o
- the object to compare
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String generateReport()
public java.lang.String generateReport(java.util.Date d)
public static Series generate(java.lang.String resource, java.lang.String context, int args)
resource
- the series resourcecontext
- the series contextargs
- the number of phony arguments to generate
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |