org.objectweb.carol.cmi.ha
Class RequestId

java.lang.Object
  extended by org.objectweb.carol.cmi.ha.RequestId
All Implemented Interfaces:
java.io.Serializable

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

This class is the key to identify the client requests in HA tables. It is constructed in the JSessionRemote from the information received through the HA interceptors. RequestId = ObjectId + Request_Number

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
RequestId(ObjectId objectId, java.lang.Integer requestNo)
          Constructor
 
Method Summary
 boolean equals(java.lang.Object o)
          Test if two RequestIds are equals
 ObjectId getObjectId()
          Get the objectId
 java.lang.Integer getRequestNo()
          Get the request number
 int hashCode()
          Compute hashcode
 void setObjectId(ObjectId objectId)
          Set the objectId
 void setRequestNo(java.lang.Integer requestNo)
          Set the request number
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RequestId

public RequestId(ObjectId objectId,
                 java.lang.Integer requestNo)
Constructor

Parameters:
objectId -
requestNo -
Method Detail

getObjectId

public ObjectId getObjectId()
Get the objectId

Returns:
return the objectId

setObjectId

public void setObjectId(ObjectId objectId)
Set the objectId

Parameters:
objectId -

getRequestNo

public java.lang.Integer getRequestNo()
Get the request number

Returns:
return the request number

setRequestNo

public void setRequestNo(java.lang.Integer requestNo)
Set the request number

Parameters:
requestNo -

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

hashCode

public int hashCode()
Compute hashcode

Overrides:
hashCode in class java.lang.Object
Returns:
hashcode

equals

public boolean equals(java.lang.Object o)
Test if two RequestIds are equals

Overrides:
equals in class java.lang.Object
Parameters:
o - object to compare with this
Returns:
true if equals