|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.multisoftgroup.jerry.webchat.managers.balancer.OperatorBalancer
public abstract class OperatorBalancer
This class is the abstract base class for all conventional Operator Load Balancers.
Extend this class, implement the nextAvailableOperator method,
and add your load distribution algorithm.
The nextAvailableOperator method
returns next available operator during chat creation.
An Operator Load Balancer should be defined in jerry.xml config file:
<operatorBalancer class="classname" />
FirstAvailableOperator,
BalancedLoading| Constructor Summary | |
|---|---|
OperatorBalancer()
|
|
| Method Summary | |
|---|---|
protected int |
getLoading(Operator operator)
This method allows to get an number of active chats (at a current moment) for the specified operator |
protected boolean |
isOperatorAvailable(Operator operator)
This method allows to check if the operator has available status on Jabber server |
abstract Operator |
nextAvailableOperator(JerryAccount account)
The implementation of this method should return next available operator for the specified account. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public OperatorBalancer()
| Method Detail |
|---|
public abstract Operator nextAvailableOperator(JerryAccount account)
account - Jerry account in which the chat is created
protected boolean isOperatorAvailable(Operator operator)
operator - Operator to check
protected int getLoading(Operator operator)
operator - Operator to check
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||