예제 #1
0
        public void send_getFileInfo(long fileId)
    #endif
        {
            oprot_.WriteMessageBegin(new TMessage("getFileInfo", TMessageType.Call, seqid_));
            getFileInfo_args args = new getFileInfo_args();

            args.FileId = fileId;
            args.Write(oprot_);
            oprot_.WriteMessageEnd();
      #if SILVERLIGHT
            return(oprot_.Transport.BeginFlush(callback, state));
      #else
            oprot_.Transport.Flush();
      #endif
        }
예제 #2
0
        public void getFileInfo_Process(int seqid, TProtocol iprot, TProtocol oprot)
        {
            getFileInfo_args args = new getFileInfo_args();

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

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