org.codehaus.wadi.core.contextualiser
Class HybridRelocater
java.lang.Object
org.codehaus.wadi.core.contextualiser.HybridRelocater
- All Implemented Interfaces:
- Relocater
public class HybridRelocater
- extends java.lang.Object
- implements Relocater
Combine various RelocationStrategies to produce a cleverer one
- Version:
- $Revision: 2540 $
- Author:
- Jules Gosnell
Method Summary |
protected boolean |
doRelocate(Invocation invocation,
java.lang.String name,
Immoter immoter,
boolean shuttingDown)
|
protected boolean |
handleInvocationRelocation(Invocation invocation,
MovePMToIMInvocation dm)
|
protected boolean |
handleSessionRelocation(Invocation invocation,
java.lang.String name,
Immoter immoter,
Envelope message,
MoveSMToIM req)
|
protected boolean |
handleUnknownSession(java.lang.String sessionName)
|
protected Motable |
mote(java.lang.String name,
Immoter immoter,
Motable emotable,
Emoter emoter)
|
protected org.codehaus.wadi.core.contextualiser.HybridRelocater.SMToIMEmoter |
newSessionRelocationEmoter()
|
protected Immoter |
newSessionRelocationImmoter(Invocation invocation,
Immoter immoter)
|
boolean |
relocate(Invocation invocation,
java.lang.String name,
Immoter immoter,
boolean shuttingDown)
Either relocate the request to the session by proxying/redirection, or the session to the request, by migration... |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HybridRelocater
public HybridRelocater(ServiceSpace serviceSpace,
PartitionManager partitionManager,
ReplicationManager replicationManager)
relocate
public boolean relocate(Invocation invocation,
java.lang.String name,
Immoter immoter,
boolean shuttingDown)
throws InvocationException
- Description copied from interface:
Relocater
- Either relocate the request to the session by proxying/redirection, or the session to the request, by migration...
- Specified by:
relocate
in interface Relocater
- Returns:
- - whether, or not, the request was contextualised
- Throws:
InvocationException
doRelocate
protected boolean doRelocate(Invocation invocation,
java.lang.String name,
Immoter immoter,
boolean shuttingDown)
throws java.lang.Exception
- Throws:
java.lang.Exception
handleInvocationRelocation
protected boolean handleInvocationRelocation(Invocation invocation,
MovePMToIMInvocation dm)
throws InvocationException
- Throws:
InvocationException
handleUnknownSession
protected boolean handleUnknownSession(java.lang.String sessionName)
handleSessionRelocation
protected boolean handleSessionRelocation(Invocation invocation,
java.lang.String name,
Immoter immoter,
Envelope message,
MoveSMToIM req)
throws InvocationException
- Throws:
InvocationException
mote
protected Motable mote(java.lang.String name,
Immoter immoter,
Motable emotable,
Emoter emoter)
newSessionRelocationImmoter
protected Immoter newSessionRelocationImmoter(Invocation invocation,
Immoter immoter)
newSessionRelocationEmoter
protected org.codehaus.wadi.core.contextualiser.HybridRelocater.SMToIMEmoter newSessionRelocationEmoter()
Copyright © 2011. All Rights Reserved.