org.codehaus.wadi.core.contextualiser
Class ClusterContextualiser
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.ClusterContextualiser
- All Implemented Interfaces:
- Contextualiser, Lifecycle
public class ClusterContextualiser
- extends AbstractSharedContextualiser
- Version:
- $Revision: 2540 $
- Author:
- Jules Gosnell
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ClusterContextualiser
public ClusterContextualiser(Contextualiser next,
Relocater relocater,
PartitionManager partitionManager,
StateManager stateManager,
ReplicationManager replicationManager,
java.util.concurrent.atomic.AtomicBoolean shuttingDown)
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
getDemoter
public Immoter getDemoter(java.lang.String name,
Motable motable)
- Description copied from interface:
Contextualiser
- Return an immoter to the first Contextualiser below us, which would be happy to accept this Motable -
in other words - would not evict() it.
- Specified by:
getDemoter
in interface Contextualiser
- Overrides:
getDemoter
in class AbstractSharedContextualiser
- Parameters:
name
- - uid of the Motablemotable
- - the Motable in question
- Returns:
- - a Demoter - a delegate capable of arranging immotion into the correct Contextualiser
getSharedDemoter
public Immoter getSharedDemoter()
- Description copied from interface:
Contextualiser
- Return an Immoter to the first SharedContextualiser below us.
- Specified by:
getSharedDemoter
in interface Contextualiser
- Overrides:
getSharedDemoter
in class AbstractSharedContextualiser
- Returns:
- the Immoter
handle
protected boolean handle(Invocation invocation,
java.lang.String id,
Immoter immoter,
boolean exclusiveOnly)
throws InvocationException
- Overrides:
handle
in class AbstractMotingContextualiser
- Throws:
InvocationException
get
protected Motable get(java.lang.String id,
boolean exclusiveOnly)
- Specified by:
get
in class AbstractMotingContextualiser
Copyright © 2011. All Rights Reserved.