org.opennms.netmgt.config.server
Class LocalServer

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

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

Top-level element for the opennms-server.xml configuration file.

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

Constructor Summary
LocalServer()
           
 
Method Summary
 void deleteDefaultCriticalPathRetries()
          Method deleteDefaultCriticalPathRetries
 void deleteDefaultCriticalPathTimeout()
          Method deleteDefaultCriticalPathTimeout
 java.lang.String getDefaultCriticalPathIp()
          Returns the value of field 'defaultCriticalPathIp'.
 int getDefaultCriticalPathRetries()
          Returns the value of field 'defaultCriticalPathRetries'.
 java.lang.String getDefaultCriticalPathService()
          Returns the value of field 'defaultCriticalPathService'.
 int getDefaultCriticalPathTimeout()
          Returns the value of field 'defaultCriticalPathTimeout'.
 java.lang.String getServerName()
          Returns the value of field 'serverName'.
 java.lang.String getVerifyServer()
          Returns the value of field 'verifyServer'.
 boolean hasDefaultCriticalPathRetries()
          Method hasDefaultCriticalPathRetries
 boolean hasDefaultCriticalPathTimeout()
          Method hasDefaultCriticalPathTimeout
 boolean isValid()
          Method isValid
 void marshal(org.xml.sax.ContentHandler handler)
          Method marshal
 void marshal(java.io.Writer out)
          Method marshal
 void setDefaultCriticalPathIp(java.lang.String defaultCriticalPathIp)
          Sets the value of field 'defaultCriticalPathIp'.
 void setDefaultCriticalPathRetries(int defaultCriticalPathRetries)
          Sets the value of field 'defaultCriticalPathRetries'.
 void setDefaultCriticalPathService(java.lang.String defaultCriticalPathService)
          Sets the value of field 'defaultCriticalPathService'.
 void setDefaultCriticalPathTimeout(int defaultCriticalPathTimeout)
          Sets the value of field 'defaultCriticalPathTimeout'.
 void setServerName(java.lang.String serverName)
          Sets the value of field 'serverName'.
 void setVerifyServer(java.lang.String verifyServer)
          Sets the value of field 'verifyServer'.
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

LocalServer

public LocalServer()
Method Detail

deleteDefaultCriticalPathRetries

public void deleteDefaultCriticalPathRetries()
Method deleteDefaultCriticalPathRetries


deleteDefaultCriticalPathTimeout

public void deleteDefaultCriticalPathTimeout()
Method deleteDefaultCriticalPathTimeout


getDefaultCriticalPathIp

public java.lang.String getDefaultCriticalPathIp()
Returns the value of field 'defaultCriticalPathIp'.

Returns:
String

getDefaultCriticalPathRetries

public int getDefaultCriticalPathRetries()
Returns the value of field 'defaultCriticalPathRetries'.

Returns:
int

getDefaultCriticalPathService

public java.lang.String getDefaultCriticalPathService()
Returns the value of field 'defaultCriticalPathService'.

Returns:
String

getDefaultCriticalPathTimeout

public int getDefaultCriticalPathTimeout()
Returns the value of field 'defaultCriticalPathTimeout'.

Returns:
int

getServerName

public java.lang.String getServerName()
Returns the value of field 'serverName'.

Returns:
String

getVerifyServer

public java.lang.String getVerifyServer()
Returns the value of field 'verifyServer'. The field 'verifyServer' has the following description: A flag to indicate if poller has to identify the nms server to restrict services to poll.

Returns:
String

hasDefaultCriticalPathRetries

public boolean hasDefaultCriticalPathRetries()
Method hasDefaultCriticalPathRetries

Returns:
boolean

hasDefaultCriticalPathTimeout

public boolean hasDefaultCriticalPathTimeout()
Method hasDefaultCriticalPathTimeout

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

setDefaultCriticalPathIp

public void setDefaultCriticalPathIp(java.lang.String defaultCriticalPathIp)
Sets the value of field 'defaultCriticalPathIp'.

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

setDefaultCriticalPathRetries

public void setDefaultCriticalPathRetries(int defaultCriticalPathRetries)
Sets the value of field 'defaultCriticalPathRetries'.

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

setDefaultCriticalPathService

public void setDefaultCriticalPathService(java.lang.String defaultCriticalPathService)
Sets the value of field 'defaultCriticalPathService'.

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

setDefaultCriticalPathTimeout

public void setDefaultCriticalPathTimeout(int defaultCriticalPathTimeout)
Sets the value of field 'defaultCriticalPathTimeout'.

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

setServerName

public void setServerName(java.lang.String serverName)
Sets the value of field 'serverName'.

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

setVerifyServer

public void setVerifyServer(java.lang.String verifyServer)
Sets the value of field 'verifyServer'. The field 'verifyServer' has the following description: A flag to indicate if poller has to identify the nms server to restrict services to poll.

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

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.