org.elasticsearch.cluster
Class ClusterName
java.lang.Object
org.elasticsearch.cluster.ClusterName
- All Implemented Interfaces:
- Streamable
public class ClusterName
- extends java.lang.Object
- implements Streamable
Constructor Summary |
ClusterName(java.lang.String value)
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
SETTING
public static final java.lang.String SETTING
- See Also:
- Constant Field Values
DEFAULT
public static final ClusterName DEFAULT
ClusterName
public ClusterName(java.lang.String value)
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