public final class InternalNode extends Object implements Node
Modifier and Type | Field and Description |
---|---|
static String |
HTTP_ENABLED |
Constructor and Description |
---|
InternalNode() |
InternalNode(Settings preparedSettings,
boolean loadConfigSettings) |
Modifier and Type | Method and Description |
---|---|
Client |
client()
A client that can be used to execute actions (operations) against the cluster.
|
void |
close()
Closes the node (and
Node.stop() s if its running). |
Injector |
injector() |
boolean |
isClosed()
Returns true if the node is closed.
|
static void |
main(String[] args) |
Settings |
settings()
The settings that were used to create the node.
|
Node |
start()
Start the node.
|
Node |
stop()
Stops the node.
|
public static final String HTTP_ENABLED
public InternalNode() throws ElasticsearchException
ElasticsearchException
public InternalNode(Settings preparedSettings, boolean loadConfigSettings) throws ElasticsearchException
ElasticsearchException
public Settings settings()
Node
public Client client()
Node
public Node start()
Node
public Node stop()
Node
public void close()
Node
Node.stop()
s if its running).close
in interface AutoCloseable
close
in interface Releasable
close
in interface Node
public boolean isClosed()
Node
public Injector injector()
Copyright © 2009–2015. All rights reserved.