|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.opennms.netmgt.config.xmlrpcd.ExternalServers
public class ExternalServers
Defines a main XMLRPC server and a set of backup XMLRPC servers
| Constructor Summary | |
|---|---|
ExternalServers()
|
|
| Method Summary | |
|---|---|
void |
addXmlrpcServer(int index,
XmlrpcServer vXmlrpcServer)
|
void |
addXmlrpcServer(XmlrpcServer vXmlrpcServer)
|
void |
deleteElapseTime()
|
void |
deleteRetries()
|
Enumeration<XmlrpcServer> |
enumerateXmlrpcServer()
Method enumerateXmlrpcServer. |
int |
getElapseTime()
Returns the value of field 'elapseTime'. |
int |
getRetries()
Returns the value of field 'retries'. |
XmlrpcServer[] |
getXmlrpcServer()
Method getXmlrpcServer.Returns the contents of the collection in an Array. |
XmlrpcServer |
getXmlrpcServer(int index)
Method getXmlrpcServer. |
List<XmlrpcServer> |
getXmlrpcServerCollection()
Method getXmlrpcServerCollection.Returns a reference to '_xmlrpcServerList'. |
int |
getXmlrpcServerCount()
Method getXmlrpcServerCount. |
boolean |
hasElapseTime()
Method hasElapseTime. |
boolean |
hasRetries()
Method hasRetries. |
boolean |
isValid()
Method isValid. |
Iterator<XmlrpcServer> |
iterateXmlrpcServer()
Method iterateXmlrpcServer. |
void |
marshal(ContentHandler handler)
|
void |
marshal(Writer out)
|
void |
removeAllXmlrpcServer()
|
boolean |
removeXmlrpcServer(XmlrpcServer vXmlrpcServer)
Method removeXmlrpcServer. |
XmlrpcServer |
removeXmlrpcServerAt(int index)
Method removeXmlrpcServerAt. |
void |
setElapseTime(int elapseTime)
Sets the value of field 'elapseTime'. |
void |
setRetries(int retries)
Sets the value of field 'retries'. |
void |
setXmlrpcServer(int index,
XmlrpcServer vXmlrpcServer)
|
void |
setXmlrpcServer(List<XmlrpcServer> vXmlrpcServerList)
Sets the value of '_xmlrpcServerList' by copying the given Vector. |
void |
setXmlrpcServer(XmlrpcServer[] vXmlrpcServerArray)
|
void |
setXmlrpcServerCollection(List<XmlrpcServer> xmlrpcServerList)
Deprecated. |
static ExternalServers |
unmarshal(Reader reader)
Method unmarshal. |
void |
validate()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ExternalServers()
| Method Detail |
|---|
public void addXmlrpcServer(XmlrpcServer vXmlrpcServer)
throws IndexOutOfBoundsException
vXmlrpcServer -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collection
public void addXmlrpcServer(int index,
XmlrpcServer vXmlrpcServer)
throws IndexOutOfBoundsException
index - vXmlrpcServer -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collectionpublic void deleteElapseTime()
public void deleteRetries()
public Enumeration<XmlrpcServer> enumerateXmlrpcServer()
public int getElapseTime()
public int getRetries()
public XmlrpcServer getXmlrpcServer(int index)
throws IndexOutOfBoundsException
index -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collectionpublic XmlrpcServer[] getXmlrpcServer()
Note: Just in case the collection contents are changing in another thread, we pass a 0-length Array of the correct type into the API call. This way we know that the Array returned is of exactly the correct length.
public List<XmlrpcServer> getXmlrpcServerCollection()
public int getXmlrpcServerCount()
public boolean hasElapseTime()
public boolean hasRetries()
public boolean isValid()
public Iterator<XmlrpcServer> iterateXmlrpcServer()
public void marshal(Writer out)
throws org.exolab.castor.xml.MarshalException,
org.exolab.castor.xml.ValidationException
out -
org.exolab.castor.xml.MarshalException - if object is
null or if any SAXException is thrown during marshaling
org.exolab.castor.xml.ValidationException - if this
object is an invalid instance according to the schema
public void marshal(ContentHandler handler)
throws IOException,
org.exolab.castor.xml.MarshalException,
org.exolab.castor.xml.ValidationException
handler -
IOException - if an IOException occurs during
marshaling
org.exolab.castor.xml.ValidationException - if this
object is an invalid instance according to the schema
org.exolab.castor.xml.MarshalException - if object is
null or if any SAXException is thrown during marshalingpublic void removeAllXmlrpcServer()
public boolean removeXmlrpcServer(XmlrpcServer vXmlrpcServer)
vXmlrpcServer -
public XmlrpcServer removeXmlrpcServerAt(int index)
index -
public void setElapseTime(int elapseTime)
elapseTime - the value of field 'elapseTime'.public void setRetries(int retries)
retries - the value of field 'retries'.
public void setXmlrpcServer(int index,
XmlrpcServer vXmlrpcServer)
throws IndexOutOfBoundsException
index - vXmlrpcServer -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collectionpublic void setXmlrpcServer(XmlrpcServer[] vXmlrpcServerArray)
vXmlrpcServerArray - public void setXmlrpcServer(List<XmlrpcServer> vXmlrpcServerList)
vXmlrpcServerList - the Vector to copy.public void setXmlrpcServerCollection(List<XmlrpcServer> xmlrpcServerList)
xmlrpcServerList - the Vector to set.
public static ExternalServers unmarshal(Reader reader)
throws org.exolab.castor.xml.MarshalException,
org.exolab.castor.xml.ValidationException
reader -
org.exolab.castor.xml.MarshalException - if object is
null or if any SAXException is thrown during marshaling
org.exolab.castor.xml.ValidationException - if this
object is an invalid instance according to the schema
public void validate()
throws org.exolab.castor.xml.ValidationException
org.exolab.castor.xml.ValidationException - if this
object is an invalid instance according to the schema
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||