|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.opennms.netmgt.rtc.datablock.RTCHashMap
public class RTCHashMap
The RTCHashMap has either a nodeid or a nodeid/ip as key and provides convenience methods to add and remove 'RTCNodes' with these values - each key points to a list of 'RTCNode's
| Constructor Summary | |
|---|---|
RTCHashMap()
Default constructor |
|
RTCHashMap(int initialCapacity)
constructor |
|
RTCHashMap(int initialCapacity,
float loadFactor)
constructor |
|
| Method Summary | |
|---|---|
void |
add(RTCNode rtcN)
Add an rtc node |
void |
delete(RTCNode rtcN)
delete |
void |
deleteNode(long nodeid)
deleteNode |
RTCNode |
getRTCNode(long nodeid,
String ipaddr,
String svcname)
getRTCNode |
RTCNode |
getRTCNode(RTCNodeKey key)
getRTCNode |
List<RTCNode> |
getRTCNodes(long nodeid)
getRTCNodes |
List<RTCNode> |
getRTCNodes(long nodeid,
String ip)
getRTCNodes |
int |
getServiceCount(long nodeid,
String catLabel)
Get the count of services for a node in the context of the the specified category |
int |
getServiceDownCount(long nodeid,
String catLabel)
Get the count of services currently down for a node in the context of the the specified category |
double |
getValue(long nodeid,
String catLabel,
long curTime,
long rollingWindow)
Get the value (uptime) for the a node that belongs to the category in the last 'rollingWindow' starting at current time |
double |
getValue(String catLabel,
long curTime,
long rollingWindow)
Get the value (uptime) for a category in the last 'rollingWindow' starting at current time |
boolean |
isIpValidated(long nodeid,
String ip,
String catLabel)
Check if this IP has already been validated for this category |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RTCHashMap()
public RTCHashMap(int initialCapacity)
initialCapacity - a int.
public RTCHashMap(int initialCapacity,
float loadFactor)
initialCapacity - a int.loadFactor - a float.| Method Detail |
|---|
public void add(RTCNode rtcN)
rtcN - the rtcNode to addpublic void delete(RTCNode rtcN)
delete
rtcN - a RTCNode object.
public boolean isIpValidated(long nodeid,
String ip,
String catLabel)
nodeid - the node id whose interface is to be validatedip - the ip to be validatedcatLabel - the category whose rule this ip is to pass
public double getValue(String catLabel,
long curTime,
long rollingWindow)
catLabel - the category to which the node should belong tocurTime - the current timerollingWindow - the window for which value is to be calculated
public double getValue(long nodeid,
String catLabel,
long curTime,
long rollingWindow)
nodeid - the node for which value is to be calculatedcatLabel - the category to which the node should belong tocurTime - the current timerollingWindow - the window for which value is to be calculated
public int getServiceCount(long nodeid,
String catLabel)
nodeid - the node for which servicecount is neededcatLabel - the category to which the node should belong to
public int getServiceDownCount(long nodeid,
String catLabel)
nodeid - the node for which servicecount is neededcatLabel - the category to which the node should belong to
public RTCNode getRTCNode(RTCNodeKey key)
getRTCNode
key - a RTCNodeKey object.
RTCNode object.
public RTCNode getRTCNode(long nodeid,
String ipaddr,
String svcname)
getRTCNode
nodeid - a long.ipaddr - a String object.svcname - a String object.
RTCNode object.public List<RTCNode> getRTCNodes(long nodeid)
getRTCNodes
nodeid - a long.
List object.
public List<RTCNode> getRTCNodes(long nodeid,
String ip)
getRTCNodes
nodeid - a long.ip - a String object.
List object.public void deleteNode(long nodeid)
deleteNode
nodeid - a long.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||