public void describe_ring_Process(int seqid, TProtocol iprot, TProtocol oprot) { describe_ring_args args = new describe_ring_args(); args.Read(iprot); iprot.ReadMessageEnd(); describe_ring_result result = new describe_ring_result(); try { result.Success = iface_.describe_ring(args.Keyspace); } catch (InvalidRequestException ire) { result.Ire = ire; } oprot.WriteMessageBegin(new TMessage("describe_ring", TMessageType.Reply, seqid)); result.Write(oprot); oprot.WriteMessageEnd(); oprot.Transport.Flush(); }
public List<TokenRange> recv_describe_ring() { TMessage msg = iprot_.ReadMessageBegin(); if (msg.Type == TMessageType.Exception) { TApplicationException x = TApplicationException.Read(iprot_); iprot_.ReadMessageEnd(); throw x; } describe_ring_result result = new describe_ring_result(); result.Read(iprot_); iprot_.ReadMessageEnd(); if (result.__isset.success) { return result.Success; } if (result.__isset.ire) { throw result.Ire; } throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "describe_ring failed: unknown result"); }