mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-17 10:25:15 +00:00
expose node in NodeModule and Environment in Node
This commit is contained in:
parent
f8bb06a664
commit
d2eda422cf
@ -230,6 +230,13 @@ public class Node implements Releasable {
|
||||
return client;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the environment of the node
|
||||
*/
|
||||
public Environment getEnvironment() {
|
||||
return environment;
|
||||
}
|
||||
|
||||
/**
|
||||
* Start the node. If the node is already started, this method is no-op.
|
||||
*/
|
||||
|
@ -99,6 +99,13 @@ public class NodeModule extends AbstractModule {
|
||||
bind(ProcessorsRegistry.class).toInstance(processorsRegistry);
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the node
|
||||
*/
|
||||
public Node getNode() {
|
||||
return node;
|
||||
}
|
||||
|
||||
/**
|
||||
* Adds a processor factory under a specific type name.
|
||||
*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user