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.Plugin
Plugin for storing and querying the node topology of an App.
- Author:
- mlaroche
-
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
-
Method Details
-
register
Register a node- Parameters:
appNode- the node to register
-
unregister
Unregister a node- Parameters:
appNode- the node to unregister
-
getTopology
Get the whole topology of the app- Returns:
- the list of node of the app
-
find
Find a node in the topology with the given id- Parameters:
nodeId- the id to look for- Returns:
- an optional Node
-
updateStatus
Update the status of a node- Parameters:
appNode- the node to update
-