|
|||||||||
| 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)
|
void |
deleteNode(long nodeid)
|
RTCNode |
getRTCNode(long nodeid,
String ipaddr,
String svcname)
|
RTCNode |
getRTCNode(RTCNodeKey key)
|
List |
getRTCNodes(long nodeid)
|
List |
getRTCNodes(long nodeid,
String ip)
|
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)
public RTCHashMap(int initialCapacity,
float loadFactor)
| Method Detail |
|---|
public void add(RTCNode rtcN)
rtcN - the rtcNode to addpublic void delete(RTCNode rtcN)
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)
public RTCNode getRTCNode(long nodeid,
String ipaddr,
String svcname)
public List getRTCNodes(long nodeid)
public List getRTCNodes(long nodeid,
String ip)
public void deleteNode(long nodeid)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||