org.codehaus.wadi.impl
Class HybridRelocater
java.lang.Object
org.codehaus.wadi.impl.AbstractRelocater
org.codehaus.wadi.impl.HybridRelocater
- All Implemented Interfaces:
- Relocater
- Direct Known Subclasses:
- WebHybridRelocater
- public class HybridRelocater
- extends AbstractRelocater
Combine various RelocationStrategies to produce a cleverer one
- Version:
- $Revision: 1430 $
- Author:
- Jules Gosnell
Constructor Summary |
HybridRelocater(long resTimeout,
long ackTimeout,
boolean sessionOrRequestPreferred)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
_log
protected final Log _log
_requestHandOverTimeout
protected final long _requestHandOverTimeout
- See Also:
- Constant Field Values
_resTimeout
protected final long _resTimeout
_ackTimeout
protected final long _ackTimeout
_sessionOrRequestPreferred
protected final boolean _sessionOrRequestPreferred
_lockLog
protected final Log _lockLog
_shuttingDown
protected SynchronizedBoolean _shuttingDown
_dispatcher
protected Dispatcher _dispatcher
_nodeName
protected String _nodeName
_contextualiser
protected Contextualiser _contextualiser
_proxy
protected InvocationProxy _proxy
HybridRelocater
public HybridRelocater(long resTimeout,
long ackTimeout,
boolean sessionOrRequestPreferred)
init
public void init(RelocaterConfig config)
- Specified by:
init
in interface Relocater
- Overrides:
init
in class AbstractRelocater
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...
- Parameters:
invocationContext
- name
- immoter
- motionLock
-
- Returns:
- - whether, or not, the request was contextualised
- Throws:
InvocationException
onMessage
public void onMessage(ObjectMessage om,
RelocationRequest request)
relocateSessionToThem
protected void relocateSessionToThem(ObjectMessage om,
String sessionName,
String nodeName)
relocateRequestToUs
protected void relocateRequestToUs(ObjectMessage om,
String sessionName)
Copyright © 2004-2006 Core Developers Network Ltd.. All Rights Reserved.