Package io.vertigo.core.node
Interface Node
-
- All Known Implementing Classes:
AutoCloseableNode
public interface Node
The node class is the core of vertigo. An node has a structure and contains all the components and definitions that provides services. Structure | |---DefinitionSpace | contains all the definitions |---ComponentSpace | contains all the components including plugins and aspects A node has an internal lifecycle. o--->[starting]--->[active]--->[stopping]--->[closed] If an error occured during the starting process then all the started components are stopped and the node is closed- Author:
- pchretien
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description ComponentSpace
getComponentSpace()
Returns the space where all the components are stored.DefinitionSpace
getDefinitionSpace()
Returns the space where all the definitions are stored.static Node
getNode()
NodeConfig
getNodeConfig()
Instant
getStart()
void
registerPreActivateFunction(Runnable postStartFunction)
-
-
-
Method Detail
-
getNode
static Node getNode()
-
registerPreActivateFunction
void registerPreActivateFunction(Runnable postStartFunction)
- Parameters:
postStartFunction
- Runnable function post start
-
getStart
Instant getStart()
- Returns:
- Start
-
getNodeConfig
NodeConfig getNodeConfig()
- Returns:
- the node configuration
-
getDefinitionSpace
DefinitionSpace getDefinitionSpace()
Returns the space where all the definitions are stored.- Returns:
- the definitionSpace
-
getComponentSpace
ComponentSpace getComponentSpace()
Returns the space where all the components are stored.- Returns:
- the componentSpace
-
-