Package io.vertigo.commons.impl.app
Interface AppNodeRegistryPlugin
-
- All Superinterfaces:
io.vertigo.core.node.component.CoreComponent,io.vertigo.core.node.component.Plugin
- All Known Implementing Classes:
DbAppNodeRegistryPlugin,RedisAppNodeRegistryPlugin,SingleAppNodeRegistryPlugin
public interface AppNodeRegistryPlugin extends io.vertigo.core.node.component.PluginPlugin for storing and querying the node topology of an App.- Author:
- mlaroche
-
-
Method Summary
All Methods Instance Methods Abstract 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
void register(AppNode appNode)
Register a node- Parameters:
appNode- the node to register
-
unregister
void unregister(AppNode appNode)
Unregister a node- Parameters:
appNode- the node to unregister
-
getTopology
List<AppNode> getTopology()
Get the whole topology of the app- Returns:
- the list of node of the app
-
find
Optional<AppNode> find(String nodeId)
Find a node in the topology with the given id- Parameters:
nodeId- the id to look for- Returns:
- an optional Node
-
updateStatus
void updateStatus(AppNode appNode)
Update the status of a node- Parameters:
appNode- the node to update
-
-