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
Db implementation for multi node management
- 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
-
DbAppNodeRegistryPlugin
Constructor- Parameters:
driverClassName- the driver to use with the dbjdbcUrl- the jdbc url connection
-
-
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
-
getTopology
Description copied from interface:AppNodeRegistryPluginGet the whole topology of the app- Specified by:
getTopologyin interfaceAppNodeRegistryPlugin- Returns:
- the list of node of the app
-
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
-