org.codehaus.wadi.core.manager
Class ClusteredManager
java.lang.Object
org.codehaus.wadi.core.manager.StandardManager
org.codehaus.wadi.core.manager.DistributableManager
org.codehaus.wadi.core.manager.ClusteredManager
- All Implemented Interfaces:
- Lifecycle, Manager
public class ClusteredManager
- extends DistributableManager
- Version:
- $Revision: 2412 $
- Author:
- Jules Gosnell
Fields inherited from interface org.codehaus.wadi.core.manager.Manager |
NAME |
Method Summary |
boolean |
contextualise(Invocation invocation)
Contextualise an Invocation - somehow colocate the Invocation and the relevant Session within the same
JVM somewhere in the Cluster, give the Invocation the Session and invoke() it. |
protected void |
onSessionDestruction(Session session)
|
void |
stop()
|
protected boolean |
validateSessionName(java.lang.String name)
|
Methods inherited from class org.codehaus.wadi.core.manager.StandardManager |
create, createSession, createWithName, destroy, getMaxInactiveInterval, getSessionIdFactory, init, onSessionCreation, processStateful, processStateless, setMaxInactiveInterval, start, triggerCallback |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ClusteredManager
public ClusteredManager(StateManager stateManager,
PartitionManager partitionManager,
SessionFactory sessionFactory,
SessionIdFactory sessionIdFactory,
Contextualiser contextualiser,
ConcurrentMotableMap sessionMap,
Router router,
SessionMonitor sessionMonitor,
InvocationProxy proxy)
stop
public void stop()
throws java.lang.Exception
- Specified by:
stop
in interface Lifecycle
- Overrides:
stop
in class StandardManager
- Throws:
java.lang.Exception
onSessionDestruction
protected void onSessionDestruction(Session session)
- Overrides:
onSessionDestruction
in class StandardManager
validateSessionName
protected boolean validateSessionName(java.lang.String name)
- Overrides:
validateSessionName
in class StandardManager
contextualise
public boolean contextualise(Invocation invocation)
throws InvocationException
- Description copied from interface:
Manager
- Contextualise an Invocation - somehow colocate the Invocation and the relevant Session within the same
JVM somewhere in the Cluster, give the Invocation the Session and invoke() it. The Manager possesses
a stack of Contextualisers, down which the Invocation is passed in order to achieve this.
- Specified by:
contextualise
in interface Manager
- Overrides:
contextualise
in class StandardManager
- Throws:
InvocationException
Copyright © 2011. All Rights Reserved.