Class RTCNodeKey

    • Constructor Detail

      • RTCNodeKey

        public RTCNodeKey​(int nodeid,
                          InetAddress ip,
                          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 String getSvcName()
        Return the service name
        Returns:
        the service name
      • getIP

        public 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 Object
        Returns:
        a sum of hashCodes of the individual attributes
      • equals

        public boolean equals​(Object o)
        Overrides the 'equals()' method in the 'Object' superclass
        Overrides:
        equals in class Object
      • toString

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