public class ConsulNodeDiscovery extends Object implements ServiceNodeDiscovery
| Constructor and Description |
|---|
ConsulNodeDiscovery() |
ConsulNodeDiscovery(String consulHostPropertyKey) |
ConsulNodeDiscovery(String consulHostPropertyKey,
String consulPortPropertyKey) |
| Modifier and Type | Method and Description |
|---|---|
List<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<ServiceNode> getServiceNodes(String serviceId, boolean onlyHealthy) throws ServiceDiscoveryException
getServiceNodes in interface ServiceNodeDiscoveryServiceDiscoveryExceptionCopyright © 2017 Irenical. All rights reserved.