org.opennms.netmgt.config.discovery
Class Specific

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

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

A specific addresses to be polled

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

Constructor Summary
Specific()
           
 
Method Summary
 void deleteRetries()
          Method deleteRetries
 void deleteTimeout()
          Method deleteTimeout
 java.lang.String getContent()
          Returns the value of field 'content'.
 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 setContent(java.lang.String content)
          Sets the value of field 'content'.
 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

Specific

public Specific()
Method Detail

deleteRetries

public void deleteRetries()
Method deleteRetries


deleteTimeout

public void deleteTimeout()
Method deleteTimeout


getContent

public java.lang.String getContent()
Returns the value of field 'content'. The field 'content' has the following description: internal content storage

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 specific address. 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 specific address. 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

setContent

public void setContent(java.lang.String content)
Sets the value of field 'content'. The field 'content' has the following description: internal content storage

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

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 specific address. 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 specific address. 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.