Package org.opennms.netmgt.rtc.datablock
Class RTCCategory
- java.lang.Object
-
- org.opennms.netmgt.config.categories.Category
-
- org.opennms.netmgt.rtc.datablock.RTCCategory
-
- All Implemented Interfaces:
java.io.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
Constructors Constructor Description RTCCategory(Category cat, java.lang.String commonRule)
The default constructor - initializes the values
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addAllNodes(java.util.Collection<java.lang.Integer> nodes)
Delete all nodes in this categoryvoid
addNode(int nodeid)
Add to the nodes in this categoryvoid
addNode(RTCNode node)
Add to the nodes in this categoryvoid
clearNodes()
Delete all nodes in this categoryboolean
containsService(java.lang.String svcname)
Returns true if the service is in the services list in this category or if service list is nullvoid
deleteNode(int nodeid)
Delete from the nodes in this categoryjava.lang.String
getEffectiveRule()
Return the 'effective' category rulejava.util.List<java.lang.Integer>
getNodes()
Get the node IDs in this category-
Methods inherited from class org.opennms.netmgt.config.categories.Category
addService, clearServices, equals, getComment, getLabel, getNormalThreshold, getRule, getServices, getWarningThreshold, hashCode, isValid, setComment, setLabel, setNormalThreshold, setRule, setServices, setWarningThreshold
-
-
-
-
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(int nodeid)
Add to the nodes in this category- Parameters:
nodeid
- the node ID to add
-
deleteNode
public void deleteNode(int nodeid)
Delete from the nodes in this category- Parameters:
nodeid
- the node ID to delete
-
clearNodes
public void clearNodes()
Delete all nodes in this category
-
addAllNodes
public void addAllNodes(java.util.Collection<java.lang.Integer> nodes)
Delete all nodes in this category
-
containsService
public boolean containsService(java.lang.String svcname)
Returns true if the service is in the services list in this category or if service list is null- Parameters:
svcname
- aString
object.- Returns:
- true if the service is in the services list in this category or if service list is null
-
getEffectiveRule
public java.lang.String getEffectiveRule()
Return the 'effective' category rule- Returns:
- the 'effective' category rule
-
getNodes
public java.util.List<java.lang.Integer> getNodes()
Get the node IDs in this category- Returns:
- the list of node IDs in this category
-
-