Class RTCNodeKey

    • Constructor Summary

      Constructors 
      Constructor Description
      RTCNodeKey​(int nodeid, java.net.InetAddress ip, java.lang.String svcname)
      the constructor for this class
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int compareTo​(RTCNodeKey obj)
      Implements java.jang.Comparable since this is a key to a tree map
      boolean equals​(java.lang.Object o)
      Overrides the 'equals()' method in the 'Object' superclass
      java.net.InetAddress getIP()
      Return the IP address
      int getNodeID()
      Return the node ID
      java.lang.String getSvcName()
      Return the service name
      int hashCode()
      Overrides the 'hashCode()' method in the 'Object' superclass
      java.lang.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

      • RTCNodeKey

        public RTCNodeKey​(int nodeid,
                          java.net.InetAddress ip,
                          java.lang.String svcname)
        the constructor for this class
        Parameters:
        nodeid - the node ID
        ip - the node IP
        svcname - the service in the node
    • Method Detail

      • getNodeID

        public int getNodeID()
        Return the node ID
        Returns:
        the node ID
      • getSvcName

        public java.lang.String getSvcName()
        Return the service name
        Returns:
        the service name
      • getIP

        public java.net.InetAddress getIP()
        Return the IP address
        Returns:
        the IP address
      • hashCode

        public int hashCode()
        Overrides the 'hashCode()' method in the 'Object' superclass
        Overrides:
        hashCode in class java.lang.Object
        Returns:
        a sum of hashCodes of the individual attributes
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides the 'equals()' method in the 'Object' superclass
        Overrides:
        equals in class java.lang.Object
      • compareTo

        public int compareTo​(RTCNodeKey obj)
        Implements java.jang.Comparable since this is a key to a tree map
        Specified by:
        compareTo in interface java.lang.Comparable<RTCNodeKey>
        Parameters:
        obj - a RTCNodeKey object.
        Returns:
        a int.
      • toString

        public java.lang.String toString()
        Returns a string representation of this key
        Overrides:
        toString in class java.lang.Object
        Returns:
        a string representation of this key