|
|||||||||
| 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 primary XMLRPC server (and optional backup servers) and the sets of events to which it subscribes
| Constructor Summary | |
|---|---|
ExternalServers()
|
|
| Method Summary | |
|---|---|
void |
addServerSubscription(int index,
String vServerSubscription)
|
void |
addServerSubscription(String vServerSubscription)
|
void |
addXmlrpcServer(int index,
XmlrpcServer vXmlrpcServer)
|
void |
addXmlrpcServer(XmlrpcServer vXmlrpcServer)
|
void |
deleteElapseTime()
|
void |
deleteRetries()
|
Enumeration<String> |
enumerateServerSubscription()
Method enumerateServerSubscription. |
Enumeration<XmlrpcServer> |
enumerateXmlrpcServer()
Method enumerateXmlrpcServer. |
int |
getElapseTime()
Returns the value of field 'elapseTime'. |
int |
getRetries()
Returns the value of field 'retries'. |
String[] |
getServerSubscription()
Method getServerSubscription.Returns the contents of the collection in an Array. |
String |
getServerSubscription(int index)
Method getServerSubscription. |
List<String> |
getServerSubscriptionCollection()
Method getServerSubscriptionCollection.Returns a reference to '_serverSubscriptionList'. |
int |
getServerSubscriptionCount()
Method getServerSubscriptionCount. |
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<String> |
iterateServerSubscription()
Method iterateServerSubscription. |
Iterator<XmlrpcServer> |
iterateXmlrpcServer()
Method iterateXmlrpcServer. |
void |
marshal(ContentHandler handler)
|
void |
marshal(Writer out)
|
void |
removeAllServerSubscription()
|
void |
removeAllXmlrpcServer()
|
boolean |
removeServerSubscription(String vServerSubscription)
Method removeServerSubscription. |
String |
removeServerSubscriptionAt(int index)
Method removeServerSubscriptionAt. |
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 |
setServerSubscription(int index,
String vServerSubscription)
|
void |
setServerSubscription(List<String> vServerSubscriptionList)
Sets the value of '_serverSubscriptionList' by copying the given Vector. |
void |
setServerSubscription(String[] vServerSubscriptionArray)
|
void |
setServerSubscriptionCollection(List<String> serverSubscriptionList)
Deprecated. |
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 addServerSubscription(String vServerSubscription)
throws IndexOutOfBoundsException
vServerSubscription -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collection
public void addServerSubscription(int index,
String vServerSubscription)
throws IndexOutOfBoundsException
index - vServerSubscription -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collection
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<String> enumerateServerSubscription()
public Enumeration<XmlrpcServer> enumerateXmlrpcServer()
public int getElapseTime()
public int getRetries()
public String getServerSubscription(int index)
throws IndexOutOfBoundsException
index -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collectionpublic String[] getServerSubscription()
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<String> getServerSubscriptionCollection()
public int getServerSubscriptionCount()
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<String> iterateServerSubscription()
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 removeAllServerSubscription()
public void removeAllXmlrpcServer()
public boolean removeServerSubscription(String vServerSubscription)
vServerSubscription -
public String removeServerSubscriptionAt(int index)
index -
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 setServerSubscription(int index,
String vServerSubscription)
throws IndexOutOfBoundsException
index - vServerSubscription -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collectionpublic void setServerSubscription(String[] vServerSubscriptionArray)
vServerSubscriptionArray - public void setServerSubscription(List<String> vServerSubscriptionList)
vServerSubscriptionList - the Vector to copy.public void setServerSubscriptionCollection(List<String> serverSubscriptionList)
serverSubscriptionList - the Vector to set.
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 | ||||||||