|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface BalancerAlgorithm
The BalancerAlgortihm interface exposes the methods implemented by decision making algorithms
| Method Summary | |
|---|---|
void |
assignToNode(java.lang.String id,
SIPNode node)
Assign callid to node |
BalancerContext |
getBalancerContext()
Get the balancer context, which exposes useful information such as the available AS nodes at the moment or the listening points if you need the local address. |
java.util.Properties |
getProperties()
Get the properties used to load the load balancer. |
void |
init()
Lifecycle method. |
void |
jvmRouteSwitchover(java.lang.String fromJvmRoute,
java.lang.String toJvmRoute)
Move load from one node to another to follow mod_jk/mod_cluster |
void |
nodeAdded(SIPNode node)
Notify the algorithm when a node is added. |
void |
nodeRemoved(SIPNode node)
Notifying the algorithm when a node is dead. |
SIPNode |
processAssignedExternalRequest(javax.sip.message.Request request,
SIPNode assignedNode)
|
SIPNode |
processExternalRequest(javax.sip.message.Request request)
When a request comes it is passed to the algorithm. |
void |
processExternalResponse(javax.sip.message.Response response)
Allow algorithms to process responses |
SIPNode |
processHttpRequest(org.jboss.netty.handler.codec.http.HttpRequest request)
Handle HttpRequests here. |
void |
processInternalRequest(javax.sip.message.Request request)
|
void |
processInternalResponse(javax.sip.message.Response response)
|
void |
setProperties(java.util.Properties properties)
Also allows to change the properties completely when it makes sense |
void |
stop()
Lifecycle method. |
| Method Detail |
|---|
SIPNode processExternalRequest(javax.sip.message.Request request)
request -
SIPNode processAssignedExternalRequest(javax.sip.message.Request request,
SIPNode assignedNode)
void processInternalRequest(javax.sip.message.Request request)
SIPNode processHttpRequest(org.jboss.netty.handler.codec.http.HttpRequest request)
request -
void processExternalResponse(javax.sip.message.Response response)
response - void processInternalResponse(javax.sip.message.Response response)
void nodeRemoved(SIPNode node)
node - void nodeAdded(SIPNode node)
node - java.util.Properties getProperties()
void setProperties(java.util.Properties properties)
properties - BalancerContext getBalancerContext()
void jvmRouteSwitchover(java.lang.String fromJvmRoute,
java.lang.String toJvmRoute)
fromJvmRoute - toJvmRoute - void init()
void stop()
void assignToNode(java.lang.String id,
SIPNode node)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||