Class Outage
- java.lang.Object
-
- org.opennms.netmgt.config.poller.outages.BasicSchedule
-
- org.opennms.netmgt.config.poller.outages.Outage
-
- All Implemented Interfaces:
java.io.Serializable
public class Outage extends BasicSchedule implements java.io.Serializable
A scheduled outage- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Outage()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addInterface(Interface iface)
void
addNode(Node node)
void
clearInterfaces()
void
clearNodes()
boolean
equals(java.lang.Object obj)
java.util.List<Interface>
getInterfaces()
java.util.List<Node>
getNodes()
int
hashCode()
void
marshal(java.io.Writer writer)
boolean
removeInterface(Interface iface)
boolean
removeNode(Node node)
void
setInterfaces(java.util.List<Interface> interfaces)
void
setNodes(java.util.List<Node> nodes)
Sets the value of 'm_nodes' by copying the given Vector.java.lang.String
toString()
static Outage
unmarshal(java.io.Reader reader)
-
Methods inherited from class org.opennms.netmgt.config.poller.outages.BasicSchedule
addTime, clearTimes, getName, getTimes, getType, removeTime, setName, setTimes, setType
-
-
-
-
Method Detail
-
getInterfaces
public java.util.List<Interface> getInterfaces()
-
setInterfaces
public void setInterfaces(java.util.List<Interface> interfaces)
-
addInterface
public void addInterface(Interface iface)
-
removeInterface
public boolean removeInterface(Interface iface)
-
clearInterfaces
public void clearInterfaces()
-
getNodes
public java.util.List<Node> getNodes()
-
setNodes
public void setNodes(java.util.List<Node> nodes)
Sets the value of 'm_nodes' by copying the given Vector. All elements will be checked for type safety.- Parameters:
nodes
- the Vector to copy.
-
addNode
public void addNode(Node node)
-
removeNode
public boolean removeNode(Node node)
-
clearNodes
public void clearNodes()
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classBasicSchedule
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classBasicSchedule
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
unmarshal
public static Outage unmarshal(java.io.Reader reader)
-
marshal
public void marshal(java.io.Writer writer)
-
-