Spec-Zone .ru
спецификации, руководства, описания, API
|
CONTENTS | PREV | NEXT | Java Remote Method Invocation |
Skeleton
Interface
The interfaceSkeleton
is used solely by the implementation of skeletons generated by thermic
compiler. A skeleton for a remote object is a server-side entity that dispatches calls to the actual remote object implementation.
Note - TheSkeleton
interface was deprecated as of the Java 2 SDK, Standard Edition, v 1.2. Every 1.1 (and version 1.1 compatible skeletons generated in 1.2 usingrmic -vcompat
, the default) skeleton class generated by thermic
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 commandrmic
with the option -v
1.2.
package java.rmi.server; public interface Skeleton { void dispatch(Remote obj, RemoteCall call, int opnum, long hash) throws Exception; Operation[] getOperations(); }
Thedispatch
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.