org.opennms.netmgt.config.poller
Class Outage

java.lang.Object
  extended by org.opennms.netmgt.config.common.BasicSchedule
      extended by org.opennms.netmgt.config.poller.Outage
All Implemented Interfaces:
java.io.Serializable

public class Outage
extends BasicSchedule
implements java.io.Serializable

a scheduled outage

Version:
$Revision$ $Date$
See Also:
Serialized Form

Constructor Summary
Outage()
           
 
Method Summary
 void addInterface(Interface vInterface)
          Method addInterface
 void addInterface(int index, Interface vInterface)
          Method addInterface
 void addNode(int index, Node vNode)
          Method addNode
 void addNode(Node vNode)
          Method addNode
 void clearInterface()
          Method clearInterface
 void clearNode()
          Method clearNode
 java.util.Enumeration enumerateInterface()
          Method enumerateInterface
 java.util.Enumeration enumerateNode()
          Method enumerateNode
 Interface[] getInterface()
          Method getInterface
 Interface getInterface(int index)
          Method getInterface
 java.util.ArrayList getInterfaceCollection()
          Method getInterfaceCollection Returns a reference to '_interface'.
 int getInterfaceCount()
          Method getInterfaceCount
 Node[] getNode()
          Method getNode
 Node getNode(int index)
          Method getNode
 java.util.ArrayList getNodeCollection()
          Method getNodeCollection Returns a reference to 'node'.
 int getNodeCount()
          Method getNodeCount
 boolean isValid()
          Method isValid
 void marshal(org.xml.sax.ContentHandler handler)
          Method marshal
 void marshal(java.io.Writer out)
          Method marshal
 boolean removeInterface(Interface vInterface)
          Method removeInterface
 boolean removeNode(Node vNode)
          Method removeNode
 void setInterface(java.util.ArrayList _interfaceCollection)
          Method setInterface Sets the value of '_interface' by copying the given ArrayList.
 void setInterface(Interface[] _interfaceArray)
          Method setInterface
 void setInterface(int index, Interface vInterface)
          Method setInterface
 void setInterfaceCollection(java.util.ArrayList _interfaceCollection)
          Method setInterfaceCollection Sets the value of '_interface' by setting it to the given ArrayList.
 void setNode(java.util.ArrayList nodeCollection)
          Method setNode Sets the value of 'node' by copying the given ArrayList.
 void setNode(int index, Node vNode)
          Method setNode
 void setNode(Node[] nodeArray)
          Method setNode
 void setNodeCollection(java.util.ArrayList nodeCollection)
          Method setNodeCollection Sets the value of 'node' by setting it to the given ArrayList.
static java.lang.Object unmarshal(java.io.Reader reader)
          Method unmarshal
 void validate()
          Method validate
 
Methods inherited from class org.opennms.netmgt.config.common.BasicSchedule
addTime, addTime, clearTime, enumerateTime, getName, getTime, getTime, getTimeCollection, getTimeCount, getType, removeTime, 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

Outage

public Outage()
Method Detail

addInterface

public void addInterface(Interface vInterface)
                  throws java.lang.IndexOutOfBoundsException
Method addInterface

Parameters:
vInterface -
Throws:
java.lang.IndexOutOfBoundsException

addInterface

public void addInterface(int index,
                         Interface vInterface)
                  throws java.lang.IndexOutOfBoundsException
Method addInterface

Parameters:
index -
vInterface -
Throws:
java.lang.IndexOutOfBoundsException

addNode

public void addNode(Node vNode)
             throws java.lang.IndexOutOfBoundsException
Method addNode

Parameters:
vNode -
Throws:
java.lang.IndexOutOfBoundsException

addNode

public void addNode(int index,
                    Node vNode)
             throws java.lang.IndexOutOfBoundsException
Method addNode

Parameters:
index -
vNode -
Throws:
java.lang.IndexOutOfBoundsException

clearInterface

public void clearInterface()
Method clearInterface


clearNode

public void clearNode()
Method clearNode


enumerateInterface

public java.util.Enumeration enumerateInterface()
Method enumerateInterface

Returns:
Enumeration

enumerateNode

public java.util.Enumeration enumerateNode()
Method enumerateNode

Returns:
Enumeration

getInterface

public Interface getInterface(int index)
                       throws java.lang.IndexOutOfBoundsException
Method getInterface

Parameters:
index -
Returns:
Interface
Throws:
java.lang.IndexOutOfBoundsException

getInterface

public Interface[] getInterface()
Method getInterface

Returns:
Interface

getInterfaceCollection

public java.util.ArrayList getInterfaceCollection()
Method getInterfaceCollection Returns a reference to '_interface'. No type checking is performed on any modications to the Collection.

Returns:
ArrayList

getInterfaceCount

public int getInterfaceCount()
Method getInterfaceCount

Returns:
int

getNode

public Node getNode(int index)
             throws java.lang.IndexOutOfBoundsException
Method getNode

Parameters:
index -
Returns:
Node
Throws:
java.lang.IndexOutOfBoundsException

getNode

public Node[] getNode()
Method getNode

Returns:
Node

getNodeCollection

public java.util.ArrayList getNodeCollection()
Method getNodeCollection Returns a reference to 'node'. No type checking is performed on any modications to the Collection.

Returns:
ArrayList

getNodeCount

public int getNodeCount()
Method getNodeCount

Returns:
int

isValid

public boolean isValid()
Method isValid

Overrides:
isValid in class BasicSchedule
Returns:
boolean

marshal

public void marshal(java.io.Writer out)
             throws org.exolab.castor.xml.MarshalException,
                    org.exolab.castor.xml.ValidationException
Method marshal

Overrides:
marshal in class BasicSchedule
Parameters:
out -
Throws:
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException

marshal

public void marshal(org.xml.sax.ContentHandler handler)
             throws java.io.IOException,
                    org.exolab.castor.xml.MarshalException,
                    org.exolab.castor.xml.ValidationException
Method marshal

Overrides:
marshal in class BasicSchedule
Parameters:
handler -
Throws:
java.io.IOException
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException

removeInterface

public boolean removeInterface(Interface vInterface)
Method removeInterface

Parameters:
vInterface -
Returns:
boolean

removeNode

public boolean removeNode(Node vNode)
Method removeNode

Parameters:
vNode -
Returns:
boolean

setInterface

public void setInterface(int index,
                         Interface vInterface)
                  throws java.lang.IndexOutOfBoundsException
Method setInterface

Parameters:
index -
vInterface -
Throws:
java.lang.IndexOutOfBoundsException

setInterface

public void setInterface(Interface[] _interfaceArray)
Method setInterface

Parameters:
_interfaceArray -

setInterface

public void setInterface(java.util.ArrayList _interfaceCollection)
Method setInterface Sets the value of '_interface' by copying the given ArrayList.

Parameters:
_interfaceCollection - the Vector to copy.

setInterfaceCollection

public void setInterfaceCollection(java.util.ArrayList _interfaceCollection)
Method setInterfaceCollection Sets the value of '_interface' by setting it to the given ArrayList. No type checking is performed.

Parameters:
_interfaceCollection - the ArrayList to copy.

setNode

public void setNode(int index,
                    Node vNode)
             throws java.lang.IndexOutOfBoundsException
Method setNode

Parameters:
index -
vNode -
Throws:
java.lang.IndexOutOfBoundsException

setNode

public void setNode(Node[] nodeArray)
Method setNode

Parameters:
nodeArray -

setNode

public void setNode(java.util.ArrayList nodeCollection)
Method setNode Sets the value of 'node' by copying the given ArrayList.

Parameters:
nodeCollection - the Vector to copy.

setNodeCollection

public void setNodeCollection(java.util.ArrayList nodeCollection)
Method setNodeCollection Sets the value of 'node' by setting it to the given ArrayList. No type checking is performed.

Parameters:
nodeCollection - the ArrayList to copy.

unmarshal

public static java.lang.Object unmarshal(java.io.Reader reader)
                                  throws org.exolab.castor.xml.MarshalException,
                                         org.exolab.castor.xml.ValidationException
Method unmarshal

Parameters:
reader -
Returns:
Object
Throws:
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException

validate

public void validate()
              throws org.exolab.castor.xml.ValidationException
Method validate

Overrides:
validate in class BasicSchedule
Throws:
org.exolab.castor.xml.ValidationException


Copyright © 2007. All Rights Reserved.