public class LoadBalancerImpl extends Object implements LoadBalancer, org.picocontainer.Startable
| Modifier and Type | Class and Description |
|---|---|
static class |
LoadBalancerImpl.LoadBalancerConf |
| Constructor and Description |
|---|
LoadBalancerImpl(org.exoplatform.container.xml.InitParams params) |
| Modifier and Type | Method and Description |
|---|---|
void |
addNode(Node node)
Add new node for cometd connection.
|
void |
addPlugin(org.exoplatform.container.component.ComponentPlugin plugin) |
String |
connection(String exoId) |
List<String> |
getAliveNodesURL() |
boolean |
release(String exoId)
Release connection on the node there client connected.
|
void |
removeNode(String id)
Remove cometd node.
|
void |
start() |
void |
stop() |
public LoadBalancerImpl(org.exoplatform.container.xml.InitParams params)
params - the initial parameters.public void addNode(Node node)
addNode in interface LoadBalancernode - the new node in cluster.public String connection(String exoId)
connection in interface LoadBalancerexoId - the id of client.public List<String> getAliveNodesURL()
getAliveNodesURL in interface LoadBalancerpublic boolean release(String exoId)
release in interface LoadBalancerexoId - client id.public void removeNode(String id)
removeNode in interface LoadBalancerid - the ID of cometd node.public void start()
start in interface org.picocontainer.Startablepublic void stop()
stop in interface org.picocontainer.Startablepublic void addPlugin(org.exoplatform.container.component.ComponentPlugin plugin)
Copyright © 2003–2019 eXo Platform SAS. All rights reserved.