voldemort.cluster
Class Zone

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

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

See Also:
Serialized Form

Field Summary
static int DEFAULT_ZONE_ID
           
static int UNSET_ZONE_ID
           
 
Constructor Summary
Zone()
           
Zone(int zoneId, java.util.List<java.lang.Integer> proximityList)
           
 
Method Summary
 int compareTo(Zone other)
           
 boolean equals(java.lang.Object object)
           
 int getId()
           
 java.util.List<java.lang.Integer> getProximityList()
           
 int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

DEFAULT_ZONE_ID

public static final int DEFAULT_ZONE_ID
See Also:
Constant Field Values

UNSET_ZONE_ID

public static final int UNSET_ZONE_ID
See Also:
Constant Field Values
Constructor Detail

Zone

public Zone(int zoneId,
            java.util.List<java.lang.Integer> proximityList)

Zone

public Zone()
Method Detail

toString

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

equals

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

compareTo

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

hashCode

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

getId

public int getId()

getProximityList

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


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