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(); }
public FileInfo recv_getFileInfo() { TMessage msg = iprot_.ReadMessageBegin(); if (msg.Type == TMessageType.Exception) { TApplicationException x = TApplicationException.Read(iprot_); iprot_.ReadMessageEnd(); throw x; } getFileInfo_result result = new getFileInfo_result(); result.Read(iprot_); iprot_.ReadMessageEnd(); if (result.__isset.success) { return(result.Success); } if (result.__isset.e) { throw result.E; } throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "getFileInfo failed: unknown result"); }