org.codehaus.wadi.impl
Class RedirectingRelocater

java.lang.Object
  extended byorg.codehaus.wadi.impl.AbstractRelocater
      extended byorg.codehaus.wadi.impl.RedirectingRelocater
All Implemented Interfaces:
Relocater, RequestRelocater

public class RedirectingRelocater
extends AbstractRelocater
implements RequestRelocater

Relocate the request to its state, by redirecting it to another node. This is only possible if, for example, the load balancer is using routing information to decide which node to dispatch stateful requests to. If this is the case, we may be able rewrite this to achieve our desired effect.

Version:
$Revision: 1430 $
Author:
Jules Gosnell

Field Summary
 
Fields inherited from class org.codehaus.wadi.impl.AbstractRelocater
_config
 
Constructor Summary
RedirectingRelocater()
           
 
Method Summary
 Contextualiser getTop()
           
 boolean relocate(InvocationContext invocationContext, String name, Immoter immoter, Sync motionLock)
          Either relocate the request to the session by proxying/redirection, or the session to the request, by migration...
 void setTop(Contextualiser top)
           
 
Methods inherited from class org.codehaus.wadi.impl.AbstractRelocater
destroy, init
 
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.Relocater
destroy, init
 

Constructor Detail

RedirectingRelocater

public RedirectingRelocater()
Method Detail

relocate

public boolean relocate(InvocationContext invocationContext,
                        String name,
                        Immoter immoter,
                        Sync motionLock)
                 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
Parameters:
invocationContext -
name -
immoter -
motionLock -
Returns:
- whether, or not, the request was contextualised
Throws:
InvocationException

setTop

public void setTop(Contextualiser top)

getTop

public Contextualiser getTop()


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