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: 2394 $
- 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,
org.codehaus.wadi.group.Envelope message,
MoveSMToIM req)
|
protected boolean |
handleUnknownSession(java.lang.String sessionName)
|
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,
org.codehaus.wadi.group.Envelope message,
MoveSMToIM req)
throws InvocationException
- Throws:
InvocationException
Copyright © 2008. All Rights Reserved.