|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.opennms.netmgt.config.RTCConfigFactory
public final class RTCConfigFactory
This is the singleton class used to load the configuration for the OpenNMS RTC from the rtc-configuration xml file. Note: Users of this class should make sure the init() is called before calling any other method to ensure the config is loaded before accessing other convenience methods.
| Constructor Summary | |
|---|---|
RTCConfigFactory(Reader reader)
|
|
| Method Summary | |
|---|---|
int |
getErrorsBeforeUrlUnsubscribe()
Return the number of times posts are tried with errors before an URL is automatically unsubscribed. |
long |
getHighThresholdInterval()
Return the high threshold interval at which data is to be resent. |
String |
getHighThresholdIntervalStr()
Return the high threshold interval at which data is to be resent. |
static RTCConfigFactory |
getInstance()
Return the singleton instance of this factory. |
long |
getLowThresholdInterval()
Return the low threshold interval at which data is to be resent. |
String |
getLowThresholdIntervalStr()
Return the low threshold interval at which data is to be resent. |
int |
getMaxEventsBeforeResend()
Return the max number of events after which data is to resent. |
long |
getRollingWindow()
Return the rolling window for which availability is to be computed. |
String |
getRollingWindowStr()
Return the rolling window for which availability is to be computed. |
int |
getSenders()
Return the number of sender to be started. |
int |
getUpdaters()
Return the number of updater threads to be started. |
long |
getUserRefreshInterval()
Return the user refresh interval at which data is to be resent - this is the interval at which data is resent when no events are received. |
String |
getUserRefreshIntervalStr()
Return the user refresh interval at which data is to be resent - this is the interval at which data is resent when no events are received. |
static void |
init()
Load the config from the default config file and create the singleton instance of this factory. |
static void |
reload()
Reload the config from the default config file |
static void |
setInstance(RTCConfigFactory instance)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RTCConfigFactory(Reader reader)
throws IOException,
org.exolab.castor.xml.MarshalException,
org.exolab.castor.xml.ValidationException
IOException
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException| Method Detail |
|---|
public static void setInstance(RTCConfigFactory instance)
public static void init()
throws IOException,
org.exolab.castor.xml.MarshalException,
org.exolab.castor.xml.ValidationException
IOException - Thrown if the specified config file cannot be read
org.exolab.castor.xml.MarshalException - Thrown if the file does not conform to the schema.
org.exolab.castor.xml.ValidationException - Thrown if the contents do not match the required schema.
public static void reload()
throws IOException,
org.exolab.castor.xml.MarshalException,
org.exolab.castor.xml.ValidationException
IOException - Thrown if the specified config file cannot be read/loaded
org.exolab.castor.xml.MarshalException - Thrown if the file does not conform to the schema.
org.exolab.castor.xml.ValidationException - Thrown if the contents do not match the required schema.public static RTCConfigFactory getInstance()
IllegalStateException - Thrown if the factory has not yet been initialized.public int getUpdaters()
public int getSenders()
public String getRollingWindowStr()
public long getRollingWindow()
public int getMaxEventsBeforeResend()
public String getLowThresholdIntervalStr()
public long getLowThresholdInterval()
public String getHighThresholdIntervalStr()
public long getHighThresholdInterval()
public String getUserRefreshIntervalStr()
public long getUserRefreshInterval()
public int getErrorsBeforeUrlUnsubscribe()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||