org.ow2.carol.cmi.ha.interceptor
Class HAContext

java.lang.Object
  extended by org.ow2.carol.cmi.ha.interceptor.HAContext
All Implemented Interfaces:
java.io.Serializable

public class HAContext
extends java.lang.Object
implements java.io.Serializable

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)
See Also:
Serialized Form

Constructor Summary
HAContext()
          Constructor
 
Method Summary
 java.util.Stack<RequestId> getRequests()
          Get the requests
 boolean isOnFailover()
           
 void putNextReq(RequestId nextReq)
          Put the request as the last request
 void setOnFailover(boolean onFailover)
           
 void setRequests(java.util.Stack<RequestId> reqs)
          Set the requests
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HAContext

public HAContext()
Constructor

Method Detail

setRequests

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

Parameters:
reqs - the requests

getRequests

public java.util.Stack<RequestId> getRequests()
Get the requests

Returns:
the requests

putNextReq

public void putNextReq(RequestId nextReq)
Put the request as the last request


isOnFailover

public boolean isOnFailover()
Returns:
Returns the onFailover.

setOnFailover

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


Copyright © 2007 OW2 Consortium. All Rights Reserved.