Example #1
0
 public void dispatchOncRpcCall(OncRpcCallInformation call, int program, int version, int procedure)
 {
     if (version == 1)
     {
         switch (procedure)
         {
             case 0:
                 {
                     call.retrieveCall(XdrVoid.XDR_VOID);
                     CB_NULL_1();
                     call.reply(XdrVoid.XDR_VOID);
                     break;
                 }
             case 1:
                 {
                     CB_COMPOUND4args args_ = new CB_COMPOUND4args();
                     call.retrieveCall(args_);
                     CB_COMPOUND4res result_ = CB_COMPOUND_1(args_);
                     call.reply(result_);
                     break;
                 }
             default:
                 call.failProcedureUnavailable();
                 break;
         }
     }
     else
     {
         call.failProgramUnavailable();
     }
 }
        /**
         * Call remote procedure CB_COMPOUND_1.
         * @param arg1 parameter (of type CB_COMPOUND4args) to the remote procedure call.
         * @return Result from remote procedure call (of type CB_COMPOUND4res).
         * @throws OncRpcException if an ONC/RPC error occurs.
         * @throws IOException if an I/O error occurs.
         */
        public CB_COMPOUND4res CB_COMPOUND_1(CB_COMPOUND4args arg1)
        {
            CB_COMPOUND4res result_ = new CB_COMPOUND4res();

            client.call(NFSv4_callback.CB_COMPOUND_1, NFSv4_callback.NFS_CB, arg1, result_);
            return(result_);
        }
 /**
  * Call remote procedure CB_COMPOUND_1.
  * @param arg1 parameter (of type CB_COMPOUND4args) to the remote procedure call.
  * @return Result from remote procedure call (of type CB_COMPOUND4res).
  * @throws OncRpcException if an ONC/RPC error occurs.
  * @throws IOException if an I/O error occurs.
  */
 public CB_COMPOUND4res CB_COMPOUND_1(CB_COMPOUND4args arg1) {
     CB_COMPOUND4res result_ = new CB_COMPOUND4res();
     client.call(NFSv4_callback.CB_COMPOUND_1, NFSv4_callback.NFS_CB, arg1, result_);
     return result_;
 }