Esempio n. 1
0
            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();
            }
Esempio n. 2
0
            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 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();
 }
Esempio n. 4
0
 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();
 }
Esempio n. 5
0
 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();
 }