public final class DbNodeRegistryPlugin extends Object implements NodeRegistryPlugin
| Constructor and Description |
|---|
DbNodeRegistryPlugin(String driverClassName,
String jdbcUrl)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
Optional<Node> |
find(String nodeId)
Find a node in the topology with the given id
|
List<Node> |
getTopology()
Get the whole topology of the app
|
void |
register(Node node)
Register a node
|
void |
unregister(Node node)
Unregister a node
|
void |
updateStatus(Node node)
Update the status of a node
|
public void register(Node node)
NodeRegistryPluginregister in interface NodeRegistryPluginnode - the node to registerpublic void unregister(Node node)
NodeRegistryPluginunregister in interface NodeRegistryPluginnode - the node to unregisterpublic List<Node> getTopology()
NodeRegistryPlugingetTopology in interface NodeRegistryPluginpublic Optional<Node> find(String nodeId)
NodeRegistryPluginfind in interface NodeRegistryPluginnodeId - the id to look forpublic void updateStatus(Node node)
NodeRegistryPluginupdateStatus in interface NodeRegistryPluginnode - the node to updateCopyright © 2018. All Rights Reserved.