public interface StubRetriever
RMIRegistry.getStubRetriever()
method. Instances of this interface
are usually connected to a RMIRegistry
instance that they use to
retrieve stubs. Instances of this interface can be sent over RMI and they are
always replaced with the instance connected to the local RMIRegistry
on the receiver machine.Modifier and Type | Method and Description |
---|---|
java.lang.Object |
getStub(java.lang.String address,
int port,
java.lang.String objectId)
Same of the
RMIRegistry.getStub(String, int, String) method. |
java.lang.Object |
getStub(java.lang.String address,
int port,
java.lang.String objectId,
java.lang.Class<?>... stubInterfaces)
|
java.lang.Object getStub(java.lang.String address, int port, java.lang.String objectId) throws java.io.IOException, java.lang.InterruptedException
RMIRegistry.getStub(String, int, String)
method.address
- the host addressport
- the host portobjectId
- the object identifierjava.net.UnknownHostException
- if the host cannot be resolvedjava.io.IOException
- if an I/O error occursjava.lang.InterruptedException
- if the current thread is iterrupted during
operationjava.lang.Object getStub(java.lang.String address, int port, java.lang.String objectId, java.lang.Class<?>... stubInterfaces) throws java.io.IOException
RMIRegistry.getStub(String, int, String, Class...)
method.address
- the host addressport
- the host portobjectId
- the remote object identifierstubInterfaces
- the interfaces implemented by the stubjava.net.UnknownHostException
- if the host address cannot be resolvedjava.io.IOException
- if I/O errors occur