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 send_insert(User user)
      #endif
            {
                oprot_.WriteMessageBegin(new TMessage("insert", TMessageType.Call, seqid_));
                insert_args args = new insert_args();

                args.User = user;
                args.Write(oprot_);
                oprot_.WriteMessageEnd();
        #if SILVERLIGHT
                return(oprot_.Transport.BeginFlush(callback, state));
        #else
                oprot_.Transport.Flush();
        #endif
            }
Example #3
0
            public void send_insert(com.imd.doc.thrift.Info info)
      #endif
            {
                oprot_.WriteMessageBegin(new TMessage("insert", TMessageType.Call, seqid_));
                insert_args args = new insert_args();

                args.Info = info;
                args.Write(oprot_);
                oprot_.WriteMessageEnd();
        #if SILVERLIGHT
                return(oprot_.Transport.BeginFlush(callback, state));
        #else
                oprot_.Transport.Flush();
        #endif
            }
Example #4
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();
            }
Example #5
0
 public void send_insert(string tablename, string key, string columnFamily_column, string cellData, int timestamp)
 {
     oprot_.WriteMessageBegin(new TMessage("insert", TMessageType.Call, seqid_));
       insert_args args = new insert_args();
       args.tablename = tablename;
       args.key = key;
       args.columnFamily_column = columnFamily_column;
       args.cellData = cellData;
       args.timestamp = timestamp;
       args.Write(oprot_);
       oprot_.WriteMessageEnd();
       oprot_.Transport.Flush();
 }
Example #6
0
 public void insert_Process(int seqid, TProtocol iprot, TProtocol oprot)
 {
     insert_args args = new insert_args();
       args.Read(iprot);
       iprot.ReadMessageEnd();
       iface_.insert(args.tablename, args.key, args.columnFamily_column, args.cellData, args.timestamp);
       return;
 }
 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 send_insert(byte[] key, ColumnParent column_parent, Column column, ConsistencyLevel consistency_level)
 {
     oprot_.WriteMessageBegin(new TMessage("insert", TMessageType.Call, seqid_));
     insert_args args = new insert_args();
     args.Key = key;
     args.Column_parent = column_parent;
     args.Column = column;
     args.Consistency_level = consistency_level;
     args.Write(oprot_);
     oprot_.WriteMessageEnd();
     oprot_.Transport.Flush();
 }
Example #9
0
 public void send_insert(byte[] key, ColumnParent column_parent, Column column, ConsistencyLevel consistency_level)
 #endif
 {
   oprot_.WriteMessageBegin(new TMessage("insert", TMessageType.Call, seqid_));
   insert_args args = new insert_args();
   args.Key = key;
   args.Column_parent = column_parent;
   args.Column = column;
   args.Consistency_level = consistency_level;
   args.Write(oprot_);
   oprot_.WriteMessageEnd();
   #if SILVERLIGHT
   return oprot_.Transport.BeginFlush(callback, state);
   #else
   oprot_.Transport.Flush();
   #endif
 }
Example #10
0
 public void send_insert(string keyspace, string key, ColumnPath column_path, byte[] value, long timestamp, ConsistencyLevel consistency_level)
 {
     oprot_.WriteMessageBegin(new TMessage("insert", TMessageType.Call, seqid_));
     insert_args args = new insert_args();
     args.Keyspace = keyspace;
     args.Key = key;
     args.Column_path = column_path;
     args.Value = value;
     args.Timestamp = timestamp;
     args.Consistency_level = consistency_level;
     args.Write(oprot_);
     oprot_.WriteMessageEnd();
     oprot_.Transport.Flush();
 }