org.opennms.netmgt.config.xmlrpcd
Class ExternalServers

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

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

Defines a main XMLRPC server and a set of backup XMLRPC servers

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

Constructor Summary
ExternalServers()
           
 
Method Summary
 void addXmlrpcServer(int index, XmlrpcServer vXmlrpcServer)
          Method addXmlrpcServer
 void addXmlrpcServer(XmlrpcServer vXmlrpcServer)
          Method addXmlrpcServer
 void clearXmlrpcServer()
          Method clearXmlrpcServer
 void deleteElapseTime()
          Method deleteElapseTime
 void deleteRetries()
          Method deleteRetries
 java.util.Enumeration enumerateXmlrpcServer()
          Method enumerateXmlrpcServer
 int getElapseTime()
          Returns the value of field 'elapseTime'.
 int getRetries()
          Returns the value of field 'retries'.
 XmlrpcServer[] getXmlrpcServer()
          Method getXmlrpcServer
 XmlrpcServer getXmlrpcServer(int index)
          Method getXmlrpcServer
 java.util.ArrayList getXmlrpcServerCollection()
          Method getXmlrpcServerCollection Returns a reference to 'xmlrpcServer'.
 int getXmlrpcServerCount()
          Method getXmlrpcServerCount
 boolean hasElapseTime()
          Method hasElapseTime
 boolean hasRetries()
          Method hasRetries
 boolean isValid()
          Method isValid
 void marshal(org.xml.sax.ContentHandler handler)
          Method marshal
 void marshal(java.io.Writer out)
          Method marshal
 boolean removeXmlrpcServer(XmlrpcServer vXmlrpcServer)
          Method removeXmlrpcServer
 void setElapseTime(int elapseTime)
          Sets the value of field 'elapseTime'.
 void setRetries(int retries)
          Sets the value of field 'retries'.
 void setXmlrpcServer(java.util.ArrayList xmlrpcServerCollection)
          Method setXmlrpcServer Sets the value of 'xmlrpcServer' by copying the given ArrayList.
 void setXmlrpcServer(int index, XmlrpcServer vXmlrpcServer)
          Method setXmlrpcServer
 void setXmlrpcServer(XmlrpcServer[] xmlrpcServerArray)
          Method setXmlrpcServer
 void setXmlrpcServerCollection(java.util.ArrayList xmlrpcServerCollection)
          Method setXmlrpcServerCollection Sets the value of 'xmlrpcServer' by setting it to the given ArrayList.
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

ExternalServers

public ExternalServers()
Method Detail

addXmlrpcServer

public void addXmlrpcServer(XmlrpcServer vXmlrpcServer)
                     throws java.lang.IndexOutOfBoundsException
Method addXmlrpcServer

Parameters:
vXmlrpcServer -
Throws:
java.lang.IndexOutOfBoundsException

addXmlrpcServer

public void addXmlrpcServer(int index,
                            XmlrpcServer vXmlrpcServer)
                     throws java.lang.IndexOutOfBoundsException
Method addXmlrpcServer

Parameters:
index -
vXmlrpcServer -
Throws:
java.lang.IndexOutOfBoundsException

clearXmlrpcServer

public void clearXmlrpcServer()
Method clearXmlrpcServer


deleteElapseTime

public void deleteElapseTime()
Method deleteElapseTime


deleteRetries

public void deleteRetries()
Method deleteRetries


enumerateXmlrpcServer

public java.util.Enumeration enumerateXmlrpcServer()
Method enumerateXmlrpcServer

Returns:
Enumeration

getElapseTime

public int getElapseTime()
Returns the value of field 'elapseTime'. The field 'elapseTime' has the following description: Elapsed time between retries

Returns:
int

getRetries

public int getRetries()
Returns the value of field 'retries'. The field 'retries' has the following description: Retries to set up communication with an XMLRPC server

Returns:
int

getXmlrpcServer

public XmlrpcServer getXmlrpcServer(int index)
                             throws java.lang.IndexOutOfBoundsException
Method getXmlrpcServer

Parameters:
index -
Returns:
XmlrpcServer
Throws:
java.lang.IndexOutOfBoundsException

getXmlrpcServer

public XmlrpcServer[] getXmlrpcServer()
Method getXmlrpcServer

Returns:
XmlrpcServer

getXmlrpcServerCollection

public java.util.ArrayList getXmlrpcServerCollection()
Method getXmlrpcServerCollection Returns a reference to 'xmlrpcServer'. No type checking is performed on any modications to the Collection.

Returns:
ArrayList

getXmlrpcServerCount

public int getXmlrpcServerCount()
Method getXmlrpcServerCount

Returns:
int

hasElapseTime

public boolean hasElapseTime()
Method hasElapseTime

Returns:
boolean

hasRetries

public boolean hasRetries()
Method hasRetries

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

removeXmlrpcServer

public boolean removeXmlrpcServer(XmlrpcServer vXmlrpcServer)
Method removeXmlrpcServer

Parameters:
vXmlrpcServer -
Returns:
boolean

setElapseTime

public void setElapseTime(int elapseTime)
Sets the value of field 'elapseTime'. The field 'elapseTime' has the following description: Elapsed time between retries

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

setRetries

public void setRetries(int retries)
Sets the value of field 'retries'. The field 'retries' has the following description: Retries to set up communication with an XMLRPC server

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

setXmlrpcServer

public void setXmlrpcServer(int index,
                            XmlrpcServer vXmlrpcServer)
                     throws java.lang.IndexOutOfBoundsException
Method setXmlrpcServer

Parameters:
index -
vXmlrpcServer -
Throws:
java.lang.IndexOutOfBoundsException

setXmlrpcServer

public void setXmlrpcServer(XmlrpcServer[] xmlrpcServerArray)
Method setXmlrpcServer

Parameters:
xmlrpcServerArray -

setXmlrpcServer

public void setXmlrpcServer(java.util.ArrayList xmlrpcServerCollection)
Method setXmlrpcServer Sets the value of 'xmlrpcServer' by copying the given ArrayList.

Parameters:
xmlrpcServerCollection - the Vector to copy.

setXmlrpcServerCollection

public void setXmlrpcServerCollection(java.util.ArrayList xmlrpcServerCollection)
Method setXmlrpcServerCollection Sets the value of 'xmlrpcServer' by setting it to the given ArrayList. No type checking is performed.

Parameters:
xmlrpcServerCollection - the ArrayList to copy.

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.