|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.opennms.netmgt.config.snmpinterfacepoller.NodeOutage
public class NodeOutage
Configuration of node-outage functionality
| Constructor Summary | |
|---|---|
NodeOutage()
|
|
| Method Summary | |
|---|---|
void |
addCriticalService(CriticalService vCriticalService)
|
void |
addCriticalService(int index,
CriticalService vCriticalService)
|
Enumeration<CriticalService> |
enumerateCriticalService()
Method enumerateCriticalService. |
boolean |
equals(Object obj)
Overrides the java.lang.Object.equals method. |
CriticalService[] |
getCriticalService()
Method getCriticalService.Returns the contents of the collection in an Array. |
CriticalService |
getCriticalService(int index)
Method getCriticalService. |
List<CriticalService> |
getCriticalServiceCollection()
Method getCriticalServiceCollection.Returns a reference to '_criticalServiceList'. |
int |
getCriticalServiceCount()
Method getCriticalServiceCount. |
int |
hashCode()
Overrides the java.lang.Object.hashCode method. |
boolean |
isValid()
Method isValid. |
Iterator<CriticalService> |
iterateCriticalService()
Method iterateCriticalService. |
void |
marshal(ContentHandler handler)
|
void |
marshal(Writer out)
|
void |
removeAllCriticalService()
|
boolean |
removeCriticalService(CriticalService vCriticalService)
Method removeCriticalService. |
CriticalService |
removeCriticalServiceAt(int index)
Method removeCriticalServiceAt. |
void |
setCriticalService(CriticalService[] vCriticalServiceArray)
|
void |
setCriticalService(int index,
CriticalService vCriticalService)
|
void |
setCriticalService(List<CriticalService> vCriticalServiceList)
Sets the value of '_criticalServiceList' by copying the given Vector. |
void |
setCriticalServiceCollection(List<CriticalService> criticalServiceList)
Deprecated. |
static NodeOutage |
unmarshal(Reader reader)
Method unmarshal. |
void |
validate()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public NodeOutage()
| Method Detail |
|---|
public void addCriticalService(CriticalService vCriticalService)
throws IndexOutOfBoundsException
vCriticalService -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collection
public void addCriticalService(int index,
CriticalService vCriticalService)
throws IndexOutOfBoundsException
index - vCriticalService -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collectionpublic Enumeration<CriticalService> enumerateCriticalService()
public boolean equals(Object obj)
equals in class Objectobj -
public CriticalService getCriticalService(int index)
throws IndexOutOfBoundsException
index -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collectionpublic CriticalService[] getCriticalService()
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<CriticalService> getCriticalServiceCollection()
public int getCriticalServiceCount()
public int hashCode()
The following steps came from Effective Java Programming Language Guide by Joshua Bloch, Chapter 3
hashCode in class Objectpublic boolean isValid()
public Iterator<CriticalService> iterateCriticalService()
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 removeAllCriticalService()
public boolean removeCriticalService(CriticalService vCriticalService)
vCriticalService -
public CriticalService removeCriticalServiceAt(int index)
index -
public void setCriticalService(int index,
CriticalService vCriticalService)
throws IndexOutOfBoundsException
index - vCriticalService -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collectionpublic void setCriticalService(CriticalService[] vCriticalServiceArray)
vCriticalServiceArray - public void setCriticalService(List<CriticalService> vCriticalServiceList)
vCriticalServiceList - the Vector to copy.public void setCriticalServiceCollection(List<CriticalService> criticalServiceList)
criticalServiceList - the Vector to set.
public static NodeOutage 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 | |||||||||