|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.sdsc.inca.WrapSeries
public class WrapSeries
A class that wraps a SeriesConfig and its accompanying Series with some convenience methods.
Field Summary | |
---|---|
protected java.awt.Color |
color
|
protected edu.sdsc.inca.dataModel.util.SeriesConfig |
config
|
protected edu.sdsc.inca.dataModel.util.Series |
series
|
Constructor Summary | |
---|---|
WrapSeries()
Constructs a new WrapSeries. |
|
WrapSeries(edu.sdsc.inca.dataModel.util.SeriesConfig config)
Constructs a new WrapSeries to wrap an existing SeriesConfig. |
Method Summary | |
---|---|
void |
copy(WrapSeries original)
Copies all information from another series into this one. |
boolean |
equals(java.lang.Object o)
Override of the default equals method. |
java.lang.String |
getAcceptedComparison()
Returns the output comparison associated with series acceptable output testing, or null if there is none. |
java.lang.String |
getAcceptedComparitor()
Returns the Comparitor class name associated with series acceptable output testing, or null if there is none. |
java.lang.String |
getAcceptedNotifier()
Returns the notifier associated with series acceptable output testing, or null if there is none. |
java.lang.String |
getAcceptedTarget()
Returns the notification target associated with series acceptable output testing, or null if there is none. |
java.lang.String |
getAction()
Returns the action ("add", "delete") associated with the series. |
java.util.Properties |
getArgs()
Returns the reporter arguments associated with the series. |
java.awt.Color |
getColor()
Returns the display color used with this series. |
java.lang.String |
getContext()
Returns the context string for the series. |
java.lang.String |
getCpuLimit()
Returns the maximum CPU seconds an instance of the series is allowed to use; null if unlimited. |
java.lang.String |
getCron()
Returns the schedule associated with the series via a cron spec. |
java.lang.String |
getMemoryLimit()
Returns the maximum Memory MBs an instance of the series is allowed to use; null if unlimited. |
java.lang.String |
getNickname()
Returns the nickname for the series. |
java.lang.String |
getReporter()
Returns the name of the reporter. |
java.lang.String |
getReporterVersion()
Returns the version of the reporter. |
java.lang.String |
getResource()
Returns the name of the resource group associated with this series. |
edu.sdsc.inca.dataModel.util.SeriesConfig |
getSeries()
Returns the SeriesConfig contained in this WrapSeries. |
java.lang.String |
getWallClockLimit()
Returns the maximum wall clock seconds an instance of the series is allowed to use; null if unlimited. |
void |
setAcceptedComparison(java.lang.String comparison)
Sets the output comparison associated with series acceptable output testing. |
void |
setAcceptedComparitor(java.lang.String comparitor)
Sets the Comparitor class name associated with series acceptable output testing. |
void |
setAcceptedTarget(java.lang.String notifier,
java.lang.String target)
Sets the notifier and notification target associated with series acceptable output testing. |
void |
setAction(java.lang.String action)
Sets the action associated with this series to a specified value. |
void |
setArgs(java.util.Properties args)
Sets the reporter arguments associated with the series. |
void |
setColor(java.awt.Color c)
Sets the display color used with this series. |
void |
setContext(java.lang.String context)
Sets the context string for the series. |
void |
setCpuLimit(java.lang.String limit)
Sets the maximum CPU seconds an instance of the series is allowed to use. |
void |
setCron(java.lang.String cron)
Sets the schedule associated with the series via a cron spec. |
void |
setMemoryLimit(java.lang.String limit)
Sets the maximum memory MBs an instance of the series is allowed to use. |
void |
setNickname(java.lang.String nickname)
Sets the nickname for the series. |
void |
setReporter(java.lang.String reporter)
Sets the name of the reporter that this series runs. |
void |
setReporterVersion(java.lang.String version)
Sets the version of the reporter that this series runs. |
void |
setResource(java.lang.String name)
Sets the name of the resource/group to which this series applies. |
void |
setWallClockLimit(java.lang.String limit)
Sets the maximum wall seconds an instance of the series is allowed to use. |
java.lang.String |
toString()
An override of the default toString function. |
java.lang.String |
toXml()
Returns XML for the series. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected java.awt.Color color
protected edu.sdsc.inca.dataModel.util.SeriesConfig config
protected edu.sdsc.inca.dataModel.util.Series series
Constructor Detail |
---|
public WrapSeries()
public WrapSeries(edu.sdsc.inca.dataModel.util.SeriesConfig config)
config
- the SeriesConfig to wrapMethod Detail |
---|
public void copy(WrapSeries original)
original
- the WrapSeries to duplicatepublic boolean equals(java.lang.Object o)
equals
in class java.lang.Object
o
- the object to compare to this one
public java.lang.String getAcceptedComparison()
public java.lang.String getAcceptedComparitor()
public java.lang.String getAcceptedNotifier()
public java.lang.String getAcceptedTarget()
public java.lang.String getAction()
public java.util.Properties getArgs()
public java.awt.Color getColor()
public java.lang.String getContext()
public java.lang.String getCpuLimit()
public java.lang.String getCron()
crontab(5)
public java.lang.String getMemoryLimit()
public java.lang.String getNickname()
public java.lang.String getReporter()
public java.lang.String getReporterVersion()
public java.lang.String getResource()
public edu.sdsc.inca.dataModel.util.SeriesConfig getSeries()
public java.lang.String getWallClockLimit()
public void setAcceptedComparison(java.lang.String comparison)
comparison
- the accepted output comparison, null if nonepublic void setAcceptedComparitor(java.lang.String comparitor)
comparitor
- the accepted output Comparitor class name, null if nonepublic void setAcceptedTarget(java.lang.String notifier, java.lang.String target)
notifier
- the accepted notifier, null if nonetarget
- the accepted notification target, null if nonepublic void setAction(java.lang.String action)
action
- the action value ("add", "delete")public void setArgs(java.util.Properties args)
args
- the arguments as a Properties with the argument names as the
keys and the argument values as the valuespublic void setColor(java.awt.Color c)
c
- this series' display colorpublic void setContext(java.lang.String context)
context
- the context string of the seriespublic void setCpuLimit(java.lang.String limit)
limit
- the maximum allowed CPU usage in seconds, null if unlimitedpublic void setCron(java.lang.String cron)
cron
- a cron spec--a space-delimited list of values for the minutes,
hours, day of month, month, and day of week for the schedulecrontab(1)
public void setMemoryLimit(java.lang.String limit)
limit
- the maximum allowed memory usage in MBs, null if unlimitedpublic void setNickname(java.lang.String nickname)
nickname
- the nickname of the seriespublic void setReporter(java.lang.String reporter)
name
- the name of the reporterpublic void setReporterVersion(java.lang.String version)
version
- the version of the reporter, null for latestpublic void setResource(java.lang.String name)
name
- the name for the resource/grouppublic void setWallClockLimit(java.lang.String limit)
limit
- the maximum allowed wall usage in secs, null if unlimitedpublic java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String toXml()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |