Class DbAppNodeRegistryPlugin
- java.lang.Object
-
- io.vertigo.commons.plugins.app.registry.db.DbAppNodeRegistryPlugin
-
- All Implemented Interfaces:
AppNodeRegistryPlugin
,io.vertigo.core.node.component.CoreComponent
,io.vertigo.core.node.component.Plugin
public final class DbAppNodeRegistryPlugin extends Object implements AppNodeRegistryPlugin
Db implementation for multi node management- Author:
- mlaroche
-
-
Constructor Summary
Constructors Constructor Description DbAppNodeRegistryPlugin(String driverClassName, String jdbcUrl)
Constructor
-
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 appvoid
register(AppNode appNode)
Register a nodevoid
unregister(AppNode appNode)
Unregister a nodevoid
updateStatus(AppNode appNode)
Update the status of a node
-
-
-
Method Detail
-
register
public void register(AppNode appNode)
Description copied from interface:AppNodeRegistryPlugin
Register a node- Specified by:
register
in interfaceAppNodeRegistryPlugin
- Parameters:
appNode
- the node to register
-
unregister
public void unregister(AppNode appNode)
Description copied from interface:AppNodeRegistryPlugin
Unregister a node- Specified by:
unregister
in interfaceAppNodeRegistryPlugin
- Parameters:
appNode
- the node to unregister
-
getTopology
public List<AppNode> getTopology()
Description copied from interface:AppNodeRegistryPlugin
Get the whole topology of the app- Specified by:
getTopology
in interfaceAppNodeRegistryPlugin
- Returns:
- the list of node of the app
-
find
public Optional<AppNode> find(String nodeId)
Description copied from interface:AppNodeRegistryPlugin
Find a node in the topology with the given id- Specified by:
find
in interfaceAppNodeRegistryPlugin
- Parameters:
nodeId
- the id to look for- Returns:
- an optional Node
-
updateStatus
public void updateStatus(AppNode appNode)
Description copied from interface:AppNodeRegistryPlugin
Update the status of a node- Specified by:
updateStatus
in interfaceAppNodeRegistryPlugin
- Parameters:
appNode
- the node to update
-
-