org.codehaus.wadi.impl
Class DummyContextualiser

java.lang.Object
  extended byorg.codehaus.wadi.impl.AbstractContextualiser
      extended byorg.codehaus.wadi.impl.DummyContextualiser
All Implemented Interfaces:
Contextualiser, Lifecycle

public class DummyContextualiser
extends AbstractContextualiser

A Contextualiser that does no contextualising

Version:
$Revision: 1430 $
Author:
Jules Gosnell

Nested Class Summary
 class DummyContextualiser.DummyImmoter
           
 
Field Summary
protected  Evicter _evicter
           
protected  Immoter _immoter
           
 
Fields inherited from class org.codehaus.wadi.impl.AbstractContextualiser
_log
 
Constructor Summary
DummyContextualiser()
           
 
Method Summary
 boolean contextualise(InvocationContext invocationContext, String id, Immoter immoter, Sync motionLock, boolean exclusiveOnly)
           
 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.
 Evicter getEvicter()
           
 int getLocalSessionCount()
           
 Immoter getSharedDemoter()
           
 boolean isExclusive()
           
 void load(Emoter emoter, Immoter immoter)
           
 void promoteToExclusive(Immoter immoter)
           
 void setLastAccessedTime(Evictable evictable, long oldTime, long newTime)
           
 void setMaxInactiveInterval(Evictable evictable, int oldInterval, int newInterval)
           
 
Methods inherited from class org.codehaus.wadi.impl.AbstractContextualiser
destroy, findRelevantSessionNames, getStartInfo, getStopInfo, init, start, stop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_evicter

protected final Evicter _evicter

_immoter

protected final Immoter _immoter
Constructor Detail

DummyContextualiser

public DummyContextualiser()
Method Detail

contextualise

public boolean contextualise(InvocationContext invocationContext,
                             String id,
                             Immoter immoter,
                             Sync motionLock,
                             boolean exclusiveOnly)
                      throws InvocationException
Throws:
InvocationException

getEvicter

public Evicter getEvicter()

isExclusive

public boolean isExclusive()

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

getSharedDemoter

public Immoter getSharedDemoter()

promoteToExclusive

public void promoteToExclusive(Immoter immoter)

load

public void load(Emoter emoter,
                 Immoter immoter)

setLastAccessedTime

public void setLastAccessedTime(Evictable evictable,
                                long oldTime,
                                long newTime)

setMaxInactiveInterval

public void setMaxInactiveInterval(Evictable evictable,
                                   int oldInterval,
                                   int newInterval)

getLocalSessionCount

public int getLocalSessionCount()


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