diff --git a/core/src/main/java/org/elasticsearch/node/Node.java b/core/src/main/java/org/elasticsearch/node/Node.java index ce9a3742876..1778867f5a1 100644 --- a/core/src/main/java/org/elasticsearch/node/Node.java +++ b/core/src/main/java/org/elasticsearch/node/Node.java @@ -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. */ diff --git a/core/src/main/java/org/elasticsearch/node/NodeModule.java b/core/src/main/java/org/elasticsearch/node/NodeModule.java index c1b707bfd0f..8622b14e925 100644 --- a/core/src/main/java/org/elasticsearch/node/NodeModule.java +++ b/core/src/main/java/org/elasticsearch/node/NodeModule.java @@ -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. */