org.objectweb.jonas.ha.interceptor
Class HAContext

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

public class HAContext
extends 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
 Stack getRequests()
          Returns the requests
 org.objectweb.carol.cmi.ha.ViewIdWrapper getViewIdWrapper()
           
 boolean isOnFailover()
           
 void setOnFailover(boolean onFailover)
           
 void setRequests(Stack reqs)
          Sets Requests to pass between client and server
 void setViewIdWrapper(org.objectweb.carol.cmi.ha.ViewIdWrapper info)
           
 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(Stack reqs)
Sets Requests to pass between client and server

Parameters:
reqs - thre requests

getRequests

public 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 String toString()
Returns a string representation of the object

Overrides:
toString in class 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)


Copyright © 2007 OW2 Consortium. All Rights Reserved.