|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.opennms.netmgt.rtc.datablock.RTCNodeKey
public class RTCNodeKey
The key used to look up items in the data map
| Constructor Summary | |
|---|---|
RTCNodeKey(long nodeid,
String ip,
String svcname)
the constructor for this class |
|
| Method Summary | |
|---|---|
int |
compareTo(Object o)
Implements java.jang.Comparable since this is a key to a treemap |
boolean |
equals(Object o)
Overrides the 'equals()' method in the 'Object' superclass |
String |
getIP()
Return the IP address |
long |
getNodeID()
Return the node ID |
String |
getSvcName()
Return the service name |
int |
hashCode()
Overrides the 'hashCode()' method in the 'Object' superclass |
void |
setIP(String ipStr)
Set the IP address |
void |
setNodeID(long id)
Set the node ID |
void |
setSvcName(String svcName)
Set the service name |
String |
toString()
Returns a string representation of this key |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public RTCNodeKey(long nodeid,
String ip,
String svcname)
nodeid - the node IDip - the node IPsvcname - the service in the node| Method Detail |
|---|
public void setNodeID(long id)
id - the node IDpublic void setIP(String ipStr)
ipStr - the ip addresspublic void setSvcName(String svcName)
svcName - the service namepublic long getNodeID()
public String getSvcName()
public String getIP()
public int hashCode()
hashCode in class Objectpublic boolean equals(Object o)
equals in class Objectpublic int compareTo(Object o)
compareTo in interface Comparablepublic String toString()
toString in class Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||