public class StubData
extends java.lang.Object
Constructor and Description |
---|
StubData(ObjectId objectId,
byte[] serStub,
int factor)
Creates a new stub
|
StubData(ObjectId objectId,
java.rmi.Remote stub,
int factor)
Creates a new stub
|
Modifier and Type | Method and Description |
---|---|
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() |
public StubData(ObjectId objectId, byte[] serStub, int factor) throws java.rmi.RemoteException
objectId
- object identifierserStub
- serialized stubfactor
- factorjava.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
- factorjava.rmi.RemoteException
- if prm are not allowedpublic 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 objectjava.rmi.RemoteException
public 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