|
OpenNMS API 1.2.3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.AbstractMap
java.util.HashMap
org.opennms.netmgt.rtc.datablock.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
Nested Class Summary |
Nested classes inherited from class java.util.HashMap |
|
Nested classes inherited from class java.util.AbstractMap |
|
Field Summary |
Fields inherited from class java.util.HashMap |
|
Fields inherited from class java.util.AbstractMap |
|
Constructor Summary | |
RTCHashMap()
Default constructor |
|
RTCHashMap(int initialCapacity)
constructor |
|
RTCHashMap(int initialCapacity,
float loadFactor)
constructor |
Method Summary | |
void |
add(long nodeid,
RTCNode rtcN)
Add the node with nodeid as key |
void |
add(long nodeid,
java.lang.String ip,
RTCNode rtcN)
Add the rtc node with nodeid and ip as key |
void |
delete(long nodeid,
RTCNode rtcN)
Delete the node from list with nodeid as key |
void |
delete(long nodeid,
java.lang.String ip,
RTCNode rtcN)
Delete the rtc node from list with nodeid and ip as key |
int |
getServiceCount(long nodeid,
java.lang.String catLabel)
Get the count of services for a node in the context of the the specified category |
int |
getServiceDownCount(long nodeid,
java.lang.String catLabel)
Get the count of services currently down for a node in the context of the the specified category |
double |
getValue(long nodeid,
java.lang.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(java.lang.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,
java.lang.String ip,
java.lang.String catLabel)
Check if this IP has already been validated for this category |
Methods inherited from class java.util.HashMap |
clear, clone, containsKey, containsValue, entrySet, get, isEmpty, keySet, put, putAll, remove, size, values |
Methods inherited from class java.util.AbstractMap |
equals, hashCode, toString |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.Map |
equals, hashCode |
Constructor Detail |
public RTCHashMap()
public RTCHashMap(int initialCapacity)
public RTCHashMap(int initialCapacity, float loadFactor)
Method Detail |
public void add(long nodeid, RTCNode rtcN)
nodeid
- the nodeidrtcN
- the RTCNode to addpublic void add(long nodeid, java.lang.String ip, RTCNode rtcN)
nodeid
- the nodeidip
- the iprtcN
- the RTCNode to addpublic void delete(long nodeid, RTCNode rtcN)
nodeid
- the nodeidrtcN
- the RTCNode to deletepublic void delete(long nodeid, java.lang.String ip, RTCNode rtcN)
nodeid
- the nodeidip
- the iprtcN
- the RTCNode to addpublic boolean isIpValidated(long nodeid, java.lang.String ip, java.lang.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(java.lang.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, java.lang.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, java.lang.String catLabel)
nodeid
- the node for which servicecount is neededcatLabel
- the category to which the node should belong to
public int getServiceDownCount(long nodeid, java.lang.String catLabel)
nodeid
- the node for which servicecount is neededcatLabel
- the category to which the node should belong to
|
OpenNMS API 1.2.3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |