org.opennms.netmgt.config.poller
Class Downtime

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

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

Downtime model. This determines the rates at which addresses are to be polled when they remain down for extended periods. Usually polling is done at lower rates when a node is down until a certain amount of downtime at which the node is marked 'deleted'.

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

Constructor Summary
Downtime()
           
 
Method Summary
 void deleteBegin()
          Method deleteBegin
 void deleteEnd()
          Method deleteEnd
 void deleteInterval()
          Method deleteInterval
 long getBegin()
          Returns the value of field 'begin'.
 java.lang.String getDelete()
          Returns the value of field 'delete'.
 long getEnd()
          Returns the value of field 'end'.
 long getInterval()
          Returns the value of field 'interval'.
 boolean hasBegin()
          Method hasBegin
 boolean hasEnd()
          Method hasEnd
 boolean hasInterval()
          Method hasInterval
 boolean isValid()
          Method isValid
 void marshal(org.xml.sax.ContentHandler handler)
          Method marshal
 void marshal(java.io.Writer out)
          Method marshal
 void setBegin(long begin)
          Sets the value of field 'begin'.
 void setDelete(java.lang.String delete)
          Sets the value of field 'delete'.
 void setEnd(long end)
          Sets the value of field 'end'.
 void setInterval(long interval)
          Sets the value of field 'interval'.
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

Downtime

public Downtime()
Method Detail

deleteBegin

public void deleteBegin()
Method deleteBegin


deleteEnd

public void deleteEnd()
Method deleteEnd


deleteInterval

public void deleteInterval()
Method deleteInterval


getBegin

public long getBegin()
Returns the value of field 'begin'. The field 'begin' has the following description: Start of the interval.

Returns:
long

getDelete

public java.lang.String getDelete()
Returns the value of field 'delete'. The field 'delete' has the following description: Attribute that determines if service is to be deleted when down continously until the start time.

Returns:
String

getEnd

public long getEnd()
Returns the value of field 'end'. The field 'end' has the following description: End of the interval.

Returns:
long

getInterval

public long getInterval()
Returns the value of field 'interval'. The field 'interval' has the following description: Interval at which service is to be polled between the specified start and end when service has been continously down.

Returns:
long

hasBegin

public boolean hasBegin()
Method hasBegin

Returns:
boolean

hasEnd

public boolean hasEnd()
Method hasEnd

Returns:
boolean

hasInterval

public boolean hasInterval()
Method hasInterval

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

setBegin

public void setBegin(long begin)
Sets the value of field 'begin'. The field 'begin' has the following description: Start of the interval.

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

setDelete

public void setDelete(java.lang.String delete)
Sets the value of field 'delete'. The field 'delete' has the following description: Attribute that determines if service is to be deleted when down continously until the start time.

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

setEnd

public void setEnd(long end)
Sets the value of field 'end'. The field 'end' has the following description: End of the interval.

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

setInterval

public void setInterval(long interval)
Sets the value of field 'interval'. The field 'interval' has the following description: Interval at which service is to be polled between the specified start and end when service has been continously down.

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

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.