public class ServiceDiscoveryController extends Object implements org.irenical.lifecycle.LifeCycle
| Constructor and Description |
|---|
ServiceDiscoveryController() |
| Modifier and Type | Method and Description |
|---|---|
Optional<ServiceNode> |
get(String serviceId) |
boolean |
isRunning() |
void |
setNodeBalancer(ServiceNodeBalancer nodeBalancer) |
void |
setServiceNodeDiscovery(ServiceNodeDiscovery serviceNodeDiscovery) |
void |
start() |
void |
stop() |
public void setServiceNodeDiscovery(ServiceNodeDiscovery serviceNodeDiscovery)
public void setNodeBalancer(ServiceNodeBalancer nodeBalancer)
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 Optional<ServiceNode> get(String serviceId)
Copyright © 2016 Irenical. All rights reserved.