voldemort.cluster
Class Node
java.lang.Object
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)
|
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
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)
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
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>
Jay Kreps, Roshan Sumbaly, Alex Feinberg, Bhupesh Bansal, Lei Gao