|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.carol.cmi.StubData
public class StubData
Contains a stub to a single instance in the cluster of a clustered object and related data.
Constructor Summary | |
---|---|
StubData(ObjectId objectId,
byte[] serStub,
int factor)
Creates a new stub |
|
StubData(ObjectId objectId,
java.rmi.Remote stub,
int factor)
Creates a new stub |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj)
Compares an object with this one |
int |
getFactor()
|
java.lang.String |
getKey()
|
double |
getLoadIncr()
|
ObjectId |
getObjectId()
Get the ObjectId ref of the stub |
byte[] |
getSerializedStub()
Get the serialized stub |
ClusterId |
getServerId()
Get the server id associated with the stub |
java.rmi.Remote |
getStub()
Get the Remote stub |
java.lang.Object |
getStubOrException()
Get the stub |
int |
hashCode()
Compute a hashcode for this |
void |
setKey(java.lang.String key)
Set the key |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public StubData(ObjectId objectId, byte[] serStub, int factor) throws java.rmi.RemoteException
objectId
- object identifierserStub
- serialized stubfactor
- factor
java.rmi.RemoteException
- if prm are not allowedpublic StubData(ObjectId objectId, java.rmi.Remote stub, int factor) throws java.rmi.RemoteException
objectId
- object identifierstub
- Remote object stubfactor
- factor
java.rmi.RemoteException
- if prm are not allowedMethod Detail |
---|
public ClusterId getServerId()
public ObjectId getObjectId()
public byte[] getSerializedStub()
public java.rmi.Remote getStub() throws java.rmi.RemoteException
java.rmi.RemoteException
- if stub can't be retrieved or not Remote objectpublic java.lang.Object getStubOrException()
java.rmi.RemoteException
public double getLoadIncr()
public int getFactor()
public java.lang.String toString()
toString
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
- object to compare
public java.lang.String getKey()
public void setKey(java.lang.String key)
key
- jndi name associated with the object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |