public class RandomNodeBalancer extends Object implements org.irenical.fetchy.node.balancer.ServiceNodeBalancer
| Constructor and Description |
|---|
RandomNodeBalancer() |
| Modifier and Type | Method and Description |
|---|---|
Optional<org.irenical.fetchy.node.ServiceNode> |
getService(List<org.irenical.fetchy.node.ServiceNode> nodes) |
<ERROR extends Exception> |
isRunning() |
<ERROR extends Exception> |
start() |
<ERROR extends Exception> |
stop() |
public Optional<org.irenical.fetchy.node.ServiceNode> getService(List<org.irenical.fetchy.node.ServiceNode> nodes)
getService in interface org.irenical.fetchy.node.balancer.ServiceNodeBalancerpublic <ERROR extends Exception> void start() throws ERROR extends Exception
start in interface org.irenical.lifecycle.LifeCycleERROR extends Exceptionpublic <ERROR extends Exception> void stop() throws ERROR extends Exception
stop in interface org.irenical.lifecycle.LifeCycleERROR extends ExceptionCopyright © 2016 Irenical. All rights reserved.