org.opennms.netmgt.config.rtc
Class RTCConfiguration

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

public class RTCConfiguration
extends java.lang.Object
implements java.io.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()
          Method deleteErrorsBeforeUrlUnsubscribe
 void deleteMaxEventsBeforeResend()
          Method deleteMaxEventsBeforeResend
 void deleteSenders()
          Method deleteSenders
 void deleteUpdaters()
          Method deleteUpdaters
 int getErrorsBeforeUrlUnsubscribe()
          Returns the value of field 'errorsBeforeUrlUnsubscribe'.
 java.lang.String getHighThresholdInterval()
          Returns the value of field 'highThresholdInterval'.
 java.lang.String getLowThresholdInterval()
          Returns the value of field 'lowThresholdInterval'.
 int getMaxEventsBeforeResend()
          Returns the value of field 'maxEventsBeforeResend'.
 java.lang.String getRollingWindow()
          Returns the value of field 'rollingWindow'.
 int getSenders()
          Returns the value of field 'senders'.
 int getUpdaters()
          Returns the value of field 'updaters'.
 java.lang.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(org.xml.sax.ContentHandler handler)
          Method marshal
 void marshal(java.io.Writer out)
          Method marshal
 void setErrorsBeforeUrlUnsubscribe(int errorsBeforeUrlUnsubscribe)
          Sets the value of field 'errorsBeforeUrlUnsubscribe'.
 void setHighThresholdInterval(java.lang.String highThresholdInterval)
          Sets the value of field 'highThresholdInterval'.
 void setLowThresholdInterval(java.lang.String lowThresholdInterval)
          Sets the value of field 'lowThresholdInterval'.
 void setMaxEventsBeforeResend(int maxEventsBeforeResend)
          Sets the value of field 'maxEventsBeforeResend'.
 void setRollingWindow(java.lang.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(java.lang.String userRefreshInterval)
          Sets the value of field 'userRefreshInterval'.
static java.lang.Object unmarshal(java.io.Reader reader)
          Method unmarshal
 void validate()
          Method 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()
Method deleteErrorsBeforeUrlUnsubscribe


deleteMaxEventsBeforeResend

public void deleteMaxEventsBeforeResend()
Method deleteMaxEventsBeforeResend


deleteSenders

public void deleteSenders()
Method deleteSenders


deleteUpdaters

public void deleteUpdaters()
Method 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:
int

getHighThresholdInterval

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

Returns:
String

getLowThresholdInterval

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

Returns:
String

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:
int

getRollingWindow

public java.lang.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:
String

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:
int

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:
int

getUserRefreshInterval

public java.lang.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:
String

hasErrorsBeforeUrlUnsubscribe

public boolean hasErrorsBeforeUrlUnsubscribe()
Method hasErrorsBeforeUrlUnsubscribe

Returns:
boolean

hasMaxEventsBeforeResend

public boolean hasMaxEventsBeforeResend()
Method hasMaxEventsBeforeResend

Returns:
boolean

hasSenders

public boolean hasSenders()
Method hasSenders

Returns:
boolean

hasUpdaters

public boolean hasUpdaters()
Method hasUpdaters

Returns:
boolean

isValid

public boolean isValid()
Method isValid

Returns:
boolean

marshal

public void marshal(java.io.Writer out)
             throws org.exolab.castor.xml.MarshalException,
                    org.exolab.castor.xml.ValidationException
Method marshal

Parameters:
out -
Throws:
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException

marshal

public void marshal(org.xml.sax.ContentHandler handler)
             throws java.io.IOException,
                    org.exolab.castor.xml.MarshalException,
                    org.exolab.castor.xml.ValidationException
Method marshal

Parameters:
handler -
Throws:
java.io.IOException
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException

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(java.lang.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(java.lang.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(java.lang.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(java.lang.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 java.lang.Object unmarshal(java.io.Reader reader)
                                  throws org.exolab.castor.xml.MarshalException,
                                         org.exolab.castor.xml.ValidationException
Method unmarshal

Parameters:
reader -
Returns:
Object
Throws:
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException

validate

public void validate()
              throws org.exolab.castor.xml.ValidationException
Method validate

Throws:
org.exolab.castor.xml.ValidationException


Copyright © 2007. All Rights Reserved.