org.apache.geronimo.clustering.wadi
Class BasicWADISessionManager

java.lang.Object
  extended by org.apache.geronimo.clustering.wadi.BasicWADISessionManager
All Implemented Interfaces:
SessionManager, WADISessionManager, GBeanLifecycle

public class BasicWADISessionManager
extends Object
implements GBeanLifecycle, SessionManager, WADISessionManager

Version:
$Rev$ $Date$

Nested Class Summary
protected  class BasicWADISessionManager.ServiceSpaceListenerAdapter
           
protected  class BasicWADISessionManager.SessionListenerAdapter
           
 
Field Summary
protected  org.codehaus.wadi.replication.strategy.BackingStrategyFactory backingStrategyFactory
           
protected  ClassLoader cl
           
protected  WADISessionManagerConfigInfo configInfo
           
static String GBEAN_ATTR_WADI_CONFIG_INFO
           
static String GBEAN_REF_BACKING_STRATEGY_FACTORY
           
static String GBEAN_REF_CLUSTER
           
static String GBEAN_REF_SERVICE_HOLDERS
           
 
Constructor Summary
BasicWADISessionManager(ClassLoader cl, WADISessionManagerConfigInfo configInfo, WADICluster cluster, org.codehaus.wadi.replication.strategy.BackingStrategyFactory backingStrategyFactory, Collection<ClusteredServiceHolder> serviceHolders)
           
 
Method Summary
 Session createSession(String sessionId)
           
 void doFail()
           
 void doStart()
           
 void doStop()
           
 Cluster getCluster()
           
 org.codehaus.wadi.core.manager.Manager getManager()
           
 Node getNode()
           
 Set<Node> getRemoteNodes()
           
 org.codehaus.wadi.servicespace.ServiceSpace getServiceSpace()
           
protected  Node mapToNode(org.codehaus.wadi.group.Peer peer)
           
protected  Set<Node> mapToNodes(Set<org.codehaus.wadi.group.Peer> peers)
           
protected  org.codehaus.wadi.aop.replication.AOPStackContext newAOPStackContext(org.codehaus.wadi.group.Dispatcher underlyingDisp, org.codehaus.wadi.servicespace.ServiceSpaceName serviceSpaceName)
           
protected  org.codehaus.wadi.core.assembler.StackContext newStackContext(org.codehaus.wadi.group.Dispatcher underlyingDisp, org.codehaus.wadi.servicespace.ServiceSpaceName serviceSpaceName)
           
protected  void notifyInboundSessionMigration(org.codehaus.wadi.core.session.Session session)
           
protected  void notifyOutboundSessionMigration(org.codehaus.wadi.core.session.Session session)
           
protected  void notifySessionDestruction(org.codehaus.wadi.core.session.Session session)
           
protected  void registerClusteredServices()
           
 void registerListener(SessionListener listener)
           
 void registerSessionManagerListener(SessionManagerListener listener)
           
 void unregisterListener(SessionListener listener)
           
 void unregisterSessionManagerListener(SessionManagerListener listener)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

cl

protected final ClassLoader cl

configInfo

protected final WADISessionManagerConfigInfo configInfo

backingStrategyFactory

protected final org.codehaus.wadi.replication.strategy.BackingStrategyFactory backingStrategyFactory

GBEAN_ATTR_WADI_CONFIG_INFO

public static final String GBEAN_ATTR_WADI_CONFIG_INFO
See Also:
Constant Field Values

GBEAN_REF_CLUSTER

public static final String GBEAN_REF_CLUSTER
See Also:
Constant Field Values

GBEAN_REF_BACKING_STRATEGY_FACTORY

public static final String GBEAN_REF_BACKING_STRATEGY_FACTORY
See Also:
Constant Field Values

GBEAN_REF_SERVICE_HOLDERS

public static final String GBEAN_REF_SERVICE_HOLDERS
See Also:
Constant Field Values
Constructor Detail

BasicWADISessionManager

public BasicWADISessionManager(@ParamSpecial(type=classLoader)
                               ClassLoader cl,
                               @ParamAttribute(name="wadiConfigInfo")
                               WADISessionManagerConfigInfo configInfo,
                               @ParamReference(name="Cluster")
                               WADICluster cluster,
                               @ParamReference(name="BackingStrategyFactory")
                               org.codehaus.wadi.replication.strategy.BackingStrategyFactory backingStrategyFactory,
                               @ParamReference(name="ServiceHolders")
                               Collection<ClusteredServiceHolder> serviceHolders)
Method Detail

doStart

public void doStart()
             throws Exception
Specified by:
doStart in interface GBeanLifecycle
Throws:
Exception

doStop

public void doStop()
            throws Exception
Specified by:
doStop in interface GBeanLifecycle
Throws:
Exception

doFail

public void doFail()
Specified by:
doFail in interface GBeanLifecycle

createSession

public Session createSession(String sessionId)
                      throws SessionAlreadyExistException
Specified by:
createSession in interface SessionManager
Throws:
SessionAlreadyExistException

getManager

public org.codehaus.wadi.core.manager.Manager getManager()
Specified by:
getManager in interface WADISessionManager

getCluster

public Cluster getCluster()
Specified by:
getCluster in interface SessionManager

getNode

public Node getNode()
Specified by:
getNode in interface SessionManager

getRemoteNodes

public Set<Node> getRemoteNodes()
Specified by:
getRemoteNodes in interface SessionManager

registerListener

public void registerListener(SessionListener listener)
Specified by:
registerListener in interface SessionManager

unregisterListener

public void unregisterListener(SessionListener listener)
Specified by:
unregisterListener in interface SessionManager

registerSessionManagerListener

public void registerSessionManagerListener(SessionManagerListener listener)
Specified by:
registerSessionManagerListener in interface SessionManager

unregisterSessionManagerListener

public void unregisterSessionManagerListener(SessionManagerListener listener)
Specified by:
unregisterSessionManagerListener in interface SessionManager

getServiceSpace

public org.codehaus.wadi.servicespace.ServiceSpace getServiceSpace()
Specified by:
getServiceSpace in interface WADISessionManager

newStackContext

protected org.codehaus.wadi.core.assembler.StackContext newStackContext(org.codehaus.wadi.group.Dispatcher underlyingDisp,
                                                                        org.codehaus.wadi.servicespace.ServiceSpaceName serviceSpaceName)

newAOPStackContext

protected org.codehaus.wadi.aop.replication.AOPStackContext newAOPStackContext(org.codehaus.wadi.group.Dispatcher underlyingDisp,
                                                                               org.codehaus.wadi.servicespace.ServiceSpaceName serviceSpaceName)

registerClusteredServices

protected void registerClusteredServices()
                                  throws org.codehaus.wadi.servicespace.ServiceAlreadyRegisteredException
Throws:
org.codehaus.wadi.servicespace.ServiceAlreadyRegisteredException

mapToNodes

protected Set<Node> mapToNodes(Set<org.codehaus.wadi.group.Peer> peers)
                        throws AssertionError
Throws:
AssertionError

mapToNode

protected Node mapToNode(org.codehaus.wadi.group.Peer peer)
                  throws AssertionError
Throws:
AssertionError

notifyInboundSessionMigration

protected void notifyInboundSessionMigration(org.codehaus.wadi.core.session.Session session)

notifyOutboundSessionMigration

protected void notifyOutboundSessionMigration(org.codehaus.wadi.core.session.Session session)

notifySessionDestruction

protected void notifySessionDestruction(org.codehaus.wadi.core.session.Session session)


Copyright © 2003-2010 The Apache Geronimo development community. All Rights Reserved.