public void get_Process(int seqid, TProtocol iprot, TProtocol oprot) { get_args args = new get_args(); args.Read(iprot); iprot.ReadMessageEnd(); get_result result = new get_result(); result.Success = iface_.@get(args.Username); oprot.WriteMessageBegin(new TMessage("get", TMessageType.Reply, seqid)); result.Write(oprot); oprot.WriteMessageEnd(); oprot.Transport.Flush(); }
public void get_Process(int seqid, TProtocol iprot, TProtocol oprot) { get_args args = new get_args(); args.Read(iprot); iprot.ReadMessageEnd(); get_result result = new get_result(); try { result.Success = iface_.get(args.Id); } catch (com.imd.common.thrift.ThriftException e) { result.E = e; } oprot.WriteMessageBegin(new TMessage("get", TMessageType.Reply, seqid)); result.Write(oprot); oprot.WriteMessageEnd(); oprot.Transport.Flush(); }
public UserModel recv_get() { TMessage msg = iprot_.ReadMessageBegin(); if (msg.Type == TMessageType.Exception) { TApplicationException x = TApplicationException.Read(iprot_); iprot_.ReadMessageEnd(); throw x; } get_result result = new get_result(); result.Read(iprot_); iprot_.ReadMessageEnd(); if (result.__isset.success) { return(result.Success); } throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "get failed: unknown result"); }
public void get_Process(int seqid, TProtocol iprot, TProtocol oprot) { get_args args = new get_args(); args.Read(iprot); iprot.ReadMessageEnd(); get_result result = new get_result(); try { result.Success = iface_.get(args.Key, args.Column_path, args.Consistency_level); } catch (InvalidRequestException ire) { result.Ire = ire; } catch (NotFoundException nfe) { result.Nfe = nfe; } catch (UnavailableException ue) { result.Ue = ue; } catch (TimedOutException te) { result.Te = te; } oprot.WriteMessageBegin(new TMessage("get", TMessageType.Reply, seqid)); result.Write(oprot); oprot.WriteMessageEnd(); oprot.Transport.Flush(); }
public ColumnOrSuperColumn recv_get() { TMessage msg = iprot_.ReadMessageBegin(); if (msg.Type == TMessageType.Exception) { TApplicationException x = TApplicationException.Read(iprot_); iprot_.ReadMessageEnd(); throw x; } get_result result = new get_result(); result.Read(iprot_); iprot_.ReadMessageEnd(); if (result.__isset.success) { return result.Success; } if (result.__isset.ire) { throw result.Ire; } if (result.__isset.nfe) { throw result.Nfe; } if (result.__isset.ue) { throw result.Ue; } if (result.__isset.te) { throw result.Te; } throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "get failed: unknown result"); }
public List<TCell> recv_get() { TMessage msg = this.iprot_.ReadMessageBegin(); if (msg.Type == TMessageType.Exception) { TApplicationException x = TApplicationException.Read(this.iprot_); this.iprot_.ReadMessageEnd(); throw x; } var result = new get_result(); result.Read(this.iprot_); this.iprot_.ReadMessageEnd(); if (result.__isset.success) { return result.Success; } if (result.__isset.io) { throw result.Io; } throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "get failed: unknown result"); }
public void get_Process(int seqid, TProtocol iprot, TProtocol oprot) { var args = new get_args(); args.Read(iprot); iprot.ReadMessageEnd(); var result = new get_result(); try { result.Success = this.iface_.get(args.TableName, args.Row, args.Column); } catch (IOError io) { result.Io = io; } oprot.WriteMessageBegin(new TMessage("get", TMessageType.Reply, seqid)); result.Write(oprot); oprot.WriteMessageEnd(); oprot.Transport.Flush(); }
public void get_Process(int seqid, TProtocol iprot, TProtocol oprot) { get_args args = new get_args(); args.Read(iprot); iprot.ReadMessageEnd(); get_result result = new get_result(); try { result.success = iface_.get(args.tableName, args.row, args.column); result.__isset.success = true; } catch (IOError io) { result.io = io; result.__isset.io = true; } catch (NotFound nf) { result.nf = nf; result.__isset.nf = true; } oprot.WriteMessageBegin(new TMessage("get", TMessageType.Reply, seqid)); result.Write(oprot); oprot.WriteMessageEnd(); oprot.Transport.Flush(); }