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…
Reference in New Issue