Remove unused constant from o.e.c.n.DiscoveryNode
This commit is contained in:
parent
265f8f8512
commit
110fe6d36a
|
@ -45,12 +45,6 @@ import static org.elasticsearch.common.transport.TransportAddressSerializers.add
|
||||||
*/
|
*/
|
||||||
public class DiscoveryNode implements Streamable, ToXContent {
|
public class DiscoveryNode implements Streamable, ToXContent {
|
||||||
|
|
||||||
/**
|
|
||||||
* Minimum version of a node to communicate with. This version corresponds to the minimum compatibility version
|
|
||||||
* of the current elasticsearch major version.
|
|
||||||
*/
|
|
||||||
public static final Version MINIMUM_DISCOVERY_NODE_VERSION = Version.CURRENT.minimumCompatibilityVersion();
|
|
||||||
|
|
||||||
public static boolean localNode(Settings settings) {
|
public static boolean localNode(Settings settings) {
|
||||||
if (settings.get("node.local") != null) {
|
if (settings.get("node.local") != null) {
|
||||||
return settings.getAsBoolean("node.local", false);
|
return settings.getAsBoolean("node.local", false);
|
||||||
|
@ -109,7 +103,7 @@ public class DiscoveryNode implements Streamable, ToXContent {
|
||||||
/**
|
/**
|
||||||
* Creates a new {@link DiscoveryNode}
|
* Creates a new {@link DiscoveryNode}
|
||||||
* <p>
|
* <p>
|
||||||
* <b>Note:</b> if the version of the node is unknown {@link #MINIMUM_DISCOVERY_NODE_VERSION} should be used.
|
* <b>Note:</b> if the version of the node is unknown {@link Version#minimumCompatibilityVersion()} should be used for the current version.
|
||||||
* it corresponds to the minimum version this elasticsearch version can communicate with. If a higher version is used
|
* it corresponds to the minimum version this elasticsearch version can communicate with. If a higher version is used
|
||||||
* the node might not be able to communicate with the remove node. After initial handshakes node versions will be discovered
|
* the node might not be able to communicate with the remove node. After initial handshakes node versions will be discovered
|
||||||
* and updated.
|
* and updated.
|
||||||
|
@ -126,7 +120,7 @@ public class DiscoveryNode implements Streamable, ToXContent {
|
||||||
/**
|
/**
|
||||||
* Creates a new {@link DiscoveryNode}
|
* Creates a new {@link DiscoveryNode}
|
||||||
* <p>
|
* <p>
|
||||||
* <b>Note:</b> if the version of the node is unknown {@link #MINIMUM_DISCOVERY_NODE_VERSION} should be used.
|
* <b>Note:</b> if the version of the node is unknown {@link Version#minimumCompatibilityVersion()} should be used for the current version.
|
||||||
* it corresponds to the minimum version this elasticsearch version can communicate with. If a higher version is used
|
* it corresponds to the minimum version this elasticsearch version can communicate with. If a higher version is used
|
||||||
* the node might not be able to communicate with the remove node. After initial handshakes node versions will be discovered
|
* the node might not be able to communicate with the remove node. After initial handshakes node versions will be discovered
|
||||||
* and updated.
|
* and updated.
|
||||||
|
@ -145,7 +139,7 @@ public class DiscoveryNode implements Streamable, ToXContent {
|
||||||
/**
|
/**
|
||||||
* Creates a new {@link DiscoveryNode}.
|
* Creates a new {@link DiscoveryNode}.
|
||||||
* <p>
|
* <p>
|
||||||
* <b>Note:</b> if the version of the node is unknown {@link #MINIMUM_DISCOVERY_NODE_VERSION} should be used.
|
* <b>Note:</b> if the version of the node is unknown {@link Version#minimumCompatibilityVersion()} should be used for the current version.
|
||||||
* it corresponds to the minimum version this elasticsearch version can communicate with. If a higher version is used
|
* it corresponds to the minimum version this elasticsearch version can communicate with. If a higher version is used
|
||||||
* the node might not be able to communicate with the remove node. After initial handshakes node versions will be discovered
|
* the node might not be able to communicate with the remove node. After initial handshakes node versions will be discovered
|
||||||
* and updated.
|
* and updated.
|
||||||
|
@ -178,7 +172,7 @@ public class DiscoveryNode implements Streamable, ToXContent {
|
||||||
/**
|
/**
|
||||||
* Creates a new {@link DiscoveryNode}.
|
* Creates a new {@link DiscoveryNode}.
|
||||||
* <p>
|
* <p>
|
||||||
* <b>Note:</b> if the version of the node is unknown {@link #MINIMUM_DISCOVERY_NODE_VERSION} should be used.
|
* <b>Note:</b> if the version of the node is unknown {@link Version#minimumCompatibilityVersion()} should be used for the current version.
|
||||||
* it corresponds to the minimum version this elasticsearch version can communicate with. If a higher version is used
|
* it corresponds to the minimum version this elasticsearch version can communicate with. If a higher version is used
|
||||||
* the node might not be able to communicate with the remove node. After initial handshakes node versions will be discovered
|
* the node might not be able to communicate with the remove node. After initial handshakes node versions will be discovered
|
||||||
* and updated.
|
* and updated.
|
||||||
|
|
Loading…
Reference in New Issue