|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.jonas.ha.interceptor.HACurrentDelegateImpl
This class handles the HAContext/Thread association
Constructor Summary | |
HACurrentDelegateImpl()
|
Method Summary | |
static HACurrentDelegateImpl |
getCurrent()
Returns the unique instance |
org.objectweb.carol.cmi.ha.RequestId |
getCurrentReq()
Get the current request in the current context if exists |
HAContext |
getHAContext()
Returns the HA context associated with the current thread |
org.objectweb.carol.cmi.ha.RequestId |
getNextReq()
Get the next request in the current context if exists |
org.objectweb.carol.cmi.ha.RequestId |
getRootReq()
Get the root request in the current context if exists |
boolean |
replicate()
Get the if it is necessary to replicate in the current context if exists |
void |
setCurrentReq(org.objectweb.carol.cmi.ha.RequestId currentReq)
Set the current request in the current context if exists |
void |
setHAContext(HAContext ctx)
Associates a HA context with the current thread |
void |
setNextReq(org.objectweb.carol.cmi.ha.RequestId nextReq)
Set the next request in the current context if exists |
void |
setReplicate(boolean replicate)
Set the if it is necessary to replicate in the current context if exists |
void |
setRootReq(org.objectweb.carol.cmi.ha.RequestId nextReq)
Set the root request in the current context if exists |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public HACurrentDelegateImpl()
Method Detail |
public static HACurrentDelegateImpl getCurrent()
public void setHAContext(HAContext ctx)
ctx
- HAcontext to associate to the current threadpublic HAContext getHAContext()
public void setCurrentReq(org.objectweb.carol.cmi.ha.RequestId currentReq)
currentReq
- the current requestpublic org.objectweb.carol.cmi.ha.RequestId getCurrentReq()
public void setNextReq(org.objectweb.carol.cmi.ha.RequestId nextReq)
setNextReq
in interface org.objectweb.carol.cmi.ha.interceptor.HACurrentDelegate
nextReq
- the next requestpublic org.objectweb.carol.cmi.ha.RequestId getNextReq()
public void setRootReq(org.objectweb.carol.cmi.ha.RequestId nextReq)
nextReq
- the next requestpublic org.objectweb.carol.cmi.ha.RequestId getRootReq()
public void setReplicate(boolean replicate)
replicate
- true if it is necessary the replication procedurepublic boolean replicate()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |