|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.opennms.netmgt.config.common.BasicSchedule
org.opennms.netmgt.config.poller.Outage
public class Outage
a scheduled outage
| Constructor Summary | |
|---|---|
Outage()
|
|
| Method Summary | |
|---|---|
void |
addInterface(Interface vInterface)
|
void |
addInterface(int index,
Interface vInterface)
|
void |
addNode(int index,
Node vNode)
|
void |
addNode(Node vNode)
|
Enumeration<Interface> |
enumerateInterface()
Method enumerateInterface. |
Enumeration<Node> |
enumerateNode()
Method enumerateNode. |
Interface[] |
getInterface()
Method getInterface.Returns the contents of the collection in an Array. |
Interface |
getInterface(int index)
Method getInterface. |
List<Interface> |
getInterfaceCollection()
Method getInterfaceCollection.Returns a reference to '_interfaceList'. |
int |
getInterfaceCount()
Method getInterfaceCount. |
Node[] |
getNode()
Method getNode.Returns the contents of the collection in an Array. |
Node |
getNode(int index)
Method getNode. |
List<Node> |
getNodeCollection()
Method getNodeCollection.Returns a reference to '_nodeList'. |
int |
getNodeCount()
Method getNodeCount. |
boolean |
isValid()
Method isValid. |
Iterator<Interface> |
iterateInterface()
Method iterateInterface. |
Iterator<Node> |
iterateNode()
Method iterateNode. |
void |
marshal(ContentHandler handler)
|
void |
marshal(Writer out)
|
void |
removeAllInterface()
|
void |
removeAllNode()
|
boolean |
removeInterface(Interface vInterface)
Method removeInterface. |
Interface |
removeInterfaceAt(int index)
Method removeInterfaceAt. |
boolean |
removeNode(Node vNode)
Method removeNode. |
Node |
removeNodeAt(int index)
Method removeNodeAt. |
void |
setInterface(Interface[] vInterfaceArray)
|
void |
setInterface(int index,
Interface vInterface)
|
void |
setInterface(List<Interface> vInterfaceList)
Sets the value of '_interfaceList' by copying the given Vector. |
void |
setInterfaceCollection(List<Interface> _interfaceList)
Deprecated. |
void |
setNode(int index,
Node vNode)
|
void |
setNode(List<Node> vNodeList)
Sets the value of '_nodeList' by copying the given Vector. |
void |
setNode(Node[] vNodeArray)
|
void |
setNodeCollection(List<Node> nodeList)
Deprecated. |
static Outage |
unmarshal(Reader reader)
Method unmarshal. |
void |
validate()
|
| Methods inherited from class org.opennms.netmgt.config.common.BasicSchedule |
|---|
addTime, addTime, enumerateTime, getName, getTime, getTime, getTimeCollection, getTimeCount, getType, iterateTime, removeAllTime, removeTime, removeTimeAt, setName, setTime, setTime, setTime, setTimeCollection, setType |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Outage()
| Method Detail |
|---|
public void addInterface(Interface vInterface)
throws IndexOutOfBoundsException
vInterface -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collection
public void addInterface(int index,
Interface vInterface)
throws IndexOutOfBoundsException
index - vInterface -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collection
public void addNode(Node vNode)
throws IndexOutOfBoundsException
vNode -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collection
public void addNode(int index,
Node vNode)
throws IndexOutOfBoundsException
index - vNode -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collectionpublic Enumeration<Interface> enumerateInterface()
public Enumeration<Node> enumerateNode()
public Interface getInterface(int index)
throws IndexOutOfBoundsException
index -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collectionpublic Interface[] getInterface()
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<Interface> getInterfaceCollection()
public int getInterfaceCount()
public Node getNode(int index)
throws IndexOutOfBoundsException
index -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collectionpublic Node[] getNode()
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<Node> getNodeCollection()
public int getNodeCount()
public boolean isValid()
isValid in class BasicSchedulepublic Iterator<Interface> iterateInterface()
public Iterator<Node> iterateNode()
public void marshal(Writer out)
throws org.exolab.castor.xml.MarshalException,
org.exolab.castor.xml.ValidationException
marshal in class BasicScheduleout -
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
marshal in class BasicSchedulehandler -
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 removeAllInterface()
public void removeAllNode()
public boolean removeInterface(Interface vInterface)
vInterface -
public Interface removeInterfaceAt(int index)
index -
public boolean removeNode(Node vNode)
vNode -
public Node removeNodeAt(int index)
index -
public void setInterface(int index,
Interface vInterface)
throws IndexOutOfBoundsException
index - vInterface -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collectionpublic void setInterface(Interface[] vInterfaceArray)
vInterfaceArray - public void setInterface(List<Interface> vInterfaceList)
vInterfaceList - the Vector to copy.public void setInterfaceCollection(List<Interface> _interfaceList)
_interfaceList - the Vector to set.
public void setNode(int index,
Node vNode)
throws IndexOutOfBoundsException
index - vNode -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collectionpublic void setNode(Node[] vNodeArray)
vNodeArray - public void setNode(List<Node> vNodeList)
vNodeList - the Vector to copy.public void setNodeCollection(List<Node> nodeList)
nodeList - the Vector to set.
public static Outage 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
validate in class BasicScheduleorg.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 | ||||||||