public final class DbAppNodeRegistryPlugin extends Object implements AppNodeRegistryPlugin
| Constructor and Description |
|---|
DbAppNodeRegistryPlugin(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)
AppNodeRegistryPluginregister in interface AppNodeRegistryPluginnode - the node to registerpublic void unregister(Node node)
AppNodeRegistryPluginunregister in interface AppNodeRegistryPluginnode - the node to unregisterpublic List<Node> getTopology()
AppNodeRegistryPlugingetTopology in interface AppNodeRegistryPluginpublic Optional<Node> find(String nodeId)
AppNodeRegistryPluginfind in interface AppNodeRegistryPluginnodeId - the id to look forpublic void updateStatus(Node node)
AppNodeRegistryPluginupdateStatus in interface AppNodeRegistryPluginnode - the node to updateCopyright © 2019. All rights reserved.