|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.carol.cmi.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()
|
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 |
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
RemoteException,
- if stub can't be retrieved or not Remote object
java.rmi.RemoteException
public java.lang.Object getStubOrException()
java.rmi.RemoteException
public double getLoadIncr()
public int getFactor()
public java.lang.String toString()
public int hashCode()
public boolean equals(java.lang.Object obj)
obj
- object to compare
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |