org.opennms.netmgt.config.poller
Class NodeOutage

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

public class NodeOutage
extends java.lang.Object
implements java.io.Serializable

Configuration of node-outage functionality

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

Constructor Summary
NodeOutage()
           
 
Method Summary
 CriticalService getCriticalService()
          Returns the value of field 'criticalService'.
 java.lang.String getPollAllIfNoCriticalServiceDefined()
          Returns the value of field 'pollAllIfNoCriticalServiceDefined'.
 java.lang.String getStatus()
          Returns the value of field 'status'.
 boolean isValid()
          Method isValid
 void marshal(org.xml.sax.ContentHandler handler)
          Method marshal
 void marshal(java.io.Writer out)
          Method marshal
 void setCriticalService(CriticalService criticalService)
          Sets the value of field 'criticalService'.
 void setPollAllIfNoCriticalServiceDefined(java.lang.String pollAllIfNoCriticalServiceDefined)
          Sets the value of field 'pollAllIfNoCriticalServiceDefined'.
 void setStatus(java.lang.String status)
          Sets the value of field 'status'.
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

NodeOutage

public NodeOutage()
Method Detail

getCriticalService

public CriticalService getCriticalService()
Returns the value of field 'criticalService'. The field 'criticalService' has the following description: Critical service. Defining a critical service greatly reduces the traffic generated by the poller when an interface is DOWN. When an interface is DOWN only the critical service is polled. If and when the critical service comes back UP then the interface's other services are polled to determine their status. When an interface is UP all services are polled as expected. If the critical service goes DOWN, all services are considered to be DOWN and therefore the interface is also considered DOWN.

Returns:
CriticalService

getPollAllIfNoCriticalServiceDefined

public java.lang.String getPollAllIfNoCriticalServiceDefined()
Returns the value of field 'pollAllIfNoCriticalServiceDefined'. The field 'pollAllIfNoCriticalServiceDefined' has the following description: Defines behavior of node outage processing when a service has changed status to DOWN and a critical service is not defined. If "true", all remaining services on the interface are polled.

Returns:
String

getStatus

public java.lang.String getStatus()
Returns the value of field 'status'. The field 'status' has the following description: Enable/disable node outage processing

Returns:
String

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

setCriticalService

public void setCriticalService(CriticalService criticalService)
Sets the value of field 'criticalService'. The field 'criticalService' has the following description: Critical service. Defining a critical service greatly reduces the traffic generated by the poller when an interface is DOWN. When an interface is DOWN only the critical service is polled. If and when the critical service comes back UP then the interface's other services are polled to determine their status. When an interface is UP all services are polled as expected. If the critical service goes DOWN, all services are considered to be DOWN and therefore the interface is also considered DOWN.

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

setPollAllIfNoCriticalServiceDefined

public void setPollAllIfNoCriticalServiceDefined(java.lang.String pollAllIfNoCriticalServiceDefined)
Sets the value of field 'pollAllIfNoCriticalServiceDefined'. The field 'pollAllIfNoCriticalServiceDefined' has the following description: Defines behavior of node outage processing when a service has changed status to DOWN and a critical service is not defined. If "true", all remaining services on the interface are polled.

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

setStatus

public void setStatus(java.lang.String status)
Sets the value of field 'status'. The field 'status' has the following description: Enable/disable node outage processing

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

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.