|
||||||||||
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 com.google.common.collect.ImmutableList<DiscoveryNode> |
EMPTY_LIST
|
Constructor Summary | |
---|---|
DiscoveryNode(String nodeName,
String nodeId,
TransportAddress address,
Map<String,String> attributes)
|
|
DiscoveryNode(String nodeId,
TransportAddress address)
|
Method Summary | |
---|---|
TransportAddress |
address()
The address that the node can be communicated with. |
com.google.common.collect.ImmutableMap<String,String> |
attributes()
The node attributes. |
boolean |
clientNode()
Is the node a client node or not. |
static boolean |
clientNode(Settings settings)
|
boolean |
dataNode()
Should this node hold data (shards) or not. |
static boolean |
dataNode(Settings settings)
|
boolean |
equals(Object obj)
|
TransportAddress |
getAddress()
The address that the node can be communicated with. |
com.google.common.collect.ImmutableMap<String,String> |
getAttributes()
The node attributes. |
String |
getId()
The unique id of the node. |
String |
getName()
The name of the node. |
Version |
getVersion()
|
int |
hashCode()
|
String |
id()
The unique id of the node. |
boolean |
isClientNode()
|
boolean |
isDataNode()
Should this node hold data (shards) or not. |
boolean |
isMasterNode()
Can this node become master or not. |
boolean |
masterNode()
Can this node become master or not. |
static boolean |
masterNode(Settings settings)
|
String |
name()
The name of the node. |
static boolean |
nodeRequiresLocalStorage(Settings settings)
|
void |
readFrom(StreamInput in)
|
static DiscoveryNode |
readNode(StreamInput in)
|
boolean |
shouldConnectTo(DiscoveryNode otherNode)
Should this node form a connection to the provided node. |
String |
toString()
|
Version |
version()
|
void |
writeTo(StreamOutput out)
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final com.google.common.collect.ImmutableList<DiscoveryNode> EMPTY_LIST
Constructor Detail |
---|
public DiscoveryNode(String nodeId, TransportAddress address)
public DiscoveryNode(String nodeName, String nodeId, TransportAddress address, Map<String,String> attributes)
Method Detail |
---|
public static boolean nodeRequiresLocalStorage(Settings settings)
public static boolean clientNode(Settings settings)
public static boolean masterNode(Settings settings)
public static boolean dataNode(Settings settings)
public boolean shouldConnectTo(DiscoveryNode otherNode)
public TransportAddress address()
public TransportAddress getAddress()
public String id()
public String getId()
public String name()
public String getName()
public com.google.common.collect.ImmutableMap<String,String> attributes()
public com.google.common.collect.ImmutableMap<String,String> getAttributes()
public boolean dataNode()
public boolean isDataNode()
public boolean clientNode()
public boolean isClientNode()
public boolean masterNode()
public boolean isMasterNode()
public Version version()
public Version getVersion()
public static DiscoveryNode readNode(StreamInput in) throws IOException
IOException
public void readFrom(StreamInput in) throws IOException
readFrom
in interface Streamable
IOException
public void writeTo(StreamOutput out) throws IOException
writeTo
in interface Streamable
IOException
public boolean equals(Object obj)
equals
in class Object
public int hashCode()
hashCode
in class Object
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |