|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.ebay.carad.os.vitalsigns.AbstractListenerContainer com.ebay.carad.os.vitalsigns.DashboardReport
public class DashboardReport
Configuration object for the reports that are run by ReportAgent.
Field Summary | |
---|---|
private int |
frequencyInMinutes
|
private int |
id
|
private java.lang.Float |
lastObservedValue
|
private long |
lastRunTimestamp
|
private static org.apache.log4j.Logger |
LOGGER
|
private IDataRetriever |
mDataRetriever
|
private java.lang.String |
mGroupName
|
private boolean |
mIncludeInSummary
|
private boolean |
moreIsBetter
|
private java.lang.Float |
previouslyObservedValue
|
private int |
sortOrder
|
private java.lang.String |
subTitle
|
private java.lang.String |
title
|
Constructor Summary | |
---|---|
DashboardReport()
Basic constructor. |
|
DashboardReport(DashboardReport copyFrom)
Copy constructor. |
Method Summary | |
---|---|
int |
compareTo(java.lang.Object obj)
|
int |
getFrequencyInMinutes()
Gets the frequency in minutes for the logging and generation of this report. |
java.lang.String |
getGroupName()
|
int |
getID()
Returns the ID of this report, used to key off the report's datasource. |
boolean |
getIncludeInSummary()
|
boolean |
getMoreIsBetter()
Returns whether this report represents a value that should be increasing over time. |
java.lang.Float |
getPreviousData()
|
java.util.List |
getReports()
Returns an iterator over zero or more IDashboardReport objects. |
int |
getSortOrder()
Returns the display sort order of this report. |
java.lang.String |
getSubTitle()
Returns the sub-title of this report, which will appear under the report's main title. |
java.lang.Float |
getThisRunData()
|
java.lang.String |
getTitle()
Returns the title of this report. |
void |
run(IDashboardAgent agent,
long inRunTime)
Causes this report to run; based on this report's configuration, may cause logging and/or report generation to occur. |
void |
setDataRetriever(IDataRetriever dataRetriever)
|
void |
setFrequencyInMinutes(int freq)
Sets the frequency in minutes for the generation of this report. |
void |
setGroupName(java.lang.String groupName)
|
void |
setID(int setId)
Sets the ID of this report. |
void |
setIncludeInSummary(boolean includeInSummary)
|
void |
setMoreIsBetter(boolean flag)
Sets whether this report represents a value that should be increasing over time. |
void |
setSortOrder(int setSortorder)
Sets the display sort order of this report. |
void |
setSubTitle(java.lang.String title)
Sets the sub-title of this report. |
void |
setTitle(java.lang.String inTitle)
Sets the title of this report. |
void |
templatize(java.lang.Object[] substitutions)
Templatizes the title / subtitle / ID based on the objects passed in. |
java.lang.String |
toString()
|
Methods inherited from class com.ebay.carad.os.vitalsigns.AbstractListenerContainer |
---|
addReportingListener, fireListenersCompleted, fireListenersException, fireListenersReportRan, fireListenersStarted, getReportingListeners, setReportingListeners |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface com.ebay.carad.os.vitalsigns.IReportingListenerContainer |
---|
addReportingListener, getReportingListeners |
Field Detail |
---|
private java.lang.String title
private java.lang.String subTitle
private java.lang.String mGroupName
private int frequencyInMinutes
private int id
private int sortOrder
private boolean moreIsBetter
private IDataRetriever mDataRetriever
private java.lang.Float lastObservedValue
private java.lang.Float previouslyObservedValue
private long lastRunTimestamp
private boolean mIncludeInSummary
private static final org.apache.log4j.Logger LOGGER
Constructor Detail |
---|
public DashboardReport()
public DashboardReport(DashboardReport copyFrom)
copyFrom
- report to use as a templateMethod Detail |
---|
public void run(IDashboardAgent agent, long inRunTime)
IDashboardReport
run
in interface IDashboardReport
inRunTime
- the time this report run was kicked off (in ms since epoch)public void templatize(java.lang.Object[] substitutions)
templatize
in interface ITemplatizable
substitutions
- an array of objects (usually strings) to use for templatizationITemplatizable.templatize(java.lang.Object[])
public int getID()
IDashboardReport
getID
in interface IDashboardReport
public java.lang.String getTitle()
IDashboardReport
getTitle
in interface IDashboardReport
public java.lang.String getSubTitle()
IDashboardReport
getSubTitle
in interface IDashboardReport
public boolean getMoreIsBetter()
IDashboardReport
getMoreIsBetter
in interface IDashboardReport
public void setTitle(java.lang.String inTitle)
inTitle
- the title to set topublic void setSubTitle(java.lang.String title)
title
- the sub-title to usepublic int getFrequencyInMinutes()
IDashboardReport
getFrequencyInMinutes
in interface IDashboardReport
public void setFrequencyInMinutes(int freq)
freq
- the frequency in minutespublic void setID(int setId)
setId
- the ID to usepublic void setSortOrder(int setSortorder)
setSortorder
- the order to usepublic void setMoreIsBetter(boolean flag)
flag
- if true, this report is "happy" when its value has increasedpublic int compareTo(java.lang.Object obj)
compareTo
in interface java.lang.Comparable
public java.util.List getReports()
IDashboardReportContainer
IDashboardReport
objects.
getReports
in interface IDashboardReportContainer
IDashboardReport
objects.public int getSortOrder()
IDashboardReport
getSortOrder
in interface IDashboardReport
getSortOrder
in interface IDashboardReportContainer
public void setDataRetriever(IDataRetriever dataRetriever)
public java.lang.Float getThisRunData()
getThisRunData
in interface IDashboardReport
public java.lang.Float getPreviousData()
getPreviousData
in interface IDashboardReport
public boolean getIncludeInSummary()
getIncludeInSummary
in interface IDashboardReport
public void setIncludeInSummary(boolean includeInSummary)
public java.lang.String getGroupName()
getGroupName
in interface IDashboardReportContainer
IDashboardReportContainer.getGroupName()
public void setGroupName(java.lang.String groupName)
groupName
- The groupName to set.IDashboardReportContainer.getGroupName()
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |