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
public final class SingleAppNodeRegistryPlugin extends Object implements AppNodeRegistryPlugin
Memory implementation for a single node node.- Author:
- mlaroche
-
-
Constructor Summary
Constructors Constructor Description SingleAppNodeRegistryPlugin()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Optional<AppNode>find(String nodeId)Find a node in the topology with the given idList<AppNode>getTopology()Get the whole topology of the appvoidregister(AppNode appNode)Register a nodevoidunregister(AppNode appNode)Unregister a nodevoidupdateStatus(AppNode appNode)Update the status of a node
-
-
-
Method Detail
-
register
public void register(AppNode appNode)
Description copied from interface:AppNodeRegistryPluginRegister a node- Specified by:
registerin interfaceAppNodeRegistryPlugin- Parameters:
appNode- the node to register
-
unregister
public void unregister(AppNode appNode)
Description copied from interface:AppNodeRegistryPluginUnregister a node- Specified by:
unregisterin interfaceAppNodeRegistryPlugin- Parameters:
appNode- the node to unregister
-
find
public Optional<AppNode> find(String nodeId)
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
public void updateStatus(AppNode appNode)
Description copied from interface:AppNodeRegistryPluginUpdate the status of a node- Specified by:
updateStatusin interfaceAppNodeRegistryPlugin- Parameters:
appNode- the node to update
-
getTopology
public List<AppNode> getTopology()
Description copied from interface:AppNodeRegistryPluginGet the whole topology of the app- Specified by:
getTopologyin interfaceAppNodeRegistryPlugin- Returns:
- the list of node of the app
-
-