|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.opennms.netmgt.config.KSC_PerformanceReportFactory
public class KSC_PerformanceReportFactory
| Field Summary | |
|---|---|
String[] |
timespan_options
The array of values that may be used in the timespan declaration of a graph |
| Method Summary | |
|---|---|
void |
deleteReportAndSave(int index)
Deletes the indexed report and updates file configuration |
static void |
getBeginEndTime(String interval,
Calendar begin_time,
Calendar end_time)
|
static org.opennms.netmgt.config.kscReports.ReportsList |
getConfiguration()
Returns the KSC_PerformanceReport configuration object |
static KSC_PerformanceReportFactory |
getInstance()
Singleton static call to get the only instance that should exist for the KSC_PerformanceReportFactory |
static org.opennms.netmgt.config.kscReports.Graph |
getNewGraph()
Create a new blank graph & initialize it |
static org.opennms.netmgt.config.kscReports.Report |
getNewReport()
Create a new blank report & initialize it |
org.opennms.netmgt.config.kscReports.Graph |
getWorkingGraph()
Returns the working graph object |
int |
getWorkingGraphIndex()
Returns the working graph index |
org.opennms.netmgt.config.kscReports.Report |
getWorkingReport()
Returns the working report object |
int |
getWorkingReportIndex()
Returns the working report index |
static void |
init()
Init routine. |
void |
loadWorkingGraph(int index)
Loads the indexed graph from the working report into the working graph object or creates a new one if the object does not exist |
void |
loadWorkingReport(int index)
Loads the indexed report into the working report object or creates a new one if the object does not exist |
void |
loadWorkingReport(org.opennms.netmgt.config.kscReports.Report source_report)
Loads the source report into the working report object |
static void |
reload()
Parses the KSC_PerformanceReport.xml via the Castor classes |
void |
saveCurrent()
Saves the KSC_PerformanceReport.xml data |
void |
setWorkingReportIndex(int v_index)
Sets the working report index |
void |
sortByTitle()
Sorts the Reports List by their title. |
void |
unloadWorkingGraph(int requested_graphnum)
Unloads the working graph into the working report list at the requested graph number. |
void |
unloadWorkingReport()
Unloads the working report into the indexed report list at the point identified by working_index (this should have been set when the working report was loaded), then create a new blank working report |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public final String[] timespan_options
| Method Detail |
|---|
public static void init()
throws IOException,
FileNotFoundException,
org.exolab.castor.xml.MarshalException,
org.exolab.castor.xml.ValidationException
IOException
FileNotFoundException
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException
public static KSC_PerformanceReportFactory getInstance()
throws IllegalStateException
IllegalStateException
public static void reload()
throws IOException,
FileNotFoundException,
org.exolab.castor.xml.MarshalException,
org.exolab.castor.xml.ValidationException
IOException
FileNotFoundException
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException
public void saveCurrent()
throws IOException,
FileNotFoundException,
org.exolab.castor.xml.MarshalException,
org.exolab.castor.xml.ValidationException
IOException
FileNotFoundException
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationExceptionpublic void sortByTitle()
public static org.opennms.netmgt.config.kscReports.ReportsList getConfiguration()
public void deleteReportAndSave(int index)
throws ArrayIndexOutOfBoundsException,
IOException,
FileNotFoundException,
org.exolab.castor.xml.MarshalException,
org.exolab.castor.xml.ValidationException
ArrayIndexOutOfBoundsException
IOException
FileNotFoundException
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationExceptionpublic org.opennms.netmgt.config.kscReports.Report getWorkingReport()
public void loadWorkingReport(org.opennms.netmgt.config.kscReports.Report source_report)
throws org.exolab.castor.xml.MarshalException,
org.exolab.castor.xml.ValidationException
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException
public void loadWorkingReport(int index)
throws org.exolab.castor.xml.MarshalException,
org.exolab.castor.xml.ValidationException
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException
public void unloadWorkingReport()
throws org.exolab.castor.xml.MarshalException,
org.exolab.castor.xml.ValidationException
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationExceptionpublic static org.opennms.netmgt.config.kscReports.Report getNewReport()
public int getWorkingReportIndex()
public void setWorkingReportIndex(int v_index)
public org.opennms.netmgt.config.kscReports.Graph getWorkingGraph()
public int getWorkingGraphIndex()
public static org.opennms.netmgt.config.kscReports.Graph getNewGraph()
public void loadWorkingGraph(int index)
throws org.exolab.castor.xml.MarshalException,
org.exolab.castor.xml.ValidationException
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException
public void unloadWorkingGraph(int requested_graphnum)
throws org.exolab.castor.xml.MarshalException,
org.exolab.castor.xml.ValidationException
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException
public static void getBeginEndTime(String interval,
Calendar begin_time,
Calendar end_time)
throws IllegalArgumentException
IllegalArgumentException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||