Interface LoadBalancer
-
- All Known Implementing Classes:
LoadBalancerImpl
public interface LoadBalancerCreated by The eXo Platform SAS.- Version:
- $Id: $
- Author:
- Vitaly Parfonov
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddNode(Node node)Add new node for cometd connection.Stringconnection(String exoId)List<String>getAliveNodesURL()booleanrelease(String exoId)Release connection on the node there client connected.voidremoveNode(String id)Remove cometd node.
-
-
-
Method Detail
-
connection
String connection(String exoId)
- Parameters:
exoId- the id of client.- Returns:
- URL of cometd node.
-
release
boolean release(String exoId)
Release connection on the node there client connected.- Parameters:
exoId- client id.- Returns:
- true if release successful
-
addNode
void addNode(Node node)
Add new node for cometd connection.- Parameters:
node- the new node in cluster.
-
removeNode
void removeNode(String id)
Remove cometd node.- Parameters:
id- the ID of cometd node.
-
-