org.exoplatform.ws.frameworks.cometd.loadbalancer
Interface LoadBalancer

All Known Implementing Classes:
LoadBalancerImpl

public interface LoadBalancer

Created by The eXo Platform SAS.

Version:
$Id: $
Author:
Vitaly Parfonov

Method Summary
 void addNode(Node node)
          Add new node for cometd connection.
 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.
 

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

getAliveNodesURL

List<String> getAliveNodesURL()
Returns:
URLs of all cometd nodes.

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.


Copyright © 2009 eXo Platform SAS. All Rights Reserved.