public class PollerConfiguration extends Object implements Serializable
Constructor and Description |
---|
PollerConfiguration() |
Modifier and Type | Method and Description |
---|---|
void |
addMonitor(int index,
Monitor vMonitor) |
void |
addMonitor(Monitor vMonitor) |
void |
addPackage(int index,
Package vPackage) |
void |
addPackage(Package vPackage) |
void |
deleteThreads() |
Enumeration<Monitor> |
enumerateMonitor()
Method enumerateMonitor.
|
Enumeration<Package> |
enumeratePackage()
Method enumeratePackage.
|
boolean |
equals(Object obj)
Overrides the java.lang.Object.equals method.
|
Monitor[] |
getMonitor()
Method getMonitor.Returns the contents of the collection in
an Array.
|
Monitor |
getMonitor(int index)
Method getMonitor.
|
List<Monitor> |
getMonitorCollection()
Method getMonitorCollection.Returns a reference to
'_monitorList'.
|
int |
getMonitorCount()
Method getMonitorCount.
|
String |
getNextOutageId()
Returns the value of field 'nextOutageId'.
|
NodeOutage |
getNodeOutage()
Returns the value of field 'nodeOutage'.
|
Package[] |
getPackage()
Method getPackage.Returns the contents of the collection in
an Array.
|
Package |
getPackage(int index)
Method getPackage.
|
List<Package> |
getPackageCollection()
Method getPackageCollection.Returns a reference to
'_packageList'.
|
int |
getPackageCount()
Method getPackageCount.
|
String |
getPathOutageEnabled()
Returns the value of field 'pathOutageEnabled'.
|
String |
getServiceUnresponsiveEnabled()
Returns the value of field 'serviceUnresponsiveEnabled'.
|
int |
getThreads()
Returns the value of field 'threads'.
|
String |
getXmlrpc()
Returns the value of field 'xmlrpc'.
|
int |
hashCode()
Overrides the java.lang.Object.hashCode method.
|
boolean |
hasThreads()
Method hasThreads.
|
boolean |
isValid()
Method isValid.
|
Iterator<Monitor> |
iterateMonitor()
Method iterateMonitor.
|
Iterator<Package> |
iteratePackage()
Method iteratePackage.
|
void |
marshal(ContentHandler handler) |
void |
marshal(Writer out) |
void |
removeAllMonitor() |
void |
removeAllPackage() |
boolean |
removeMonitor(Monitor vMonitor)
Method removeMonitor.
|
Monitor |
removeMonitorAt(int index)
Method removeMonitorAt.
|
boolean |
removePackage(Package vPackage)
Method removePackage.
|
Package |
removePackageAt(int index)
Method removePackageAt.
|
void |
setMonitor(int index,
Monitor vMonitor) |
void |
setMonitor(List<Monitor> vMonitorList)
Sets the value of '_monitorList' by copying the given
Vector.
|
void |
setMonitor(Monitor[] vMonitorArray) |
void |
setMonitorCollection(List<Monitor> monitorList)
Deprecated.
|
void |
setNextOutageId(String nextOutageId)
Sets the value of field 'nextOutageId'.
|
void |
setNodeOutage(NodeOutage nodeOutage)
Sets the value of field 'nodeOutage'.
|
void |
setPackage(int index,
Package vPackage) |
void |
setPackage(List<Package> vPackageList)
Sets the value of '_packageList' by copying the given
Vector.
|
void |
setPackage(Package[] vPackageArray) |
void |
setPackageCollection(List<Package> _packageList)
Deprecated.
|
void |
setPathOutageEnabled(String pathOutageEnabled)
Sets the value of field 'pathOutageEnabled'.
|
void |
setServiceUnresponsiveEnabled(String serviceUnresponsiveEnabled)
Sets the value of field 'serviceUnresponsiveEnabled'.
|
void |
setThreads(int threads)
Sets the value of field 'threads'.
|
void |
setXmlrpc(String xmlrpc)
Sets the value of field 'xmlrpc'.
|
static PollerConfiguration |
unmarshal(Reader reader)
Method unmarshal.
|
void |
validate() |
public void addMonitor(Monitor vMonitor) throws IndexOutOfBoundsException
vMonitor
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic void addMonitor(int index, Monitor vMonitor) throws IndexOutOfBoundsException
index
- vMonitor
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic void addPackage(Package vPackage) throws IndexOutOfBoundsException
vPackage
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic void addPackage(int index, Package vPackage) throws IndexOutOfBoundsException
index
- vPackage
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic void deleteThreads()
public Enumeration<Monitor> enumerateMonitor()
public Enumeration<Package> enumeratePackage()
public boolean equals(Object obj)
public Monitor getMonitor(int index) throws IndexOutOfBoundsException
index
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic Monitor[] getMonitor()
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<Monitor> getMonitorCollection()
public int getMonitorCount()
public String getNextOutageId()
public NodeOutage getNodeOutage()
public Package getPackage(int index) throws IndexOutOfBoundsException
index
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic Package[] getPackage()
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<Package> getPackageCollection()
public int getPackageCount()
public String getPathOutageEnabled()
public String getServiceUnresponsiveEnabled()
public int getThreads()
public String getXmlrpc()
public boolean hasThreads()
public int hashCode()
The following steps came from Effective Java Programming Language Guide by Joshua Bloch, Chapter 3
public boolean isValid()
public Iterator<Monitor> iterateMonitor()
public Iterator<Package> iteratePackage()
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 marshalingorg.exolab.castor.xml.ValidationException
- if this
object is an invalid instance according to the schemapublic void marshal(ContentHandler handler) throws IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
handler
- IOException
- if an IOException occurs during
marshalingorg.exolab.castor.xml.ValidationException
- if this
object is an invalid instance according to the schemaorg.exolab.castor.xml.MarshalException
- if object is
null or if any SAXException is thrown during marshalingpublic void removeAllMonitor()
public void removeAllPackage()
public boolean removeMonitor(Monitor vMonitor)
vMonitor
- public Monitor removeMonitorAt(int index)
index
- public boolean removePackage(Package vPackage)
vPackage
- public Package removePackageAt(int index)
index
- public void setMonitor(int index, Monitor vMonitor) throws IndexOutOfBoundsException
index
- vMonitor
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic void setMonitor(Monitor[] vMonitorArray)
vMonitorArray
- public void setMonitor(List<Monitor> vMonitorList)
vMonitorList
- the Vector to copy.public void setMonitorCollection(List<Monitor> monitorList)
monitorList
- the Vector to set.public void setNextOutageId(String nextOutageId)
nextOutageId
- the value of field 'nextOutageId'.public void setNodeOutage(NodeOutage nodeOutage)
nodeOutage
- the value of field 'nodeOutage'.public void setPackage(int index, Package vPackage) throws IndexOutOfBoundsException
index
- vPackage
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic void setPackage(Package[] vPackageArray)
vPackageArray
- public void setPackage(List<Package> vPackageList)
vPackageList
- the Vector to copy.public void setPackageCollection(List<Package> _packageList)
_packageList
- the Vector to set.public void setPathOutageEnabled(String pathOutageEnabled)
pathOutageEnabled
- the value of field
'pathOutageEnabled'.public void setServiceUnresponsiveEnabled(String serviceUnresponsiveEnabled)
serviceUnresponsiveEnabled
- the value of field
'serviceUnresponsiveEnabled'.public void setThreads(int threads)
threads
- the value of field 'threads'.public void setXmlrpc(String xmlrpc)
xmlrpc
- the value of field 'xmlrpc'.public static PollerConfiguration 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 marshalingorg.exolab.castor.xml.ValidationException
- if this
object is an invalid instance according to the schemapublic void validate() throws org.exolab.castor.xml.ValidationException
org.exolab.castor.xml.ValidationException
- if this
object is an invalid instance according to the schemaCopyright © 2015. All Rights Reserved.