예제 #1
0
 public void getTopology_Process(int seqid, TProtocol iprot, TProtocol oprot)
 {
   getTopology_args args = new getTopology_args();
   args.Read(iprot);
   iprot.ReadMessageEnd();
   getTopology_result result = new getTopology_result();
   try {
     result.Success = iface_.getTopology(args.Id);
   } catch (NotAliveException e) {
     result.E = e;
   } catch (AuthorizationException aze) {
     result.Aze = aze;
   }
   oprot.WriteMessageBegin(new TMessage("getTopology", TMessageType.Reply, seqid)); 
   result.Write(oprot);
   oprot.WriteMessageEnd();
   oprot.Transport.Flush();
 }
예제 #2
0
 public StormTopology recv_getTopology()
 {
   TMessage msg = iprot_.ReadMessageBegin();
   if (msg.Type == TMessageType.Exception) {
     TApplicationException x = TApplicationException.Read(iprot_);
     iprot_.ReadMessageEnd();
     throw x;
   }
   getTopology_result result = new getTopology_result();
   result.Read(iprot_);
   iprot_.ReadMessageEnd();
   if (result.__isset.success) {
     return result.Success;
   }
   if (result.__isset.e) {
     throw result.E;
   }
   if (result.__isset.aze) {
     throw result.Aze;
   }
   throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "getTopology failed: unknown result");
 }