Example #1
0
            public void insert_Process(int seqid, TProtocol iprot, TProtocol oprot)
            {
                insert_args args = new insert_args();

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

                iface_.insert(args.Info);
                oprot.WriteMessageBegin(new TMessage("insert", TMessageType.Reply, seqid));
                result.Write(oprot);
                oprot.WriteMessageEnd();
                oprot.Transport.Flush();
            }
Example #2
0
            public void recv_insert()
            {
                TMessage msg = iprot_.ReadMessageBegin();

                if (msg.Type == TMessageType.Exception)
                {
                    TApplicationException x = TApplicationException.Read(iprot_);
                    iprot_.ReadMessageEnd();
                    throw x;
                }
                insert_result result = new insert_result();

                result.Read(iprot_);
                iprot_.ReadMessageEnd();
                return;
            }
Example #3
0
            public void insert_Process(int seqid, TProtocol iprot, TProtocol oprot)
            {
                insert_args args = new insert_args();

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

                try {
                    iface_.insert(args.User);
                } catch (com.imd.common.thrift.ThriftException e) {
                    result.E = e;
                }
                oprot.WriteMessageBegin(new TMessage("insert", TMessageType.Reply, seqid));
                result.Write(oprot);
                oprot.WriteMessageEnd();
                oprot.Transport.Flush();
            }
 public void insert_Process(int seqid, TProtocol iprot, TProtocol oprot)
 {
     insert_args args = new insert_args();
     args.Read(iprot);
     iprot.ReadMessageEnd();
     insert_result result = new insert_result();
     try {
       iface_.insert(args.Key, args.Column_parent, args.Column, args.Consistency_level);
     } catch (InvalidRequestException ire) {
       result.Ire = ire;
     } catch (UnavailableException ue) {
       result.Ue = ue;
     } catch (TimedOutException te) {
       result.Te = te;
     }
     oprot.WriteMessageBegin(new TMessage("insert", TMessageType.Reply, seqid));
     result.Write(oprot);
     oprot.WriteMessageEnd();
     oprot.Transport.Flush();
 }
 public void recv_insert()
 {
     TMessage msg = iprot_.ReadMessageBegin();
     if (msg.Type == TMessageType.Exception) {
       TApplicationException x = TApplicationException.Read(iprot_);
       iprot_.ReadMessageEnd();
       throw x;
     }
     insert_result result = new insert_result();
     result.Read(iprot_);
     iprot_.ReadMessageEnd();
     if (result.__isset.ire) {
       throw result.Ire;
     }
     if (result.__isset.ue) {
       throw result.Ue;
     }
     if (result.__isset.te) {
       throw result.Te;
     }
     return;
 }