public class Node extends Object implements Releasable
client() can be used
in order to use a Client to perform actions/operations against the cluster.
In order to create a node, the NodeBuilder can be used. When done with it, make sure to
call close() on it.
| Modifier and Type | Field and Description |
|---|---|
static String |
HTTP_ENABLED |
| Modifier | Constructor and Description |
|---|---|
protected |
Node(Environment tmpEnv,
Version version,
Collection<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() |
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 String HTTP_ENABLED
public Node(Settings preparedSettings)
preparedSettings - Base settings to configure the node withprotected Node(Environment tmpEnv, Version version, Collection<Class<? extends Plugin>> classpathPlugins)
public Settings settings()
public Client client()
public Node start()
public void close()
close in interface AutoCloseableclose in interface Releasablepublic boolean isClosed()
public Injector injector()
Copyright © 2009–2017. All rights reserved.