org.opennms.netmgt.rtc.datablock
Class RTCCategory

java.lang.Object
  extended by org.opennms.netmgt.config.categories.Category
      extended by org.opennms.netmgt.rtc.datablock.RTCCategory
All Implemented Interfaces:
Serializable

public class RTCCategory
extends Category

This class is used to encapsulate a category in the categories xml file.

Author:
Sowmya Nataraj , OpenNMS.org
See Also:
Serialized Form

Constructor Summary
RTCCategory(Category cat, String commonRule)
          The default constructor - initializes the values
 
Method Summary
 void addNode(long nodeid)
          Add to the nodes in this category
 void addNode(RTCNode node)
          Add to the nodes in this category
 boolean containsService(String svcname)
          Returns true if the service is in the services list in this category or if service list is null
 void deleteNode(long nodeid)
          Delete from the nodes in this category
 String getEffectiveRule()
          Return the 'effective' category rule
 List getNodes()
          Get the node ids in this category
 
Methods inherited from class org.opennms.netmgt.config.categories.Category
addService, addService, deleteNormal, deleteWarning, enumerateService, getComment, getLabel, getNormal, getRule, getService, getService, getServiceCollection, getServiceCount, getWarning, hasNormal, hasWarning, isValid, iterateService, marshal, marshal, removeAllService, removeService, removeServiceAt, setComment, setLabel, setNormal, setRule, setService, setService, setService, setServiceCollection, setWarning, unmarshal, validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RTCCategory

public RTCCategory(Category cat,
                   String commonRule)
The default constructor - initializes the values

Method Detail

addNode

public void addNode(RTCNode node)
Add to the nodes in this category

Parameters:
node - the node to add

addNode

public void addNode(long nodeid)
Add to the nodes in this category

Parameters:
nodeid - the nodeid to add

deleteNode

public void deleteNode(long nodeid)
Delete from the nodes in this category

Parameters:
nodeid - the nodeid to delete

containsService

public boolean containsService(String svcname)
Returns true if the service is in the services list in this category or if service list is null

Returns:
true if the service is in the services list in this category or if service list is null

getEffectiveRule

public String getEffectiveRule()
Return the 'effective' category rule

Returns:
the 'effective' category rule

getNodes

public List getNodes()
Get the node ids in this category

Returns:
the list of node ids in this category


Copyright © 2009. All Rights Reserved.