当前位置: 首页>>代码示例>>C#>>正文


C# TProtocol.WriteMessageEnd方法代码示例

本文整理汇总了C#中Thrift.Protocol.TProtocol.WriteMessageEnd方法的典型用法代码示例。如果您正苦于以下问题:C# TProtocol.WriteMessageEnd方法的具体用法?C# TProtocol.WriteMessageEnd怎么用?C# TProtocol.WriteMessageEnd使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Thrift.Protocol.TProtocol的用法示例。


在下文中一共展示了TProtocol.WriteMessageEnd方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: Process

 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;
 }
开发者ID:tritao,项目名称:thrift,代码行数:26,代码来源:TProcessor.cs

示例2: Fail

        private void Fail( TProtocol oprot, TMessage message, TApplicationException.ExceptionType extype, string etxt)
        {
            TApplicationException appex = new TApplicationException( extype, etxt);

            TMessage newMessage = new TMessage(message.Name, TMessageType.Exception, message.SeqID);

            oprot.WriteMessageBegin(newMessage);
            appex.Write( oprot);
            oprot.WriteMessageEnd();
            oprot.Transport.Flush();
        }
开发者ID:ConfusedReality,项目名称:pkg_serialization_thrift,代码行数:11,代码来源:TMultiplexedProcessor.cs

示例3: batch_insert_superColumn_blocking_Process

 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();
 }
开发者ID:jiansheng,项目名称:cassandra,代码行数:13,代码来源:Cassandra.cs

示例4: system_update_keyspace_Process

 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();
 }
开发者ID:razzmatazz,项目名称:cassandra-sharp-client,代码行数:18,代码来源:Cassandra.cs

示例5: remove_Process

 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();
 }
开发者ID:razzmatazz,项目名称:cassandra-sharp-client,代码行数:20,代码来源:Cassandra.cs

示例6: login_Process

 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();
 }
开发者ID:razzmatazz,项目名称:cassandra-sharp-client,代码行数:18,代码来源:Cassandra.cs

示例7: execute_cql_query_Process

 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();
 }
开发者ID:razzmatazz,项目名称:cassandra-sharp-client,代码行数:22,代码来源:Cassandra.cs

示例8: describe_splits_Process

 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();
 }
开发者ID:razzmatazz,项目名称:cassandra-sharp-client,代码行数:16,代码来源:Cassandra.cs

示例9: get_privilege_set_Process

 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();
 }
开发者ID:zbw911,项目名称:CS4Hadoop,代码行数:19,代码来源:ThriftHiveMetastore.cs

示例10: get_partition_with_auth_Process

 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();
 }
开发者ID:zbw911,项目名称:CS4Hadoop,代码行数:23,代码来源:ThriftHiveMetastore.cs

示例11: get_partition_names_ps_Process

 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();
 }
开发者ID:zbw911,项目名称:CS4Hadoop,代码行数:19,代码来源:ThriftHiveMetastore.cs

示例12: get_partitions_by_filter_Process

 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();
 }
开发者ID:zbw911,项目名称:CS4Hadoop,代码行数:23,代码来源:ThriftHiveMetastore.cs

示例13: get_delegation_token_with_signature_Process

 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();
 }
开发者ID:zbw911,项目名称:CS4Hadoop,代码行数:19,代码来源:ThriftHiveMetastore.cs

示例14: get_config_value_Process

 public void get_config_value_Process(int seqid, TProtocol iprot, TProtocol oprot)
 {
     get_config_value_args args = new get_config_value_args();
     args.Read(iprot);
     iprot.ReadMessageEnd();
     get_config_value_result result = new get_config_value_result();
     try
     {
         result.Success = iface_.get_config_value(args.Name, args.DefaultValue);
     }
     catch (ConfigValSecurityException o1)
     {
         result.O1 = o1;
     }
     oprot.WriteMessageBegin(new TMessage("get_config_value", TMessageType.Reply, seqid));
     result.Write(oprot);
     oprot.WriteMessageEnd();
     oprot.Transport.Flush();
 }
开发者ID:zbw911,项目名称:CS4Hadoop,代码行数:19,代码来源:ThriftHiveMetastore.cs

示例15: drop_table_Process

 public void drop_table_Process(int seqid, TProtocol iprot, TProtocol oprot)
 {
     drop_table_args args = new drop_table_args();
     args.Read(iprot);
     iprot.ReadMessageEnd();
     drop_table_result result = new drop_table_result();
     try
     {
         iface_.drop_table(args.Dbname, args.Name, args.DeleteData);
     }
     catch (NoSuchObjectException o1)
     {
         result.O1 = o1;
     }
     catch (MetaException o3)
     {
         result.O3 = o3;
     }
     oprot.WriteMessageBegin(new TMessage("drop_table", TMessageType.Reply, seqid));
     result.Write(oprot);
     oprot.WriteMessageEnd();
     oprot.Transport.Flush();
 }
开发者ID:zbw911,项目名称:CS4Hadoop,代码行数:23,代码来源:ThriftHiveMetastore.cs


注:本文中的Thrift.Protocol.TProtocol.WriteMessageEnd方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。