org.codehaus.wadi.impl
Class AbstractSharedContextualiser

java.lang.Object
  extended byorg.codehaus.wadi.impl.AbstractContextualiser
      extended byorg.codehaus.wadi.impl.AbstractChainedContextualiser
          extended byorg.codehaus.wadi.impl.AbstractMotingContextualiser
              extended byorg.codehaus.wadi.impl.AbstractSharedContextualiser
All Implemented Interfaces:
Contextualiser, Lifecycle
Direct Known Subclasses:
ClusterContextualiser, GridStateContextualiser, SharedStoreContextualiser

public abstract class AbstractSharedContextualiser
extends AbstractMotingContextualiser


Field Summary
 
Fields inherited from class org.codehaus.wadi.impl.AbstractMotingContextualiser
_clean, _config, _locker
 
Fields inherited from class org.codehaus.wadi.impl.AbstractChainedContextualiser
_next
 
Fields inherited from class org.codehaus.wadi.impl.AbstractContextualiser
_log
 
Constructor Summary
AbstractSharedContextualiser(Contextualiser next, Locker locker, boolean clean)
           
 
Method Summary
 Immoter getDemoter(String name, Motable motable)
          Return a Demoter to the first Contextualiser which would be happy to accept this Motable - in other words - would not evict() it.
 int getLocalSessionCount()
           
 boolean isExclusive()
           
 
Methods inherited from class org.codehaus.wadi.impl.AbstractMotingContextualiser
contextualise, destroy, get, getEmoter, getImmoter, getPromoter, getSharedDemoter, handle, init, promote, promoteToExclusive
 
Methods inherited from class org.codehaus.wadi.impl.AbstractChainedContextualiser
findRelevantSessionNames, setLastAccessedTime, setMaxInactiveInterval, start, stop
 
Methods inherited from class org.codehaus.wadi.impl.AbstractContextualiser
getStartInfo, getStopInfo
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.codehaus.wadi.Contextualiser
load
 

Constructor Detail

AbstractSharedContextualiser

public AbstractSharedContextualiser(Contextualiser next,
                                    Locker locker,
                                    boolean clean)
Method Detail

getDemoter

public Immoter getDemoter(String name,
                          Motable motable)
Description copied from interface: Contextualiser
Return a Demoter to the first Contextualiser which would be happy to accept this Motable - in other words - would not evict() it.

Parameters:
name - - uid of the Motable
motable - - the Motable in question
Returns:
- a Demoter - a delegate capable of arranging immotion into the correct Contextualiser

isExclusive

public boolean isExclusive()

getLocalSessionCount

public int getLocalSessionCount()


Copyright © 2004-2006 Core Developers Network Ltd.. All Rights Reserved.