public class RTCHashMap extends Object
| Constructor and Description |
|---|
RTCHashMap(int initialCapacity)
constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(RTCNode rtcN)
Add an rtc node
|
void |
delete(RTCNode rtcN)
delete
|
void |
deleteNode(int nodeid)
deleteNode
|
RTCNode |
getRTCNode(RTCNodeKey key)
getRTCNode
|
List<RTCNode> |
getRTCNodes(int nodeid)
getRTCNodes
|
List<RTCNode> |
getRTCNodes(int nodeid,
InetAddress ip)
getRTCNodes
|
int |
getServiceCount(int nodeid,
String catLabel)
Get the count of services for a node in the context of the the specified
category
|
int |
getServiceDownCount(int nodeid,
String catLabel)
Get the count of services currently down for a node in the context of the
the specified category
|
double |
getValue(int 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
|
public RTCHashMap(int initialCapacity)
initialCapacity - a int.public void add(RTCNode rtcN)
rtcN - the rtcNode to addpublic 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 calculatedpublic double getValue(int 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 calculatedpublic int getServiceCount(int nodeid,
String catLabel)
nodeid - the node for which servicecount is neededcatLabel - the category to which the node should belong topublic int getServiceDownCount(int nodeid,
String catLabel)
nodeid - the node for which servicecount is neededcatLabel - the category to which the node should belong topublic RTCNode getRTCNode(RTCNodeKey key)
getRTCNode
key - a RTCNodeKey object.RTCNode object.public List<RTCNode> getRTCNodes(int nodeid)
getRTCNodes
nodeid - a long.List object.public List<RTCNode> getRTCNodes(int nodeid, InetAddress ip)
getRTCNodes
public void deleteNode(int nodeid)
deleteNode
nodeid - a long.Copyright © 2020. All rights reserved.