org.objectweb.jonas.ha.interceptor
Class HAContext

java.lang.Object
  extended by org.objectweb.jonas.ha.interceptor.HAContext
All Implemented Interfaces:
java.io.Serializable, org.objectweb.carol.rmi.jrmp.interceptor.JServiceContext

public class HAContext
extends java.lang.Object
implements org.objectweb.carol.rmi.jrmp.interceptor.JServiceContext

This class holds the required information to pass between client/server through HA interceptors

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
 int getContextId()
          Returns the HA context identifier
 java.util.Stack getRequests()
          Returns the requests
 org.objectweb.carol.cmi.ha.ViewIdWrapper getViewIdWrapper()
           
 boolean isOnFailover()
           
 void setOnFailover(boolean onFailover)
           
 void setRequests(java.util.Stack reqs)
          Sets Requests to pass between client and server
 void setViewIdWrapper(org.objectweb.carol.cmi.ha.ViewIdWrapper info)
           
 java.lang.String toString()
          Returns a string representation of the object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

HAContext

public HAContext()
Constructor

Method Detail

getContextId

public int getContextId()
Returns the HA context identifier

Specified by:
getContextId in interface org.objectweb.carol.rmi.jrmp.interceptor.JServiceContext
Returns:
the HA context id

setRequests

public void setRequests(java.util.Stack reqs)
Sets Requests to pass between client and server

Parameters:
reqs - thre requests

getRequests

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

Returns:
the requests

isOnFailover

public boolean isOnFailover()
Returns:
Returns the onFailover.

setOnFailover

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

toString

public java.lang.String toString()
Returns a string representation of the object

Overrides:
toString in class java.lang.Object
Returns:
the string representing the HAContext

getViewIdWrapper

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

setViewIdWrapper

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