voldemort.cluster
Class Node

java.lang.Object
  extended by voldemort.cluster.Node
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<Node>

public class Node
extends java.lang.Object
implements java.io.Serializable, java.lang.Comparable<Node>

A node in the voldemort cluster

See Also:
Serialized Form

Constructor Summary
Node(int id, java.lang.String host, int httpPort, int socketPort, int adminPort, int zoneId, java.util.List<java.lang.Integer> partitions)
           
Node(int id, java.lang.String host, int httpPort, int socketPort, int adminPort, java.util.List<java.lang.Integer> partitions)
           
 
Method Summary
 int compareTo(Node other)
           
 boolean equals(java.lang.Object o)
           
 int getAdminPort()
           
 java.lang.String getHost()
           
 int getHttpPort()
           
 java.net.URI getHttpUrl()
           
 int getId()
           
 int getNumberOfPartitions()
           
 java.util.List<java.lang.Integer> getPartitionIds()
           
 int getSocketPort()
           
 java.net.URI getSocketUrl()
           
 java.lang.String getStateString()
           
 int getZoneId()
           
 int hashCode()
           
 boolean isEqualState(Node other)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Node

public Node(int id,
            java.lang.String host,
            int httpPort,
            int socketPort,
            int adminPort,
            java.util.List<java.lang.Integer> partitions)

Node

public Node(int id,
            java.lang.String host,
            int httpPort,
            int socketPort,
            int adminPort,
            int zoneId,
            java.util.List<java.lang.Integer> partitions)
Method Detail

getHost

public java.lang.String getHost()

getHttpPort

public int getHttpPort()

getSocketPort

public int getSocketPort()

getZoneId

public int getZoneId()

getAdminPort

public int getAdminPort()

getId

public int getId()

getPartitionIds

public java.util.List<java.lang.Integer> getPartitionIds()

getNumberOfPartitions

public int getNumberOfPartitions()

getHttpUrl

public java.net.URI getHttpUrl()

getSocketUrl

public java.net.URI getSocketUrl()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getStateString

public java.lang.String getStateString()

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

compareTo

public int compareTo(Node other)
Specified by:
compareTo in interface java.lang.Comparable<Node>

isEqualState

public boolean isEqualState(Node other)


Jay Kreps, Roshan Sumbaly, Alex Feinberg, Bhupesh Bansal, Lei Gao, Chinmay Soman, Vinoth Chandar, Zhongjie Wu