Class SingleAppNodeRegistryPlugin
java.lang.Object
io.vertigo.commons.plugins.app.registry.single.SingleAppNodeRegistryPlugin
- All Implemented Interfaces:
AppNodeRegistryPlugin,io.vertigo.core.node.component.CoreComponent,io.vertigo.core.node.component.Plugin
Memory implementation for a single node node.
- Author:
- mlaroche
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionFind a node in the topology with the given idGet the whole topology of the appvoidRegister a nodevoidunregister(AppNode appNode) Unregister a nodevoidupdateStatus(AppNode appNode) Update the status of a node
-
Constructor Details
-
SingleAppNodeRegistryPlugin
public SingleAppNodeRegistryPlugin()
-
-
Method Details
-
register
Description copied from interface:AppNodeRegistryPluginRegister a node- Specified by:
registerin interfaceAppNodeRegistryPlugin- Parameters:
appNode- the node to register
-
unregister
Description copied from interface:AppNodeRegistryPluginUnregister a node- Specified by:
unregisterin interfaceAppNodeRegistryPlugin- Parameters:
appNode- the node to unregister
-
find
Description copied from interface:AppNodeRegistryPluginFind a node in the topology with the given id- Specified by:
findin interfaceAppNodeRegistryPlugin- Parameters:
nodeId- the id to look for- Returns:
- an optional Node
-
updateStatus
Description copied from interface:AppNodeRegistryPluginUpdate the status of a node- Specified by:
updateStatusin interfaceAppNodeRegistryPlugin- Parameters:
appNode- the node to update
-
getTopology
Description copied from interface:AppNodeRegistryPluginGet the whole topology of the app- Specified by:
getTopologyin interfaceAppNodeRegistryPlugin- Returns:
- the list of node of the app
-