public class ConsulNodeDiscovery extends Object implements org.irenical.fetchy.node.discovery.ServiceNodeDiscovery
| Constructor and Description |
|---|
ConsulNodeDiscovery() |
ConsulNodeDiscovery(String consulHostPropertyKey) |
ConsulNodeDiscovery(String consulHostPropertyKey,
String consulPortPropertyKey) |
| Modifier and Type | Method and Description |
|---|---|
List<org.irenical.fetchy.node.ServiceNode> |
getServiceNodes(String serviceId,
boolean onlyHealthy) |
boolean |
isRunning() |
void |
start() |
void |
stop() |
public ConsulNodeDiscovery()
public ConsulNodeDiscovery(String consulHostPropertyKey)
public void start()
throws Exception
start in interface org.irenical.lifecycle.LifeCycleExceptionpublic void stop()
throws Exception
stop in interface org.irenical.lifecycle.LifeCycleExceptionpublic boolean isRunning()
throws Exception
isRunning in interface org.irenical.lifecycle.LifeCycleExceptionpublic List<org.irenical.fetchy.node.ServiceNode> getServiceNodes(String serviceId, boolean onlyHealthy) throws org.irenical.fetchy.node.discovery.ServiceDiscoveryException
getServiceNodes in interface org.irenical.fetchy.node.discovery.ServiceNodeDiscoveryorg.irenical.fetchy.node.discovery.ServiceDiscoveryExceptionCopyright © 2016 Irenical. All rights reserved.