tailieunhanh - wiley interscience tools and environments for parallel and distributed computing phần 6
Các giao thức tích cực khai thác các mô hình tính thống nhất phát hành bằng cách mô phỏng hành vi của một bộ xử lý với các cửa hàng nonblocking và miễn phí lưu trữ giam người. | EXAMPLES 99 java MAKE -f clean_java MAKE -f clean .SUFFIXES .java .class .idl .module . vbjc . idl2java touch @ default all clean rm -rf Ping rm -f .class .tmp .module IDLS MODULES IDLS .idl .module SRCS CLASSES SRCS .java .class all MODULES CLASSES Step 7 Launch the Application Before running the client programs or server applications you must start the Visibroker Smart Agent 20 on at least one host in your local network. Launch the application as follows Start the Smart Agent Prompt osagent Start the server Prompt vbj PingCorbaServer Run the client Prompt vbj PingCorbaClient DCOM Step 1 Create the .idl file A unique 128-bit identifier for the PingDCOM library This can be generated by using utilities like guidgen provided by Microsoft 100 DISTRIBUTED-OBJECT COMPUTING TOOLS uuid 5f648dc9-00e2-1000-5000-86448cae0000 version helpstring PingDCOM library definition. library PingDCOM import the standard OLE library. This gives access to the standard OLE types importlib Forward declare all types defined in this IDL file interface IPingServerDCOM coclass PingServerDCOM odl uuid 5f651112-00e2-1000-5002-86448cae0000 helpstring Interface for Java class PingServerDCOM dual oleautomation interface IPingServerDCOM IDispatch id 0x1 helpstring Java method public float float HRESULT doReverse in VARIANT p1 out retval VARIANT retVal uuid 5f651112-00e2-1000-5001-86448cae0000 helpstring Java class PingServerDCOM coclass PingServerDCOM interface IPingServerDCOM HRESULT is the accepted form of return parameter for any DCOM method invocation. It defines a set of possible return values based on the success of the remote operation. S_OK E_FAIL E_POINTER and E_UNEXPECTED are some of the common return values. Step 2 Run MIDL on the idl File The file is compiled using Microsoft s MIDL compiler. .
đang nạp các trang xem trước