org.opennms.netmgt.config.discovery
Class IncludeRange

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

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

A range of addresses to be polled.

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

Constructor Summary
IncludeRange()
           
 
Method Summary
 void deleteRetries()
          Method deleteRetries
 void deleteTimeout()
          Method deleteTimeout
 java.lang.String getBegin()
          Returns the value of field 'begin'.
 java.lang.String getEnd()
          Returns the value of field 'end'.
 int getRetries()
          Returns the value of field 'retries'.
 long getTimeout()
          Returns the value of field 'timeout'.
 boolean hasRetries()
          Method hasRetries
 boolean hasTimeout()
          Method hasTimeout
 boolean isValid()
          Method isValid
 void marshal(org.xml.sax.ContentHandler handler)
          Method marshal
 void marshal(java.io.Writer out)
          Method marshal
 void setBegin(java.lang.String begin)
          Sets the value of field 'begin'.
 void setEnd(java.lang.String end)
          Sets the value of field 'end'.
 void setRetries(int retries)
          Sets the value of field 'retries'.
 void setTimeout(long timeout)
          Sets the value of field 'timeout'.
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

IncludeRange

public IncludeRange()
Method Detail

deleteRetries

public void deleteRetries()
Method deleteRetries


deleteTimeout

public void deleteTimeout()
Method deleteTimeout


getBegin

public java.lang.String getBegin()
Returns the value of field 'begin'. The field 'begin' has the following description: Starting address of the range.

Returns:
String

getEnd

public java.lang.String getEnd()
Returns the value of field 'end'. The field 'end' has the following description: Ending address of the range. If the starting address is greater than the ending address, they are swapped.

Returns:
String

getRetries

public int getRetries()
Returns the value of field 'retries'. The field 'retries' has the following description: The number of times a ping is retried for this address range. If there is no response after the first ping to an address, it is tried again for the specified number of retries. This retry count overrides the default.

Returns:
int

getTimeout

public long getTimeout()
Returns the value of field 'timeout'. The field 'timeout' has the following description: The timeout on each poll for this address range. This timeout overrides the default.

Returns:
long

hasRetries

public boolean hasRetries()
Method hasRetries

Returns:
boolean

hasTimeout

public boolean hasTimeout()
Method hasTimeout

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(java.lang.String begin)
Sets the value of field 'begin'. The field 'begin' has the following description: Starting address of the range.

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

setEnd

public void setEnd(java.lang.String end)
Sets the value of field 'end'. The field 'end' has the following description: Ending address of the range. If the starting address is greater than the ending address, they are swapped.

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

setRetries

public void setRetries(int retries)
Sets the value of field 'retries'. The field 'retries' has the following description: The number of times a ping is retried for this address range. If there is no response after the first ping to an address, it is tried again for the specified number of retries. This retry count overrides the default.

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

setTimeout

public void setTimeout(long timeout)
Sets the value of field 'timeout'. The field 'timeout' has the following description: The timeout on each poll for this address range. This timeout overrides the default.

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

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.