public class Node
extends java.lang.Object
implements java.io.Closeable
Modifier and Type | Field and Description |
---|---|
static Setting<Settings> |
NODE_ATTRIBUTES |
static Setting<java.lang.Boolean> |
NODE_DATA_SETTING |
static Setting<java.lang.Boolean> |
NODE_INGEST_SETTING |
static Setting<java.lang.Boolean> |
NODE_LOCAL_SETTING |
static Setting<java.lang.Boolean> |
NODE_MASTER_SETTING |
static Setting<java.lang.String> |
NODE_MODE_SETTING |
static Setting<java.lang.String> |
NODE_NAME_SETTING |
static Setting<java.lang.Boolean> |
WRITE_PORTS_FIELD_SETTING |
Modifier | Constructor and Description |
---|---|
protected |
Node(Environment tmpEnv,
Version version,
java.util.Collection<java.lang.Class<? extends Plugin>> classpathPlugins) |
|
Node(Settings preparedSettings)
Constructs a node with the given settings.
|
Modifier and Type | Method and Description |
---|---|
Client |
client()
A client that can be used to execute actions (operations) against the cluster.
|
void |
close() |
Environment |
getEnvironment()
Returns the environment of the node
|
Injector |
injector() |
boolean |
isClosed()
Returns true if the node is closed.
|
Settings |
settings()
The settings that were used to create the node.
|
Node |
start()
Start the node.
|
public static final Setting<java.lang.Boolean> WRITE_PORTS_FIELD_SETTING
public static final Setting<java.lang.Boolean> NODE_DATA_SETTING
public static final Setting<java.lang.Boolean> NODE_MASTER_SETTING
public static final Setting<java.lang.Boolean> NODE_LOCAL_SETTING
public static final Setting<java.lang.String> NODE_MODE_SETTING
public static final Setting<java.lang.Boolean> NODE_INGEST_SETTING
public static final Setting<java.lang.String> NODE_NAME_SETTING
public Node(Settings preparedSettings)
preparedSettings
- Base settings to configure the node withprotected Node(Environment tmpEnv, Version version, java.util.Collection<java.lang.Class<? extends Plugin>> classpathPlugins)
public Settings settings()
public Client client()
public Environment getEnvironment()
public Node start()
public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
java.io.IOException
public boolean isClosed()
public Injector injector()