public class StubDelegateImpl extends Object implements StubDelegate
Constructor and Description |
---|
StubDelegateImpl() |
Modifier and Type | Method and Description |
---|---|
void |
connect(Stub self,
ORB orb)
Connects this stub to an ORB.
|
boolean |
equals(Object obj) |
boolean |
equals(Stub self,
Object obj)
Compares two stubs for equality.
|
StubIORImpl |
getIOR() |
int |
hashCode() |
int |
hashCode(Stub self)
Returns a hash code value for the object which is the same for all stubs
that represent the same remote object.
|
void |
readObject(Stub self,
ObjectInputStream stream)
Serialization method to restore the IOR state.
|
String |
toString(Stub self)
Returns a string representation of this stub.
|
void |
writeObject(Stub self,
ObjectOutputStream stream)
Serialization method to save the IOR state.
|
public StubIORImpl getIOR()
public int hashCode(Stub self)
hashCode
in interface StubDelegate
public boolean equals(Stub self, Object obj)
true
when used to compare stubs
that represent the same remote object, and false
otherwise.equals
in interface StubDelegate
obj
- the reference object with which to compare.true
if this object is the same as the obj
argument; false
otherwise.public String toString(Stub self)
toString
in interface StubDelegate
public void connect(Stub self, ORB orb) throws RemoteException
PortableRemoteObject.connect(java.rmi.Remote, java.rmi.Remote)
.connect
in interface StubDelegate
orb
- the ORB to connect to.RemoteException
- if the stub is already connected to a different
ORB, or if the stub does not represent an exported remote or local object.public void readObject(Stub self, ObjectInputStream stream) throws IOException, ClassNotFoundException
readObject
in interface StubDelegate
IOException
ClassNotFoundException
public void writeObject(Stub self, ObjectOutputStream stream) throws IOException
writeObject
in interface StubDelegate
IOException
Copyright © 2020 JBoss by Red Hat. All rights reserved.