public final class RedisAppNodeRegistryPlugin extends Object implements AppNodeRegistryPlugin
| Constructor and Description |
|---|
RedisAppNodeRegistryPlugin(RedisConnector redisConnector)
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
|
@Inject public RedisAppNodeRegistryPlugin(RedisConnector redisConnector)
redisConnector - the redisConnectorpublic void register(Node node)
AppNodeRegistryPluginregister in interface AppNodeRegistryPluginnode - the node to registerpublic void unregister(Node node)
AppNodeRegistryPluginunregister in interface AppNodeRegistryPluginnode - the node to unregisterpublic 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 updatepublic List<Node> getTopology()
AppNodeRegistryPlugingetTopology in interface AppNodeRegistryPluginCopyright © 2019. All rights reserved.