|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.elasticsearch.cluster.node.DiscoveryNode
public class DiscoveryNode
A discovery node represents a node that is part of the cluster.
Field Summary | |
---|---|
static ImmutableList<DiscoveryNode> |
EMPTY_LIST
|
Constructor Summary | |
---|---|
DiscoveryNode(java.lang.String nodeName,
java.lang.String nodeId,
TransportAddress address,
java.util.Map<java.lang.String,java.lang.String> attributes)
|
|
DiscoveryNode(java.lang.String nodeId,
TransportAddress address)
|
Method Summary | |
---|---|
TransportAddress |
address()
The address that the node can be communicated with. |
ImmutableMap<java.lang.String,java.lang.String> |
attributes()
The node attributes. |
static java.util.Map<java.lang.String,java.lang.String> |
buildCommonNodesAttributes(Settings settings)
|
boolean |
clientNode()
Is the node a client node or not. |
boolean |
dataNode()
Should this node hold data (shards) or not. |
boolean |
equals(java.lang.Object obj)
|
TransportAddress |
getAddress()
The address that the node can be communicated with. |
ImmutableMap<java.lang.String,java.lang.String> |
getAttributes()
The node attributes. |
java.lang.String |
getId()
The unique id of the node. |
java.lang.String |
getName()
The name of the node. |
int |
hashCode()
|
java.lang.String |
id()
The unique id of the node. |
boolean |
isClientNode()
|
boolean |
isDataNode()
Should this node hold data (shards) or not. |
java.lang.String |
name()
The name of the node. |
void |
readFrom(StreamInput in)
|
static DiscoveryNode |
readNode(StreamInput in)
|
java.lang.String |
toString()
|
void |
writeTo(StreamOutput out)
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final ImmutableList<DiscoveryNode> EMPTY_LIST
Constructor Detail |
---|
public DiscoveryNode(java.lang.String nodeId, TransportAddress address)
public DiscoveryNode(java.lang.String nodeName, java.lang.String nodeId, TransportAddress address, java.util.Map<java.lang.String,java.lang.String> attributes)
Method Detail |
---|
public static java.util.Map<java.lang.String,java.lang.String> buildCommonNodesAttributes(Settings settings)
public TransportAddress address()
public TransportAddress getAddress()
public java.lang.String id()
public java.lang.String getId()
public java.lang.String name()
public java.lang.String getName()
public ImmutableMap<java.lang.String,java.lang.String> attributes()
public ImmutableMap<java.lang.String,java.lang.String> getAttributes()
public boolean dataNode()
public boolean isDataNode()
public boolean clientNode()
public boolean isClientNode()
public static DiscoveryNode readNode(StreamInput in) throws java.io.IOException
java.io.IOException
public void readFrom(StreamInput in) throws java.io.IOException
readFrom
in interface Streamable
java.io.IOException
public void writeTo(StreamOutput out) throws java.io.IOException
writeTo
in interface Streamable
java.io.IOException
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |