org.objectweb.jonas.ha.interceptor
Class HACurrentContext

java.lang.Object
  extended byorg.objectweb.jonas.ha.interceptor.HACurrentContext

public class HACurrentContext
extends java.lang.Object

This is the class stored in the Thread local variable of HACurrent class and represents the thread associated HA context

Author:
Francisco Perez-Sorrosal (fpsorrosal@no-spam@fi.upm.es), Alberto Paz-Jimenez (apaz@no-spam@fi.upm.es)

Constructor Summary
HACurrentContext()
          Constructor
 
Method Summary
 org.objectweb.carol.cmi.ha.RequestId getCurrentReq()
          Get the current request
 org.objectweb.carol.cmi.ha.RequestId getNextReq()
          Get the next request
 org.objectweb.carol.cmi.ha.RequestId getRootReq()
          Get the root request
 boolean isReplicate()
          Get if it is necessary to replicate
 void setCurrentReq(org.objectweb.carol.cmi.ha.RequestId currentReq)
          Set the current request
 void setNextReq(org.objectweb.carol.cmi.ha.RequestId nextReq)
          Set the next request
 void setReplicate(boolean replicate)
          Set if it is necessary to replicate
 void setRootReq(org.objectweb.carol.cmi.ha.RequestId rootReq)
          Set the root request
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HACurrentContext

public HACurrentContext()
Constructor

Method Detail

getCurrentReq

public org.objectweb.carol.cmi.ha.RequestId getCurrentReq()
Get the current request

Returns:
the current request

setCurrentReq

public void setCurrentReq(org.objectweb.carol.cmi.ha.RequestId currentReq)
Set the current request


getNextReq

public org.objectweb.carol.cmi.ha.RequestId getNextReq()
Get the next request

Returns:
the next request

setNextReq

public void setNextReq(org.objectweb.carol.cmi.ha.RequestId nextReq)
Set the next request


getRootReq

public org.objectweb.carol.cmi.ha.RequestId getRootReq()
Get the root request

Returns:
the root request

setRootReq

public void setRootReq(org.objectweb.carol.cmi.ha.RequestId rootReq)
Set the root request

Parameters:
rootReq - the root request

isReplicate

public boolean isReplicate()
Get if it is necessary to replicate

Returns:
true if required

setReplicate

public void setReplicate(boolean replicate)
Set if it is necessary to replicate

Parameters:
replicate -