public class ConsulDiscoverer extends Object implements Discoverer, org.irenical.lifecycle.LifeCycle
| Constructor and Description |
|---|
ConsulDiscoverer() |
ConsulDiscoverer(String consulHostPropertyKey) |
ConsulDiscoverer(String consulHostPropertyKey,
String consulPortPropertyKey) |
| Modifier and Type | Method and Description |
|---|---|
List<Node> |
discover(String serviceId) |
boolean |
isRunning() |
void |
start() |
void |
stop() |
public ConsulDiscoverer()
public ConsulDiscoverer(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<Node> discover(String serviceId) throws DiscoverException
discover in interface DiscovererDiscoverExceptionCopyright © 2017 Irenical. All rights reserved.