Interface LoadBalancer
- All Known Implementing Classes:
LoadBalancerImpl
public interface LoadBalancer
Created by The eXo Platform SAS.
- Version:
- $Id: $
- Author:
- Vitaly Parfonov
-
Method Summary
Modifier and TypeMethodDescriptionvoidAdd new node for cometd connection.connection(String exoId) booleanRelease connection on the node there client connected.voidremoveNode(String id) Remove cometd node.
-
Method Details
-
connection
- Parameters:
exoId- the id of client.- Returns:
- URL of cometd node.
-
release
Release connection on the node there client connected.- Parameters:
exoId- client id.- Returns:
- true if release successful
-
getAliveNodesURL
- Returns:
- URLs of all cometd nodes.
-
addNode
Add new node for cometd connection.- Parameters:
node- the new node in cluster.
-
removeNode
Remove cometd node.- Parameters:
id- the ID of cometd node.
-