org.objectweb.jonas.ha.interceptor
Class HAContext

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

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.lang.Object getData(java.lang.String param)
          Returns the data identified by the key param
 void setData(java.lang.String param, java.lang.Object value)
          Sets concrete data to pass between client and server
 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

setData

public void setData(java.lang.String param,
                    java.lang.Object value)
Sets concrete data to pass between client and server

Parameters:
param - the key value
value - the data associated to the key value

getData

public java.lang.Object getData(java.lang.String param)
Returns the data identified by the key param

Parameters:
param - the key value to get the data from
Returns:
the required data

toString

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

Returns:
the string representing the HAContext