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
ElasticsearchExceptionpublic InternalNode(Settings preparedSettings, boolean loadConfigSettings) throws ElasticsearchException
ElasticsearchExceptionpublic Settings settings()
Nodepublic Client client()
Nodepublic Node start()
Nodepublic Node stop()
Nodepublic void close()
NodeNode.stop()s if its running).close in interface AutoCloseableclose in interface Releasableclose in interface Nodepublic boolean isClosed()
Nodepublic Injector injector()
Copyright © 2009–2016. All rights reserved.