ReadMessageEnd() public abstract méthode

public abstract ReadMessageEnd ( ) : void
Résultat void
Exemple #1
0
 public bool Process(TProtocol iprot, TProtocol oprot)
 {
     try
     {
         TMessage msg = iprot.ReadMessageBegin();
         ProcessFunction fn;
         processMap_.TryGetValue(msg.Name, out fn);
         if (fn == null)
         {
             TProtocolUtil.Skip(iprot, TType.Struct);
             iprot.ReadMessageEnd();
             TApplicationException x = new TApplicationException(TApplicationException.ExceptionType.UnknownMethod, "Invalid method name: '" + msg.Name + "'");
             oprot.WriteMessageBegin(new TMessage(msg.Name, TMessageType.Exception, msg.SeqID));
             x.Write(oprot);
             oprot.WriteMessageEnd();
             oprot.Transport.Flush();
             return true;
         }
         fn(msg.SeqID, iprot, oprot);
     }
     catch (IOException)
     {
         return false;
     }
     return true;
 }
Exemple #2
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;
 }
Exemple #3
0
 public void batch_insert_superColumn_Process(int seqid, TProtocol iprot, TProtocol oprot)
 {
     batch_insert_superColumn_args args = new batch_insert_superColumn_args();
       args.Read(iprot);
       iprot.ReadMessageEnd();
       iface_.batch_insert_superColumn(args.batchMutationSuper);
       return;
 }
 public void truncate_Process(int seqid, TProtocol iprot, TProtocol oprot)
 {
     truncate_args args = new truncate_args();
     args.Read(iprot);
     iprot.ReadMessageEnd();
     truncate_result result = new truncate_result();
     try {
       iface_.truncate(args.Cfname);
     } catch (InvalidRequestException ire) {
       result.Ire = ire;
     } catch (UnavailableException ue) {
       result.Ue = ue;
     }
     oprot.WriteMessageBegin(new TMessage("truncate", TMessageType.Reply, seqid));
     result.Write(oprot);
     oprot.WriteMessageEnd();
     oprot.Transport.Flush();
 }
 public void set_keyspace_Process(int seqid, TProtocol iprot, TProtocol oprot)
 {
     set_keyspace_args args = new set_keyspace_args();
     args.Read(iprot);
     iprot.ReadMessageEnd();
     set_keyspace_result result = new set_keyspace_result();
     try {
       iface_.set_keyspace(args.Keyspace);
     } catch (InvalidRequestException ire) {
       result.Ire = ire;
     }
     oprot.WriteMessageBegin(new TMessage("set_keyspace", TMessageType.Reply, seqid));
     result.Write(oprot);
     oprot.WriteMessageEnd();
     oprot.Transport.Flush();
 }
 public void multiget_slice_Process(int seqid, TProtocol iprot, TProtocol oprot)
 {
     multiget_slice_args args = new multiget_slice_args();
     args.Read(iprot);
     iprot.ReadMessageEnd();
     multiget_slice_result result = new multiget_slice_result();
     try {
       result.Success = iface_.multiget_slice(args.Keys, args.Column_parent, args.Predicate, 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("multiget_slice", 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();
 }
 public void describe_version_Process(int seqid, TProtocol iprot, TProtocol oprot)
 {
     describe_version_args args = new describe_version_args();
     args.Read(iprot);
     iprot.ReadMessageEnd();
     describe_version_result result = new describe_version_result();
     result.Success = iface_.describe_version();
     oprot.WriteMessageBegin(new TMessage("describe_version", TMessageType.Reply, seqid));
     result.Write(oprot);
     oprot.WriteMessageEnd();
     oprot.Transport.Flush();
 }
 public void get_schema_Process(int seqid, TProtocol iprot, TProtocol oprot)
 {
     get_schema_args args = new get_schema_args();
     args.Read(iprot);
     iprot.ReadMessageEnd();
     get_schema_result result = new get_schema_result();
     try
     {
         result.Success = iface_.get_schema(args.Db_name, args.Table_name);
     }
     catch (MetaException o1)
     {
         result.O1 = o1;
     }
     catch (UnknownTableException o2)
     {
         result.O2 = o2;
     }
     catch (UnknownDBException o3)
     {
         result.O3 = o3;
     }
     oprot.WriteMessageBegin(new TMessage("get_schema", TMessageType.Reply, seqid));
     result.Write(oprot);
     oprot.WriteMessageEnd();
     oprot.Transport.Flush();
 }
 public void get_privilege_set_Process(int seqid, TProtocol iprot, TProtocol oprot)
 {
     get_privilege_set_args args = new get_privilege_set_args();
     args.Read(iprot);
     iprot.ReadMessageEnd();
     get_privilege_set_result result = new get_privilege_set_result();
     try
     {
         result.Success = iface_.get_privilege_set(args.HiveObject, args.User_name, args.Group_names);
     }
     catch (MetaException o1)
     {
         result.O1 = o1;
     }
     oprot.WriteMessageBegin(new TMessage("get_privilege_set", TMessageType.Reply, seqid));
     result.Write(oprot);
     oprot.WriteMessageEnd();
     oprot.Transport.Flush();
 }
 public void get_partition_with_auth_Process(int seqid, TProtocol iprot, TProtocol oprot)
 {
     get_partition_with_auth_args args = new get_partition_with_auth_args();
     args.Read(iprot);
     iprot.ReadMessageEnd();
     get_partition_with_auth_result result = new get_partition_with_auth_result();
     try
     {
         result.Success = iface_.get_partition_with_auth(args.Db_name, args.Tbl_name, args.Part_vals, args.User_name, args.Group_names);
     }
     catch (MetaException o1)
     {
         result.O1 = o1;
     }
     catch (NoSuchObjectException o2)
     {
         result.O2 = o2;
     }
     oprot.WriteMessageBegin(new TMessage("get_partition_with_auth", TMessageType.Reply, seqid));
     result.Write(oprot);
     oprot.WriteMessageEnd();
     oprot.Transport.Flush();
 }
 public void get_partition_names_ps_Process(int seqid, TProtocol iprot, TProtocol oprot)
 {
     get_partition_names_ps_args args = new get_partition_names_ps_args();
     args.Read(iprot);
     iprot.ReadMessageEnd();
     get_partition_names_ps_result result = new get_partition_names_ps_result();
     try
     {
         result.Success = iface_.get_partition_names_ps(args.Db_name, args.Tbl_name, args.Part_vals, args.Max_parts);
     }
     catch (MetaException o1)
     {
         result.O1 = o1;
     }
     oprot.WriteMessageBegin(new TMessage("get_partition_names_ps", TMessageType.Reply, seqid));
     result.Write(oprot);
     oprot.WriteMessageEnd();
     oprot.Transport.Flush();
 }
 public void get_partitions_by_filter_Process(int seqid, TProtocol iprot, TProtocol oprot)
 {
     get_partitions_by_filter_args args = new get_partitions_by_filter_args();
     args.Read(iprot);
     iprot.ReadMessageEnd();
     get_partitions_by_filter_result result = new get_partitions_by_filter_result();
     try
     {
         result.Success = iface_.get_partitions_by_filter(args.Db_name, args.Tbl_name, args.Filter, args.Max_parts);
     }
     catch (MetaException o1)
     {
         result.O1 = o1;
     }
     catch (NoSuchObjectException o2)
     {
         result.O2 = o2;
     }
     oprot.WriteMessageBegin(new TMessage("get_partitions_by_filter", TMessageType.Reply, seqid));
     result.Write(oprot);
     oprot.WriteMessageEnd();
     oprot.Transport.Flush();
 }
 public void get_delegation_token_with_signature_Process(int seqid, TProtocol iprot, TProtocol oprot)
 {
     get_delegation_token_with_signature_args args = new get_delegation_token_with_signature_args();
     args.Read(iprot);
     iprot.ReadMessageEnd();
     get_delegation_token_with_signature_result result = new get_delegation_token_with_signature_result();
     try
     {
         result.Success = iface_.get_delegation_token_with_signature(args.Renewer_kerberos_principal_name, args.Token_signature);
     }
     catch (MetaException o1)
     {
         result.O1 = o1;
     }
     oprot.WriteMessageBegin(new TMessage("get_delegation_token_with_signature", TMessageType.Reply, seqid));
     result.Write(oprot);
     oprot.WriteMessageEnd();
     oprot.Transport.Flush();
 }
Exemple #15
0
 public override void ReadMessageEnd()
 {
     WrappedProtocol.ReadMessageEnd();
 }
 public void describe_splits_Process(int seqid, TProtocol iprot, TProtocol oprot)
 {
     describe_splits_args args = new describe_splits_args();
     args.Read(iprot);
     iprot.ReadMessageEnd();
     describe_splits_result result = new describe_splits_result();
     try {
       result.Success = iface_.describe_splits(args.CfName, args.Start_token, args.End_token, args.Keys_per_split);
     } catch (InvalidRequestException ire) {
       result.Ire = ire;
     }
     oprot.WriteMessageBegin(new TMessage("describe_splits", TMessageType.Reply, seqid));
     result.Write(oprot);
     oprot.WriteMessageEnd();
     oprot.Transport.Flush();
 }
 public void get_type_Process(int seqid, TProtocol iprot, TProtocol oprot)
 {
     get_type_args args = new get_type_args();
     args.Read(iprot);
     iprot.ReadMessageEnd();
     get_type_result result = new get_type_result();
     try
     {
         result.Success = iface_.get_type(args.Name);
     }
     catch (MetaException o1)
     {
         result.O1 = o1;
     }
     catch (NoSuchObjectException o2)
     {
         result.O2 = o2;
     }
     oprot.WriteMessageBegin(new TMessage("get_type", TMessageType.Reply, seqid));
     result.Write(oprot);
     oprot.WriteMessageEnd();
     oprot.Transport.Flush();
 }
 public void execute_cql_query_Process(int seqid, TProtocol iprot, TProtocol oprot)
 {
     execute_cql_query_args args = new execute_cql_query_args();
     args.Read(iprot);
     iprot.ReadMessageEnd();
     execute_cql_query_result result = new execute_cql_query_result();
     try {
       result.Success = iface_.execute_cql_query(args.Query, args.Compression);
     } catch (InvalidRequestException ire) {
       result.Ire = ire;
     } catch (UnavailableException ue) {
       result.Ue = ue;
     } catch (TimedOutException te) {
       result.Te = te;
     } catch (SchemaDisagreementException sde) {
       result.Sde = sde;
     }
     oprot.WriteMessageBegin(new TMessage("execute_cql_query", TMessageType.Reply, seqid));
     result.Write(oprot);
     oprot.WriteMessageEnd();
     oprot.Transport.Flush();
 }
 public void grant_privileges_Process(int seqid, TProtocol iprot, TProtocol oprot)
 {
     grant_privileges_args args = new grant_privileges_args();
     args.Read(iprot);
     iprot.ReadMessageEnd();
     grant_privileges_result result = new grant_privileges_result();
     try
     {
         result.Success = iface_.grant_privileges(args.Privileges);
     }
     catch (MetaException o1)
     {
         result.O1 = o1;
     }
     oprot.WriteMessageBegin(new TMessage("grant_privileges", TMessageType.Reply, seqid));
     result.Write(oprot);
     oprot.WriteMessageEnd();
     oprot.Transport.Flush();
 }
 public void login_Process(int seqid, TProtocol iprot, TProtocol oprot)
 {
     login_args args = new login_args();
     args.Read(iprot);
     iprot.ReadMessageEnd();
     login_result result = new login_result();
     try {
       iface_.login(args.Auth_request);
     } catch (AuthenticationException authnx) {
       result.Authnx = authnx;
     } catch (AuthorizationException authzx) {
       result.Authzx = authzx;
     }
     oprot.WriteMessageBegin(new TMessage("login", TMessageType.Reply, seqid));
     result.Write(oprot);
     oprot.WriteMessageEnd();
     oprot.Transport.Flush();
 }
 public void list_privileges_Process(int seqid, TProtocol iprot, TProtocol oprot)
 {
     list_privileges_args args = new list_privileges_args();
     args.Read(iprot);
     iprot.ReadMessageEnd();
     list_privileges_result result = new list_privileges_result();
     try
     {
         result.Success = iface_.list_privileges(args.Principal_name, args.Principal_type, args.HiveObject);
     }
     catch (MetaException o1)
     {
         result.O1 = o1;
     }
     oprot.WriteMessageBegin(new TMessage("list_privileges", TMessageType.Reply, seqid));
     result.Write(oprot);
     oprot.WriteMessageEnd();
     oprot.Transport.Flush();
 }
 public void remove_Process(int seqid, TProtocol iprot, TProtocol oprot)
 {
     remove_args args = new remove_args();
     args.Read(iprot);
     iprot.ReadMessageEnd();
     remove_result result = new remove_result();
     try {
       iface_.remove(args.Key, args.Column_path, args.Timestamp, 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("remove", TMessageType.Reply, seqid));
     result.Write(oprot);
     oprot.WriteMessageEnd();
     oprot.Transport.Flush();
 }
 public void partition_name_to_vals_Process(int seqid, TProtocol iprot, TProtocol oprot)
 {
     partition_name_to_vals_args args = new partition_name_to_vals_args();
     args.Read(iprot);
     iprot.ReadMessageEnd();
     partition_name_to_vals_result result = new partition_name_to_vals_result();
     try
     {
         result.Success = iface_.partition_name_to_vals(args.Part_name);
     }
     catch (MetaException o1)
     {
         result.O1 = o1;
     }
     oprot.WriteMessageBegin(new TMessage("partition_name_to_vals", TMessageType.Reply, seqid));
     result.Write(oprot);
     oprot.WriteMessageEnd();
     oprot.Transport.Flush();
 }
 public void system_update_keyspace_Process(int seqid, TProtocol iprot, TProtocol oprot)
 {
     system_update_keyspace_args args = new system_update_keyspace_args();
     args.Read(iprot);
     iprot.ReadMessageEnd();
     system_update_keyspace_result result = new system_update_keyspace_result();
     try {
       result.Success = iface_.system_update_keyspace(args.Ks_def);
     } catch (InvalidRequestException ire) {
       result.Ire = ire;
     } catch (SchemaDisagreementException sde) {
       result.Sde = sde;
     }
     oprot.WriteMessageBegin(new TMessage("system_update_keyspace", TMessageType.Reply, seqid));
     result.Write(oprot);
     oprot.WriteMessageEnd();
     oprot.Transport.Flush();
 }
 public void renew_delegation_token_Process(int seqid, TProtocol iprot, TProtocol oprot)
 {
     renew_delegation_token_args args = new renew_delegation_token_args();
     args.Read(iprot);
     iprot.ReadMessageEnd();
     renew_delegation_token_result result = new renew_delegation_token_result();
     try
     {
         result.Success = iface_.renew_delegation_token(args.Token_str_form);
     }
     catch (MetaException o1)
     {
         result.O1 = o1;
     }
     oprot.WriteMessageBegin(new TMessage("renew_delegation_token", TMessageType.Reply, seqid));
     result.Write(oprot);
     oprot.WriteMessageEnd();
     oprot.Transport.Flush();
 }
Exemple #26
0
 public void batch_insert_superColumn_blocking_Process(int seqid, TProtocol iprot, TProtocol oprot)
 {
     batch_insert_superColumn_blocking_args args = new batch_insert_superColumn_blocking_args();
       args.Read(iprot);
       iprot.ReadMessageEnd();
       batch_insert_superColumn_blocking_result result = new batch_insert_superColumn_blocking_result();
       result.success = iface_.batch_insert_superColumn_blocking(args.batchMutationSuper);
       result.__isset.success = true;
       oprot.WriteMessageBegin(new TMessage("batch_insert_superColumn_blocking", TMessageType.Reply, seqid));
       result.Write(oprot);
       oprot.WriteMessageEnd();
       oprot.Transport.Flush();
 }
 public void revoke_role_Process(int seqid, TProtocol iprot, TProtocol oprot)
 {
     revoke_role_args args = new revoke_role_args();
     args.Read(iprot);
     iprot.ReadMessageEnd();
     revoke_role_result result = new revoke_role_result();
     try
     {
         result.Success = iface_.revoke_role(args.Role_name, args.Principal_name, args.Principal_type);
     }
     catch (MetaException o1)
     {
         result.O1 = o1;
     }
     oprot.WriteMessageBegin(new TMessage("revoke_role", TMessageType.Reply, seqid));
     result.Write(oprot);
     oprot.WriteMessageEnd();
     oprot.Transport.Flush();
 }
Exemple #28
0
 public void get_superColumn_Process(int seqid, TProtocol iprot, TProtocol oprot)
 {
     get_superColumn_args args = new get_superColumn_args();
       args.Read(iprot);
       iprot.ReadMessageEnd();
       get_superColumn_result result = new get_superColumn_result();
       result.success = iface_.get_superColumn(args.tablename, args.key, args.columnFamily);
       result.__isset.success = true;
       oprot.WriteMessageBegin(new TMessage("get_superColumn", TMessageType.Reply, seqid));
       result.Write(oprot);
       oprot.WriteMessageEnd();
       oprot.Transport.Flush();
 }
 public void describe_keyspace_Process(int seqid, TProtocol iprot, TProtocol oprot)
 {
     describe_keyspace_args args = new describe_keyspace_args();
     args.Read(iprot);
     iprot.ReadMessageEnd();
     describe_keyspace_result result = new describe_keyspace_result();
     try {
       result.Success = iface_.describe_keyspace(args.Keyspace);
     } catch (NotFoundException nfe) {
       result.Nfe = nfe;
     } catch (InvalidRequestException ire) {
       result.Ire = ire;
     }
     oprot.WriteMessageBegin(new TMessage("describe_keyspace", TMessageType.Reply, seqid));
     result.Write(oprot);
     oprot.WriteMessageEnd();
     oprot.Transport.Flush();
 }
Exemple #30
0
 public void remove_Process(int seqid, TProtocol iprot, TProtocol oprot)
 {
     remove_args args = new remove_args();
       args.Read(iprot);
       iprot.ReadMessageEnd();
       iface_.remove(args.tablename, args.key, args.columnFamily_column);
       return;
 }
 public void describe_schema_versions_Process(int seqid, TProtocol iprot, TProtocol oprot)
 {
     describe_schema_versions_args args = new describe_schema_versions_args();
     args.Read(iprot);
     iprot.ReadMessageEnd();
     describe_schema_versions_result result = new describe_schema_versions_result();
     try {
       result.Success = iface_.describe_schema_versions();
     } catch (InvalidRequestException ire) {
       result.Ire = ire;
     }
     oprot.WriteMessageBegin(new TMessage("describe_schema_versions", TMessageType.Reply, seqid));
     result.Write(oprot);
     oprot.WriteMessageEnd();
     oprot.Transport.Flush();
 }