org.apache.geronimo.clustering.wadi
Class BasicWADISessionManager

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

public class BasicWADISessionManager
extends Object
implements org.apache.geronimo.gbean.GBeanLifecycle, org.apache.geronimo.clustering.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
 org.apache.geronimo.clustering.Session createSession(String sessionId)
           
 void doFail()
           
 void doStart()
           
 void doStop()
           
 org.apache.geronimo.clustering.Cluster getCluster()
           
 org.codehaus.wadi.core.manager.Manager getManager()
           
 org.apache.geronimo.clustering.Node getNode()
           
 Set<org.apache.geronimo.clustering.Node> getRemoteNodes()
           
 org.codehaus.wadi.servicespace.ServiceSpace getServiceSpace()
           
protected  org.apache.geronimo.clustering.Node mapToNode(org.codehaus.wadi.group.Peer peer)
           
protected  Set<org.apache.geronimo.clustering.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(org.apache.geronimo.clustering.SessionListener listener)
           
 void registerSessionManagerListener(org.apache.geronimo.clustering.SessionManagerListener listener)
           
 void unregisterListener(org.apache.geronimo.clustering.SessionListener listener)
           
 void unregisterSessionManagerListener(org.apache.geronimo.clustering.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 org.apache.geronimo.gbean.GBeanLifecycle
Throws:
Exception

doStop

public void doStop()
            throws Exception
Specified by:
doStop in interface org.apache.geronimo.gbean.GBeanLifecycle
Throws:
Exception

doFail

public void doFail()
Specified by:
doFail in interface org.apache.geronimo.gbean.GBeanLifecycle

createSession

public org.apache.geronimo.clustering.Session createSession(String sessionId)
                                                     throws org.apache.geronimo.clustering.SessionAlreadyExistException
Specified by:
createSession in interface org.apache.geronimo.clustering.SessionManager
Throws:
org.apache.geronimo.clustering.SessionAlreadyExistException

getManager

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

getCluster

public org.apache.geronimo.clustering.Cluster getCluster()
Specified by:
getCluster in interface org.apache.geronimo.clustering.SessionManager

getNode

public org.apache.geronimo.clustering.Node getNode()
Specified by:
getNode in interface org.apache.geronimo.clustering.SessionManager

getRemoteNodes

public Set<org.apache.geronimo.clustering.Node> getRemoteNodes()
Specified by:
getRemoteNodes in interface org.apache.geronimo.clustering.SessionManager

registerListener

public void registerListener(org.apache.geronimo.clustering.SessionListener listener)
Specified by:
registerListener in interface org.apache.geronimo.clustering.SessionManager

unregisterListener

public void unregisterListener(org.apache.geronimo.clustering.SessionListener listener)
Specified by:
unregisterListener in interface org.apache.geronimo.clustering.SessionManager

registerSessionManagerListener

public void registerSessionManagerListener(org.apache.geronimo.clustering.SessionManagerListener listener)
Specified by:
registerSessionManagerListener in interface org.apache.geronimo.clustering.SessionManager

unregisterSessionManagerListener

public void unregisterSessionManagerListener(org.apache.geronimo.clustering.SessionManagerListener listener)
Specified by:
unregisterSessionManagerListener in interface org.apache.geronimo.clustering.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<org.apache.geronimo.clustering.Node> mapToNodes(Set<org.codehaus.wadi.group.Peer> peers)
                                                       throws AssertionError
Throws:
AssertionError

mapToNode

protected org.apache.geronimo.clustering.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-2013 The Apache Geronimo development community. All Rights Reserved.