org.opennms.netmgt.xml.rtc
Class Node

java.lang.Object
  extended by org.opennms.netmgt.xml.rtc.Node
All Implemented Interfaces:
Serializable

public class Node
extends Object
implements Serializable

A node

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

Constructor Summary
Node()
           
 
Method Summary
 void deleteNodeid()
           
 void deleteNodesvccount()
           
 void deleteNodesvcdowncount()
           
 void deleteNodevalue()
           
 long getNodeid()
          Returns the value of field 'nodeid'.
 long getNodesvccount()
          Returns the value of field 'nodesvccount'.
 long getNodesvcdowncount()
          Returns the value of field 'nodesvcdowncount'.
 double getNodevalue()
          Returns the value of field 'nodevalue'.
 boolean hasNodeid()
          Method hasNodeid.
 boolean hasNodesvccount()
          Method hasNodesvccount.
 boolean hasNodesvcdowncount()
          Method hasNodesvcdowncount.
 boolean hasNodevalue()
          Method hasNodevalue.
 boolean isValid()
          Method isValid.
 void marshal(ContentHandler handler)
           
 void marshal(Writer out)
           
 void setNodeid(long nodeid)
          Sets the value of field 'nodeid'.
 void setNodesvccount(long nodesvccount)
          Sets the value of field 'nodesvccount'.
 void setNodesvcdowncount(long nodesvcdowncount)
          Sets the value of field 'nodesvcdowncount'.
 void setNodevalue(double nodevalue)
          Sets the value of field 'nodevalue'.
static Node unmarshal(Reader reader)
          Method unmarshal.
 void validate()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Node

public Node()
Method Detail

deleteNodeid

public void deleteNodeid()

deleteNodesvccount

public void deleteNodesvccount()

deleteNodesvcdowncount

public void deleteNodesvcdowncount()

deleteNodevalue

public void deleteNodevalue()

getNodeid

public long getNodeid()
Returns the value of field 'nodeid'. The field 'nodeid' has the following description: The node id

Returns:
the value of field 'Nodeid'.

getNodesvccount

public long getNodesvccount()
Returns the value of field 'nodesvccount'. The field 'nodesvccount' has the following description: The number of active services on the node

Returns:
the value of field 'Nodesvccount'.

getNodesvcdowncount

public long getNodesvcdowncount()
Returns the value of field 'nodesvcdowncount'. The field 'nodesvcdowncount' has the following description: The number of active services currently down on the node

Returns:
the value of field 'Nodesvcdowncount'.

getNodevalue

public double getNodevalue()
Returns the value of field 'nodevalue'. The field 'nodevalue' has the following description: The node availability value

Returns:
the value of field 'Nodevalue'.

hasNodeid

public boolean hasNodeid()
Method hasNodeid.

Returns:
true if at least one Nodeid has been added

hasNodesvccount

public boolean hasNodesvccount()
Method hasNodesvccount.

Returns:
true if at least one Nodesvccount has been added

hasNodesvcdowncount

public boolean hasNodesvcdowncount()
Method hasNodesvcdowncount.

Returns:
true if at least one Nodesvcdowncount has been added

hasNodevalue

public boolean hasNodevalue()
Method hasNodevalue.

Returns:
true if at least one Nodevalue has been added

isValid

public boolean isValid()
Method isValid.

Returns:
true if this object is valid according to the schema

marshal

public void marshal(Writer out)
             throws org.exolab.castor.xml.MarshalException,
                    org.exolab.castor.xml.ValidationException
Parameters:
out -
Throws:
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

marshal

public void marshal(ContentHandler handler)
             throws IOException,
                    org.exolab.castor.xml.MarshalException,
                    org.exolab.castor.xml.ValidationException
Parameters:
handler -
Throws:
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 marshaling

setNodeid

public void setNodeid(long nodeid)
Sets the value of field 'nodeid'. The field 'nodeid' has the following description: The node id

Parameters:
nodeid - the value of field 'nodeid'.

setNodesvccount

public void setNodesvccount(long nodesvccount)
Sets the value of field 'nodesvccount'. The field 'nodesvccount' has the following description: The number of active services on the node

Parameters:
nodesvccount - the value of field 'nodesvccount'.

setNodesvcdowncount

public void setNodesvcdowncount(long nodesvcdowncount)
Sets the value of field 'nodesvcdowncount'. The field 'nodesvcdowncount' has the following description: The number of active services currently down on the node

Parameters:
nodesvcdowncount - the value of field 'nodesvcdowncount'

setNodevalue

public void setNodevalue(double nodevalue)
Sets the value of field 'nodevalue'. The field 'nodevalue' has the following description: The node availability value

Parameters:
nodevalue - the value of field 'nodevalue'.

unmarshal

public static Node unmarshal(Reader reader)
                      throws org.exolab.castor.xml.MarshalException,
                             org.exolab.castor.xml.ValidationException
Method unmarshal.

Parameters:
reader -
Returns:
the unmarshaled org.opennms.netmgt.xml.rtc.Node
Throws:
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

validate

public void validate()
              throws org.exolab.castor.xml.ValidationException
Throws:
org.exolab.castor.xml.ValidationException - if this object is an invalid instance according to the schema


Copyright © 2008. All Rights Reserved.