Package org.nuxeo.elasticsearch.core
Class ElasticSearchEmbeddedNode
- java.lang.Object
-
- org.nuxeo.elasticsearch.core.ElasticSearchEmbeddedNode
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
public class ElasticSearchEmbeddedNode extends Object implements Closeable
- Since:
- 9.3
-
-
Field Summary
Fields Modifier and Type Field Description protected ElasticSearchEmbeddedServerConfig
config
protected org.elasticsearch.node.Node
node
protected int
retry
-
Constructor Summary
Constructors Constructor Description ElasticSearchEmbeddedNode(ElasticSearchEmbeddedServerConfig config)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
ElasticSearchEmbeddedServerConfig
getConfig()
org.elasticsearch.node.Node
getNode()
void
start()
-
-
-
Field Detail
-
config
protected final ElasticSearchEmbeddedServerConfig config
-
node
protected org.elasticsearch.node.Node node
-
retry
protected int retry
-
-
Constructor Detail
-
ElasticSearchEmbeddedNode
public ElasticSearchEmbeddedNode(ElasticSearchEmbeddedServerConfig config)
-
-
Method Detail
-
start
public void start()
-
close
public void close() throws IOException
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-
getConfig
public ElasticSearchEmbeddedServerConfig getConfig()
-
getNode
public org.elasticsearch.node.Node getNode()
-
-