|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
LoadBalancer
provides an API to enable load balancing logic to be used by the
AEF SessionServer
.
Classes implementing the LoadBalancer
interface may be used
as the load balancing implementation by overriding the default LoadBalancer
class name specified in the
classes.properties
file.
Method Summary | |
---|---|
void |
factoryAdded(com.ibm.retail.AEF.factory.AEFSessionFactoryInfo factoryInfo)
Called by the session server when a factory has been added. |
void |
factoryRemoved(com.ibm.retail.AEF.factory.AEFSessionFactoryInfo factoryInfo)
Called by the session server when a factory has been removed. |
void |
factoryUpdated(com.ibm.retail.AEF.factory.AEFSessionFactoryInfo factoryInfo)
Called by the session server when factory info has been updated. |
com.ibm.retail.AEF.session.AEFSession |
getAvailableSession(com.ibm.retail.AEF.session.SessionParameters parms)
Get an available session using a factory selected by the LoadBalancer. |
com.ibm.retail.AEF.server.SessionServer |
getSessionServer()
Gets the SessionServer which owns this load balancer. |
void |
setSessionServer(com.ibm.retail.AEF.server.SessionServer server)
Sets the SessionServer which owns this load balancer. |
Method Detail |
public void factoryAdded(com.ibm.retail.AEF.factory.AEFSessionFactoryInfo factoryInfo)
factoryInfo
- AEFSessionFactoryInfopublic void factoryRemoved(com.ibm.retail.AEF.factory.AEFSessionFactoryInfo factoryInfo)
factoryInfo
- AEFSessionFactoryInfopublic void factoryUpdated(com.ibm.retail.AEF.factory.AEFSessionFactoryInfo factoryInfo)
factoryInfo
- AEFSessionFactoryInfopublic com.ibm.retail.AEF.server.SessionServer getSessionServer() throws java.rmi.RemoteException
java.rmi.RemoteException
- if remote access failspublic void setSessionServer(com.ibm.retail.AEF.server.SessionServer server) throws java.rmi.RemoteException
java.rmi.RemoteException
- if remote access failspublic com.ibm.retail.AEF.session.AEFSession getAvailableSession(com.ibm.retail.AEF.session.SessionParameters parms) throws AEFException
Pluggable LoadBalancer implementations may implement a variety of load balancing algorithms to distribute requests.
The SessionServer
invokes this method whenever a client request for a
an available AEFSession is received.
The SessionServer
defers all factory selection to the LoadBalancer.
If no factory can satisfy the request, an exception is thrown.
parms
- SessionParameters object contains all parms for the session as
name-value pairs.
AEFException
- if a session can not be accessed
Among the possible AEFException error codes are:
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |