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.LifeCycleExceptionCopyright © 2016 Irenical. All rights reserved.