- java.lang.Object
-
- java.rmi.server.RemoteObject
-
- java.rmi.server.RemoteStub
-
- All Implemented Interfaces:
- Serializable, Remote
- Direct Known Subclasses:
- ActivationGroup_Stub, RMIConnectionImpl_Stub, RMIServerImpl_Stub
public abstract class RemoteStub extends RemoteObject
TheRemoteStub
class is the common superclass to client stubs and provides the framework to support a wide range of remote reference semantics. Stub objects are surrogates that support exactly the same set of remote interfaces defined by the actual implementation of the remote object.- Since:
- JDK1.1
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class java.rmi.server.RemoteObject
ref
-
-
Constructor Summary
Constructors Modifier Constructor and Description protected
RemoteStub()
Constructs aRemoteStub
.protected
RemoteStub(RemoteRef ref)
Constructs aRemoteStub
, with the specified remote reference.
-
Method Summary
Methods Modifier and Type Method and Description protected static void
setRef(RemoteStub stub, RemoteRef ref)
Deprecated.no replacement. ThesetRef
method is not needed sinceRemoteStub
s can be created with theRemoteStub(RemoteRef)
constructor.
-
-
-
Constructor Detail
-
RemoteStub
protected RemoteStub()
Constructs aRemoteStub
.
-
RemoteStub
protected RemoteStub(RemoteRef ref)
Constructs aRemoteStub
, with the specified remote reference.- Parameters:
ref
- the remote reference- Since:
- JDK1.1
-
-
Method Detail
-
setRef
@Deprecated protected static void setRef(RemoteStub stub, RemoteRef ref)
Deprecated. no replacement. ThesetRef
method is not needed sinceRemoteStub
s can be created with theRemoteStub(RemoteRef)
constructor.Sets the remote reference inside the remote stub.- Parameters:
stub
- the remote stubref
- the remote reference- Since:
- JDK1.1
-
-
Document created the 11/06/2005, last modified the 04/03/2020
Source of the printed document:https://www.gaudry.be/en/java-api-rf-java/rmi/server/remotestub.html
The infobrol is a personal site whose content is my sole responsibility. The text is available under CreativeCommons license (BY-NC-SA). More info on the terms of use and the author.
References
These references and links indicate documents consulted during the writing of this page, or which may provide additional information, but the authors of these sources can not be held responsible for the content of this page.
The author This site is solely responsible for the way in which the various concepts, and the freedoms that are taken with the reference works, are presented here. Remember that you must cross multiple source information to reduce the risk of errors.