|
SonicMQ API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IBrokerContext
This interface provides information to an ILoadBalancer
implementation about broker's and their acceptors for use in
load balancing.
ILoadBalancer
Method Summary | |
---|---|
IBrokerContext[] |
getBrokerContexts()
Returns an array of IBrokerContext s that belong
to the same cluster as the broker represented by this IBrokerContext . |
IBrokerContext[] |
getBrokerContexts(boolean excludeWeightless)
Returns an array of IBrokerContext s that belong
to the same cluster as the broker represented by this IBrokerContext
optionally excluding those that are not assigned any load balancing weight. |
java.lang.String |
getBrokerName()
Gets the name of the broker represented by this IBrokerContext. |
java.lang.String |
getClusterName()
Returns the name of the cluster this broker belongs to if it is part of a cluster. |
int |
getLoadBalancingWeight()
Gets the weight assigned to the broker for load balancing purposes. |
java.lang.String |
getRedirectURLs(java.lang.String acceptorName)
Gets a list of urls that match the given acceptor name for the broker represented by this context. |
Method Detail |
---|
java.lang.String getBrokerName()
java.lang.String getRedirectURLs(java.lang.String acceptorName)
java.lang.String getClusterName()
int getLoadBalancingWeight()
IBrokerContext[] getBrokerContexts()
IBrokerContext
s that belong
to the same cluster as the broker represented by this IBrokerContext
.
IBrokerContext[] getBrokerContexts(boolean excludeWeightless)
IBrokerContext
s that belong
to the same cluster as the broker represented by this IBrokerContext
optionally excluding those that are not assigned any load balancing weight.
Note that since acceptor information and cluster memberships can change
during the lifecycle of the load balancer, implementations are encouraged
to get this information often if not on each loadbalancing call.
|
SonicMQ API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |