what is stub on the “server” and what does skeleton mean?

前端 未结 7 781
夕颜
夕颜 2021-01-01 13:34

What does stub do on the server side ? And what is a skeleton ?

\"from

Th

7条回答
  •  没有蜡笔的小新
    2021-01-01 14:19

    Stub

    A stub for a remote object acts as a client's local representative or proxy for the remote object. The stub hides the serialization of parameters and the network-level communication in order to present a simple invocation mechanism to the caller.

    Alternatively, consider a program running on one machine: each method is a branch. When you move the method to a remote machine, you cut off the branch, leaving a stub which contains only communications.
    Source


    Skeleton

    In the remote JVM, each remote object may have a corresponding skeleton. The skeleton is responsible for dispatching the call to the actual remote object implementation.

    And a skeleton I regard as a first implementation - something that satisfies the calling convention, performs a partial operation, and completes satisfactorily.

    Form Oracle

提交回复
热议问题