expose node in NodeModule and Environment in Node

This commit is contained in:
javanna 2016-01-15 14:25:43 +01:00 committed by Luca Cavanna
parent f8bb06a664
commit d2eda422cf
2 changed files with 14 additions and 0 deletions

View File

@ -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.
*/

View File

@ -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.
*/