org.elasticsearch.cluster
Class ClusterName

java.lang.Object
  extended by org.elasticsearch.cluster.ClusterName
All Implemented Interfaces:
Streamable

public class ClusterName
extends java.lang.Object
implements Streamable


Field Summary
static ClusterName DEFAULT
           
static java.lang.String SETTING
           
 
Constructor Summary
ClusterName(java.lang.String value)
           
 
Method Summary
static ClusterName clusterNameFromSettings(Settings settings)
           
 boolean equals(java.lang.Object o)
           
 int hashCode()
           
static ClusterName readClusterName(StreamInput in)
           
 void readFrom(StreamInput in)
           
 java.lang.String toString()
           
 java.lang.String value()
           
 void writeTo(StreamOutput out)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

SETTING

public static final java.lang.String SETTING
See Also:
Constant Field Values

DEFAULT

public static final ClusterName DEFAULT
Constructor Detail

ClusterName

public ClusterName(java.lang.String value)
Method Detail

clusterNameFromSettings

public static ClusterName clusterNameFromSettings(Settings settings)

value

public java.lang.String value()

readClusterName

public static ClusterName readClusterName(StreamInput in)
                                   throws java.io.IOException
Throws:
java.io.IOException

readFrom

public void readFrom(StreamInput in)
              throws java.io.IOException
Specified by:
readFrom in interface Streamable
Throws:
java.io.IOException

writeTo

public void writeTo(StreamOutput out)
             throws java.io.IOException
Specified by:
writeTo in interface Streamable
Throws:
java.io.IOException

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

toString

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