Esempio n. 1
0
        public void send_getBlockInfo(long blockId)
    #endif
        {
            oprot_.WriteMessageBegin(new TMessage("getBlockInfo", TMessageType.Call, seqid_));
            getBlockInfo_args args = new getBlockInfo_args();

            args.BlockId = blockId;
            args.Write(oprot_);
            oprot_.WriteMessageEnd();
      #if SILVERLIGHT
            return(oprot_.Transport.BeginFlush(callback, state));
      #else
            oprot_.Transport.Flush();
      #endif
        }
Esempio n. 2
0
        public void getBlockInfo_Process(int seqid, TProtocol iprot, TProtocol oprot)
        {
            getBlockInfo_args args = new getBlockInfo_args();

            args.Read(iprot);
            iprot.ReadMessageEnd();
            getBlockInfo_result result = new getBlockInfo_result();

            try {
                result.Success = iface_.getBlockInfo(args.BlockId);
            } catch (AlluxioTException e) {
                result.E = e;
            }
            oprot.WriteMessageBegin(new TMessage("getBlockInfo", TMessageType.Reply, seqid));
            result.Write(oprot);
            oprot.WriteMessageEnd();
            oprot.Transport.Flush();
        }