Stub.ServiceCall<IFACE,OUTPUT,ERROR extends Exception>, Stub.ServiceRun<IFACE,ERROR extends Exception>| Constructor and Description |
|---|
ServiceDiscoveryExecutor(String serviceId) |
| Modifier and Type | Method and Description |
|---|---|
<OUTPUT,ERROR extends Exception> |
call(Stub.ServiceCall<IFACE,OUTPUT,ERROR> callable) |
boolean |
isRunning() |
<ERROR extends Exception> |
run(Stub.ServiceRun<IFACE,ERROR> callable) |
void |
setServiceNodeBalancer(ServiceNodeBalancer nodeBalancer) |
void |
setServiceNodeDiscovery(ServiceNodeDiscovery nodeDiscovery) |
void |
start() |
void |
stop() |
public ServiceDiscoveryExecutor(String serviceId)
public <OUTPUT,ERROR extends Exception> OUTPUT call(Stub.ServiceCall<IFACE,OUTPUT,ERROR> callable) throws ServiceDiscoveryException, ERROR extends Exception
call in interface Stub<IFACE>ServiceDiscoveryExceptionERROR extends Exceptionpublic <ERROR extends Exception> void run(Stub.ServiceRun<IFACE,ERROR> callable) throws ServiceDiscoveryException, ERROR extends Exception
run in interface Stub<IFACE>ServiceDiscoveryExceptionERROR extends Exceptionpublic 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 void setServiceNodeDiscovery(ServiceNodeDiscovery nodeDiscovery)
public void setServiceNodeBalancer(ServiceNodeBalancer nodeBalancer)
Copyright © 2016 Irenical. All rights reserved.