<!----> The java.rmi.server.RemoteStub
class is the common superclass for stubs of remote objects. Stub objects are surrogates that support exactly the same set of remote interfaces defined by the actual implementation of a remote object.
package java.rmi.server;
public abstract class RemoteStub extends java.rmi.RemoteObject {
protected RemoteStub();
protected RemoteStub(RemoteRef ref);
protected static void setRef(RemoteStub stub, RemoteRef ref);
}
<!----> The first constructor of RemoteStub
creates a stub with a null
remote reference. The second constructor creates a stub with the given remote reference, ref.
<!----> The setRef
method is deprecated (and unsupported) as of the Java 2 SDK, Standard Edition, v1.2.
<!----> 8.1.1 Type Equivalency of Remote Objects with a Stub Class
<!----> Clients interact with stub (surrogate) objects that have exactly the same set of remote interfaces defined by the remote object's class; the stub class does not include the non-remote portions of the class hierarchy that constitutes the object's type graph. This is because the stub class is generated from the most refined implementation class that implements one or more remote interfaces. For example, if C extends B and B extends A, but only B implements a remote interface, then a stub is generated from B, not C.
<!----> Because the stub implements the same set of remote interfaces as the remote object's class, the stub has the same type as the remote portions of the server object's type graph. A client, therefore, can make use of the built-in Java programming language operations to check a remote object's type and to cast from one remote interface to another.
<!----> Stubs are generated using the rmic compiler.
<!----> 8.1.2 The Semantics of Object Methods Declared final
<!----> The following methods are declared final
in the java.lang.Object
class and therefore cannot be overridden by any implementation:
<!----> The default implementation for
getClass
is appropriate for all objects written in the Java programming language, local or remote; so, the method needs no special implementation for remote objects. When used on a remote stub, the
getClass
method reports the exact type of the stub object, generated by
rmic. Note that stub type reflects only the remote interfaces implemented by the remote object, not that object's local interfaces.
<!----> The wait
and notify
methods of java.lang.Object
deal with waiting and notification in the context of the Java programming language's threading model. While use of these methods for remote stubs does not break the threading model, these methods do not have the same semantics as they do for local objects written in the Java programming language. Specifically, using these methods operates on the client's local reference to the remote object (the stub), not the actual object at the remote site.
<!----> The interface Skeleton
is used solely by the implementation of skeletons generated by the rmic
compiler. A skeleton for a remote object is a server-side entity that dispatches calls to the actual remote object implementation.
Note - The Skeleton
interface was deprecated as of the Java 2 SDK, Standard Edition, v1.2. Every 1.1 (and version 1.1 compatible skeletons generated in 1.2 using rmic -vcompat
, the default) skeleton class generated by the rmic
stub compiler implements this interface. Skeletons are no longer required for remote method call dispatch as of Java 2 SDK, Standard Edition, v1.2-compatible versions. To generate stubs that are compatible with 1.2 or later versions, use the command rmic
with the option -v1.2.
package java.rmi.server;
public interface Skeleton {
void dispatch(Remote obj, RemoteCall call, int opnum, long hash)
throws Exception;
Operation[] getOperations();
}
<!----> The
dispatch
method unmarshals any arguments from the input stream obtained from the
call object, invokes the method (indicated by the operation number
opnum) on the actual remote object implementation
obj, and marshals the return value or throws an exception if one occurs during the invocation.
<!----> The getOperations
method returns an array containing the operation descriptors for the remote object's methods.
分享到:
相关推荐
8 Using the gSOAP Stub and Skeleton Compiler 9 The gSOAP Remote Method Specification Format 10 gSOAP Serialization and Deserialization Rules 11 SOAP Fault Processing 12 SOAP Header Processing 13 ...
rmic 为远程对象生成 stub 和 skeleton。 语法: rmic [ options ] package-qualified-class-name(s) 补充说明: rmic 编译器根据编译后的 Java 类(含有远程对象实现)名,为远程对象生成 stub 和 skeleton...
单元测试打桩开源库 cpp-stub 使用手册 中文版本,这是从git上直接下载的,git上下载的源代码在arm上调用Stub.reset方法会引发段错误,在资源cpp-stub开源代码(下载地址:...
gtest stub 详细用法,附件用例,链接
这是一个单元测试打桩开源代码,在git上下载的代码在ARM平台上有一个BUG,使用stub.h中的reset方法时,会引起段错误,该资源对这个bug进行了修复。
com.stub.StubApp.apk
赠送jar包:grpc-stub-1.24.0.jar; 赠送原API文档:grpc-stub-1.24.0-javadoc.jar; 赠送源代码:grpc-stub-1.24.0-sources.jar; 赠送Maven依赖信息文件:grpc-stub-1.24.0.pom; 包含翻译后的API文档:grpc-stub-...
1037571306982519com.stub.StubApp.apk
com.stub.StubApp.apk.1
Android源代码 启动时隐藏StubView,点击Show按钮显示StubView,点击Hide隐藏StubView.
com.stub.StubApp.apk.1.1
Firefox Setup Stub 23.0.1
JavaRMI_Stub Sister Java RMI Skeleton,用于连接服务器和客户端服务器 -> 客户端 ->
stub测试桩函数库
主要讲述了Corba组件的关键技术。对IDL编译器以及客户Stub和服务器skeleton有更深入的了解。
用于演示PE变形拓展STUB的蓝本程序。
通过stub例程实现远程过程调用
stub_manifest.exe下载资源
IPackageInstallObserver$Stub.class 如果你的版本是android1.5以上的话,就没有这个class文件了 ,把这 个文件,放到.android sdk/android-17/android.jar文件里。放入到相应的目录,也就是,/android/comtent/pm/...