ClusterProtocolLoadBalancer
public class DefaultClusterLoadBalancer extends java.lang.Object implements ClusterProtocolLoadBalancer
Constructor | Description |
---|---|
DefaultClusterLoadBalancer() |
Modifier and Type | Method | Description |
---|---|---|
void |
addNode(Protocol item) |
This method is to add just connected Cluster Protocol Node
to load balancing strategy.
|
Protocol |
chooseNode(Message request) |
This method is to apply load balancing strategy on available cluster nodes.
|
void |
clear() |
This method is called when Cluster Protocol is being closed.
|
void |
configure(ConnectionConfiguration config) |
This method is to choose and apply load balancer specific options
from the cluster connection configuration.
|
void |
removeNode(Protocol item) |
This method is to remove Cluster Protocol Node from load balancing strategy.
Its called when node is removed from the cluster, or its protocol connection is lost. |
public void configure(ConnectionConfiguration config)
ClusterProtocolLoadBalancer
configure
in interface ClusterProtocolLoadBalancer
config
- connection configuration from the Cluster Protocol base Endpoint.ClusterProtocol.setEndpoint(Endpoint)
public Protocol chooseNode(Message request)
ClusterProtocolLoadBalancer
chooseNode
in interface ClusterProtocolLoadBalancer
request
- user specified protocol message for sending (may be null
).public void addNode(Protocol item)
ClusterProtocolLoadBalancer
addNode
in interface ClusterProtocolLoadBalancer
item
- cluster protocol node.public void removeNode(Protocol item)
ClusterProtocolLoadBalancer
removeNode
in interface ClusterProtocolLoadBalancer
item
- cluster protocol node.public void clear()
ClusterProtocolLoadBalancer
clear
in interface ClusterProtocolLoadBalancer
Send comments on this topicTechpubs.webadmin@genesys.com.
Document version: 9.0.006.00
Copyright © 2006–2019 Genesys Telecommunications Laboratories, Inc. All rights reserved.