|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.ebay.carad.os.vitalsigns.listeners.AbstractReportingListener
com.ebay.carad.os.vitalsigns.listeners.UptimeReporter
public class UptimeReporter
Create a chart for last 4 week's outages. TODO : this class still needs to be ported to work with the OS version of vitalsigns
| Field Summary | |
|---|---|
private ISqlDAO |
mSqlDAO
|
| Constructor Summary | |
|---|---|
UptimeReporter()
Basic constructor. |
|
| Method Summary | |
|---|---|
java.lang.Object |
clone()
|
private org.jfree.chart.JFreeChart |
createChart(org.jfree.data.category.IntervalCategoryDataset dataset)
Creates a chart. |
org.jfree.data.category.IntervalCategoryDataset |
createDataset(java.util.List data)
Creates a sample dataset for the outage report. |
private static java.util.Date |
date(java.util.Calendar calendar)
Utility method for creating a simple date from a calendar object. |
private static java.util.Date |
date(int inHour,
int inMinute)
Utility method for creating Date objects. |
org.jfree.data.gantt.TaskSeries |
initializeSeries()
Initializes a task series, with maintenance hours highlighted at top. |
java.lang.String |
report(IDashboardReport config,
IDashboardAgent agent)
Basic reporting method. |
void |
reportRan(IDashboardAgent agent,
IDashboardReport report)
|
void |
setSqlDAO(ISqlDAO sqlDAO)
|
private void |
writeHTML(IDashboardReport config,
java.lang.String chartBase,
IReportingListenerContainer agent)
|
| Methods inherited from class com.ebay.carad.os.vitalsigns.listeners.AbstractReportingListener |
|---|
reportingComplete, reportingException, reportingPreStart |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.ebay.carad.os.vitalsigns.listeners.IReportingListener |
|---|
reportingComplete, reportingException, reportingPreStart |
| Field Detail |
|---|
private ISqlDAO mSqlDAO
| Constructor Detail |
|---|
public UptimeReporter()
| Method Detail |
|---|
public org.jfree.data.gantt.TaskSeries initializeSeries()
public org.jfree.data.category.IntervalCategoryDataset createDataset(java.util.List data)
data - a list of maps, representing the times of outages. Expect each map to contain "logtime" as a key.
private static java.util.Date date(int inHour,
int inMinute)
Date objects.
inHour - the hourinMinute - the minute
private static java.util.Date date(java.util.Calendar calendar)
calendar - the calendar to use
private org.jfree.chart.JFreeChart createChart(org.jfree.data.category.IntervalCategoryDataset dataset)
dataset - the dataset
public java.lang.String report(IDashboardReport config,
IDashboardAgent agent)
throws java.io.IOException
config - my configagent - my agent
java.io.IOException - if bad things happen
private void writeHTML(IDashboardReport config,
java.lang.String chartBase,
IReportingListenerContainer agent)
throws java.io.IOException
java.io.IOException
public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
clone in class java.lang.Objectjava.lang.CloneNotSupportedExceptionpublic void setSqlDAO(ISqlDAO sqlDAO)
public void reportRan(IDashboardAgent agent,
IDashboardReport report)
reportRan in interface IReportingListenerreportRan in class AbstractReportingListener
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||