org.opennms.netmgt.config.rtc
Class RTCConfiguration

java.lang.Object
  extended by org.opennms.netmgt.config.rtc.RTCConfiguration
All Implemented Interfaces:
Serializable

public class RTCConfiguration
extends Object
implements Serializable

Top-level element for the rtc-configuration.xml configuration file.

Version:
$Revision$ $Date$
See Also:
Serialized Form

Constructor Summary
RTCConfiguration()
           
 
Method Summary
 void deleteErrorsBeforeUrlUnsubscribe()
           
 void deleteMaxEventsBeforeResend()
           
 void deleteSenders()
           
 void deleteUpdaters()
           
 int getErrorsBeforeUrlUnsubscribe()
          Returns the value of field 'errorsBeforeUrlUnsubscribe'.
 String getHighThresholdInterval()
          Returns the value of field 'highThresholdInterval'.
 String getLowThresholdInterval()
          Returns the value of field 'lowThresholdInterval'.
 int getMaxEventsBeforeResend()
          Returns the value of field 'maxEventsBeforeResend'.
 String getRollingWindow()
          Returns the value of field 'rollingWindow'.
 int getSenders()
          Returns the value of field 'senders'.
 int getUpdaters()
          Returns the value of field 'updaters'.
 String getUserRefreshInterval()
          Returns the value of field 'userRefreshInterval'.
 boolean hasErrorsBeforeUrlUnsubscribe()
          Method hasErrorsBeforeUrlUnsubscribe.
 boolean hasMaxEventsBeforeResend()
          Method hasMaxEventsBeforeResend.
 boolean hasSenders()
          Method hasSenders.
 boolean hasUpdaters()
          Method hasUpdaters.
 boolean isValid()
          Method isValid.
 void marshal(ContentHandler handler)
           
 void marshal(Writer out)
           
 void setErrorsBeforeUrlUnsubscribe(int errorsBeforeUrlUnsubscribe)
          Sets the value of field 'errorsBeforeUrlUnsubscribe'.
 void setHighThresholdInterval(String highThresholdInterval)
          Sets the value of field 'highThresholdInterval'.
 void setLowThresholdInterval(String lowThresholdInterval)
          Sets the value of field 'lowThresholdInterval'.
 void setMaxEventsBeforeResend(int maxEventsBeforeResend)
          Sets the value of field 'maxEventsBeforeResend'.
 void setRollingWindow(String rollingWindow)
          Sets the value of field 'rollingWindow'.
 void setSenders(int senders)
          Sets the value of field 'senders'.
 void setUpdaters(int updaters)
          Sets the value of field 'updaters'.
 void setUserRefreshInterval(String userRefreshInterval)
          Sets the value of field 'userRefreshInterval'.
static RTCConfiguration unmarshal(Reader reader)
          Method unmarshal.
 void validate()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RTCConfiguration

public RTCConfiguration()
Method Detail

deleteErrorsBeforeUrlUnsubscribe

public void deleteErrorsBeforeUrlUnsubscribe()

deleteMaxEventsBeforeResend

public void deleteMaxEventsBeforeResend()

deleteSenders

public void deleteSenders()

deleteUpdaters

public void deleteUpdaters()

getErrorsBeforeUrlUnsubscribe

public int getErrorsBeforeUrlUnsubscribe()
Returns the value of field 'errorsBeforeUrlUnsubscribe'. The field 'errorsBeforeUrlUnsubscribe' has the following description: Number of times a URL post is tried with errors before automatically unsubscribing the URL. A negative value means the URL is not unsubscribed until an 'unsubscribe' event is received.

Returns:
the value of field 'ErrorsBeforeUrlUnsubscribe'.

getHighThresholdInterval

public String getHighThresholdInterval()
Returns the value of field 'highThresholdInterval'. The field 'highThresholdInterval' has the following description: High threshold timer interval.

Returns:
the value of field 'HighThresholdInterval'.

getLowThresholdInterval

public String getLowThresholdInterval()
Returns the value of field 'lowThresholdInterval'. The field 'lowThresholdInterval' has the following description: Low threshold timer interval.

Returns:
the value of field 'LowThresholdInterval'.

getMaxEventsBeforeResend

public int getMaxEventsBeforeResend()
Returns the value of field 'maxEventsBeforeResend'. The field 'maxEventsBeforeResend' has the following description: The number of received events that prompts an immediate send of RTC data to the UI. This causes data to be sent immediately instead of waiting for a timer to go off.

Returns:
the value of field 'MaxEventsBeforeResend'.

getRollingWindow

public String getRollingWindow()
Returns the value of field 'rollingWindow'. The field 'rollingWindow' has the following description: The rolling window over which availability is calculated. It can be specified as a combination of hours/minutes/seconds. E.g.: 10h20m5s

Returns:
the value of field 'RollingWindow'.

getSenders

public int getSenders()
Returns the value of field 'senders'. The field 'senders' has the following description: Maximum number of threads sending data to the UI.

Returns:
the value of field 'Senders'.

getUpdaters

public int getUpdaters()
Returns the value of field 'updaters'. The field 'updaters' has the following description: Maximum number of threads reading the events and updating the RTC data.

Returns:
the value of field 'Updaters'.

getUserRefreshInterval

public String getUserRefreshInterval()
Returns the value of field 'userRefreshInterval'. The field 'userRefreshInterval' has the following description: User threshold timer interval. Used to send RTC data to the UI when no events are coming in.

Returns:
the value of field 'UserRefreshInterval'.

hasErrorsBeforeUrlUnsubscribe

public boolean hasErrorsBeforeUrlUnsubscribe()
Method hasErrorsBeforeUrlUnsubscribe.

Returns:
true if at least one ErrorsBeforeUrlUnsubscribe has been added

hasMaxEventsBeforeResend

public boolean hasMaxEventsBeforeResend()
Method hasMaxEventsBeforeResend.

Returns:
true if at least one MaxEventsBeforeResend has been added

hasSenders

public boolean hasSenders()
Method hasSenders.

Returns:
true if at least one Senders has been added

hasUpdaters

public boolean hasUpdaters()
Method hasUpdaters.

Returns:
true if at least one Updaters has been added

isValid

public boolean isValid()
Method isValid.

Returns:
true if this object is valid according to the schema

marshal

public void marshal(Writer out)
             throws org.exolab.castor.xml.MarshalException,
                    org.exolab.castor.xml.ValidationException
Parameters:
out -
Throws:
org.exolab.castor.xml.MarshalException - if object is null or if any SAXException is thrown during marshaling
org.exolab.castor.xml.ValidationException - if this object is an invalid instance according to the schema

marshal

public void marshal(ContentHandler handler)
             throws IOException,
                    org.exolab.castor.xml.MarshalException,
                    org.exolab.castor.xml.ValidationException
Parameters:
handler -
Throws:
IOException - if an IOException occurs during marshaling
org.exolab.castor.xml.ValidationException - if this object is an invalid instance according to the schema
org.exolab.castor.xml.MarshalException - if object is null or if any SAXException is thrown during marshaling

setErrorsBeforeUrlUnsubscribe

public void setErrorsBeforeUrlUnsubscribe(int errorsBeforeUrlUnsubscribe)
Sets the value of field 'errorsBeforeUrlUnsubscribe'. The field 'errorsBeforeUrlUnsubscribe' has the following description: Number of times a URL post is tried with errors before automatically unsubscribing the URL. A negative value means the URL is not unsubscribed until an 'unsubscribe' event is received.

Parameters:
errorsBeforeUrlUnsubscribe - the value of field 'errorsBeforeUrlUnsubscribe'.

setHighThresholdInterval

public void setHighThresholdInterval(String highThresholdInterval)
Sets the value of field 'highThresholdInterval'. The field 'highThresholdInterval' has the following description: High threshold timer interval.

Parameters:
highThresholdInterval - the value of field 'highThresholdInterval'.

setLowThresholdInterval

public void setLowThresholdInterval(String lowThresholdInterval)
Sets the value of field 'lowThresholdInterval'. The field 'lowThresholdInterval' has the following description: Low threshold timer interval.

Parameters:
lowThresholdInterval - the value of field 'lowThresholdInterval'.

setMaxEventsBeforeResend

public void setMaxEventsBeforeResend(int maxEventsBeforeResend)
Sets the value of field 'maxEventsBeforeResend'. The field 'maxEventsBeforeResend' has the following description: The number of received events that prompts an immediate send of RTC data to the UI. This causes data to be sent immediately instead of waiting for a timer to go off.

Parameters:
maxEventsBeforeResend - the value of field 'maxEventsBeforeResend'.

setRollingWindow

public void setRollingWindow(String rollingWindow)
Sets the value of field 'rollingWindow'. The field 'rollingWindow' has the following description: The rolling window over which availability is calculated. It can be specified as a combination of hours/minutes/seconds. E.g.: 10h20m5s

Parameters:
rollingWindow - the value of field 'rollingWindow'.

setSenders

public void setSenders(int senders)
Sets the value of field 'senders'. The field 'senders' has the following description: Maximum number of threads sending data to the UI.

Parameters:
senders - the value of field 'senders'.

setUpdaters

public void setUpdaters(int updaters)
Sets the value of field 'updaters'. The field 'updaters' has the following description: Maximum number of threads reading the events and updating the RTC data.

Parameters:
updaters - the value of field 'updaters'.

setUserRefreshInterval

public void setUserRefreshInterval(String userRefreshInterval)
Sets the value of field 'userRefreshInterval'. The field 'userRefreshInterval' has the following description: User threshold timer interval. Used to send RTC data to the UI when no events are coming in.

Parameters:
userRefreshInterval - the value of field 'userRefreshInterval'.

unmarshal

public static RTCConfiguration unmarshal(Reader reader)
                                  throws org.exolab.castor.xml.MarshalException,
                                         org.exolab.castor.xml.ValidationException
Method unmarshal.

Parameters:
reader -
Returns:
the unmarshaled org.opennms.netmgt.config.rtc.RTCConfiguration
Throws:
org.exolab.castor.xml.MarshalException - if object is null or if any SAXException is thrown during marshaling
org.exolab.castor.xml.ValidationException - if this object is an invalid instance according to the schema

validate

public void validate()
              throws org.exolab.castor.xml.ValidationException
Throws:
org.exolab.castor.xml.ValidationException - if this object is an invalid instance according to the schema


Copyright ? 2008. All Rights Reserved.