org.objectweb.jonas.ha.interceptor
Class HACurrentContext

java.lang.Object
  extended by org.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
 java.util.Stack getRequests()
          Get the requests
 org.objectweb.carol.cmi.ha.ViewIdWrapper getViewIdWrapper()
           
 boolean isOnFailover()
           
 void putNextReq(org.objectweb.carol.cmi.ha.RequestId nextReq)
          Put the request as the las request
 void setOnFailover(boolean onFailover)
           
 void setRequests(java.util.Stack reqs)
          Set the requests
 void setViewIdWrapper(org.objectweb.carol.cmi.ha.ViewIdWrapper wrapper)
           
 
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

setRequests

public void setRequests(java.util.Stack reqs)
Set the requests

Parameters:
reqs - the requests

getRequests

public java.util.Stack getRequests()
Get the requests

Returns:
the requests

putNextReq

public void putNextReq(org.objectweb.carol.cmi.ha.RequestId nextReq)
Put the request as the las request


isOnFailover

public boolean isOnFailover()
Returns:
Returns the onFailover.

setOnFailover

public void setOnFailover(boolean onFailover)
Parameters:
onFailover - The onFailover to set.

getViewIdWrapper

public org.objectweb.carol.cmi.ha.ViewIdWrapper getViewIdWrapper()

setViewIdWrapper

public void setViewIdWrapper(org.objectweb.carol.cmi.ha.ViewIdWrapper wrapper)