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

java.lang.Object
  extended by org.ow2.carol.cmi.ha.interceptor.HACurrent

public class HACurrent
extends java.lang.Object

Class enabling to get the current context.


Method Summary
static HACurrent getHACurrent()
           
 java.util.Stack<RequestId> getRequests()
          Get the request stack
 boolean isOnFailover()
          Gets the onFailover variable
 void putNextReq(RequestId nextReq)
          Put the request in the request stack
 void setOnFailover(boolean onFailover)
          Sets the onFailover variable
 void setRequests(java.util.Stack<RequestId> requests)
          Set the requests stack in the current context
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getHACurrent

public static HACurrent getHACurrent()
Returns:
Get the singleton

setRequests

public void setRequests(java.util.Stack<RequestId> requests)
Set the requests stack in the current context

Parameters:
requests - the next request

getRequests

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

Returns:
the request stack

putNextReq

public void putNextReq(RequestId nextReq)
Put the request in the request stack

Parameters:
nextReq - the next request

setOnFailover

public void setOnFailover(boolean onFailover)
Sets the onFailover variable

Parameters:
onFailover -

isOnFailover

public boolean isOnFailover()
Gets the onFailover variable

Returns:
true if on failover


Copyright © 2007 OW2 Consortium. All Rights Reserved.