org.codehaus.wadi.core.contextualiser
Class SharedStoreContextualiser
java.lang.Object
org.codehaus.wadi.core.contextualiser.AbstractChainedContextualiser
org.codehaus.wadi.core.contextualiser.AbstractMotingContextualiser
org.codehaus.wadi.core.contextualiser.AbstractSharedContextualiser
org.codehaus.wadi.core.contextualiser.SharedStoreContextualiser
- All Implemented Interfaces:
- Contextualiser, Lifecycle
public class SharedStoreContextualiser
- extends AbstractSharedContextualiser
A Contextualiser which stores its Contexts in a shared database via JDBC.
On shutdown of the cluster's last node, all extant sessions will be demoted to here.
On startup of the cluster's first node, all sessions stored here will be promoted upwards.
- Version:
- $Revision: 2373 $
- Author:
- Jules Gosnell
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SharedStoreContextualiser
public SharedStoreContextualiser(Contextualiser next,
Store store,
StateManager stateManager,
ReplicationManager replicationManager,
SessionMonitor sessionMonitor)
getImmoter
public Immoter getImmoter()
- Specified by:
getImmoter
in class AbstractMotingContextualiser
- Returns:
- - an Immoter that facilitates insertion of Motables into this Contextualiser's own store
getEmoter
public Emoter getEmoter()
- Specified by:
getEmoter
in class AbstractMotingContextualiser
- Returns:
- - an Emoter that facilitates removal of Motables from this Contextualiser's own store
get
protected Motable get(java.lang.String id,
boolean exclusiveOnly)
- Shared Contextualisers do nothing at runtime. They exist only to load data at startup and store it at shutdown.
- Specified by:
get
in class AbstractMotingContextualiser
load
protected void load(Emoter emoter,
Immoter immoter)
- Overrides:
load
in class AbstractSharedContextualiser
Copyright © 2011. All Rights Reserved.