Example #1
0
 public void recv_submitTopologyWithOpts()
 {
   TMessage msg = iprot_.ReadMessageBegin();
   if (msg.Type == TMessageType.Exception) {
     TApplicationException x = TApplicationException.Read(iprot_);
     iprot_.ReadMessageEnd();
     throw x;
   }
   submitTopologyWithOpts_result result = new submitTopologyWithOpts_result();
   result.Read(iprot_);
   iprot_.ReadMessageEnd();
   if (result.__isset.e) {
     throw result.E;
   }
   if (result.__isset.ite) {
     throw result.Ite;
   }
   if (result.__isset.aze) {
     throw result.Aze;
   }
   return;
 }
Example #2
0
 public void submitTopologyWithOpts_Process(int seqid, TProtocol iprot, TProtocol oprot)
 {
   submitTopologyWithOpts_args args = new submitTopologyWithOpts_args();
   args.Read(iprot);
   iprot.ReadMessageEnd();
   submitTopologyWithOpts_result result = new submitTopologyWithOpts_result();
   try {
     iface_.submitTopologyWithOpts(args.Name, args.UploadedJarLocation, args.JsonConf, args.Topology, args.Options);
   } catch (AlreadyAliveException e) {
     result.E = e;
   } catch (InvalidTopologyException ite) {
     result.Ite = ite;
   } catch (AuthorizationException aze) {
     result.Aze = aze;
   }
   oprot.WriteMessageBegin(new TMessage("submitTopologyWithOpts", TMessageType.Reply, seqid)); 
   result.Write(oprot);
   oprot.WriteMessageEnd();
   oprot.Transport.Flush();
 }