|
|||||||||
| 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 | |
|---|---|
static 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)
This method requires begin time and end time to be set to the current time prior to call. |
static KSC_PerformanceReportFactory |
getInstance()
Singleton static call to get the only instance that should exist for the KSC_PerformanceReportFactory |
Report |
getReportByIndex(int index)
|
Map<Integer,String> |
getReportList()
|
static void |
init()
Init routine. |
void |
reload()
Parses the KSC_PerformanceReport.xml via the Castor classes. |
void |
saveCurrent()
Saves the KSC_PerformanceReport.xml data. |
void |
sortByTitle()
Sorts the Reports List by their title. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static 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 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 Report getReportByIndex(int index)
public Map<Integer,String> getReportList()
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.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 | ||||||||