Пример #1
0
 public bool recv_checkAndPut()
 {
     TMessage msg = iprot_.ReadMessageBegin();
     if (msg.Type == TMessageType.Exception) {
       TApplicationException x = TApplicationException.Read(iprot_);
       iprot_.ReadMessageEnd();
       throw x;
     }
     checkAndPut_result result = new checkAndPut_result();
     result.Read(iprot_);
     iprot_.ReadMessageEnd();
     if (result.__isset.success) {
       return result.Success;
     }
     if (result.__isset.io) {
       throw result.Io;
     }
     throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "checkAndPut failed: unknown result");
 }
Пример #2
0
 public void checkAndPut_Process(int seqid, TProtocol iprot, TProtocol oprot)
 {
     checkAndPut_args args = new checkAndPut_args();
     args.Read(iprot);
     iprot.ReadMessageEnd();
     checkAndPut_result result = new checkAndPut_result();
     try {
       result.Success = iface_.checkAndPut(args.Table, args.Row, args.Family, args.Qualifier, args.Value, args.Put);
     } catch (TIOError io) {
       result.Io = io;
     }
     oprot.WriteMessageBegin(new TMessage("checkAndPut", TMessageType.Reply, seqid));
     result.Write(oprot);
     oprot.WriteMessageEnd();
     oprot.Transport.Flush();
 }
Пример #3
0
 public void checkAndPut_Process(int seqid, TProtocol iprot, TProtocol oprot)
 {
   checkAndPut_args args = new checkAndPut_args();
   args.Read(iprot);
   iprot.ReadMessageEnd();
   checkAndPut_result result = new checkAndPut_result();
   try {
     result.Success = iface_.checkAndPut(args.TableName, args.Row, args.Column, args.Value, args.Mput, args.Attributes);
   } catch (IOError io) {
     result.Io = io;
   } catch (IllegalArgument ia) {
     result.Ia = ia;
   }
   oprot.WriteMessageBegin(new TMessage("checkAndPut", TMessageType.Reply, seqid)); 
   result.Write(oprot);
   oprot.WriteMessageEnd();
   oprot.Transport.Flush();
 }