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
Modifier and TypeMethodDescriptionReturns the space where all the components are stored.Returns the space where all the definitions are stored.static NodegetNode()getStart()voidregisterPreActivateFunction(Runnable postStartFunction)
-
Method Details
-
getNode
-
registerPreActivateFunction
- 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
-