public void recv_submitTopology() { TMessage msg = iprot_.ReadMessageBegin(); if (msg.Type == TMessageType.Exception) { TApplicationException x = TApplicationException.Read(iprot_); iprot_.ReadMessageEnd(); throw x; } submitTopology_result result = new submitTopology_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; }
public void submitTopology_Process(int seqid, TProtocol iprot, TProtocol oprot) { submitTopology_args args = new submitTopology_args(); args.Read(iprot); iprot.ReadMessageEnd(); submitTopology_result result = new submitTopology_result(); try { iface_.submitTopology(args.Name, args.UploadedJarLocation, args.JsonConf, args.Topology); } catch (AlreadyAliveException e) { result.E = e; } catch (InvalidTopologyException ite) { result.Ite = ite; } catch (AuthorizationException aze) { result.Aze = aze; } oprot.WriteMessageBegin(new TMessage("submitTopology", TMessageType.Reply, seqid)); result.Write(oprot); oprot.WriteMessageEnd(); oprot.Transport.Flush(); }