public void send_submitTopologyWithOpts(string name, string uploadedJarLocation, string jsonConf, StormTopology topology, SubmitOptions options) #endif { oprot_.WriteMessageBegin(new TMessage("submitTopologyWithOpts", TMessageType.Call, seqid_)); submitTopologyWithOpts_args args = new submitTopologyWithOpts_args(); args.Name = name; args.UploadedJarLocation = uploadedJarLocation; args.JsonConf = jsonConf; args.Topology = topology; args.Options = options; args.Write(oprot_); oprot_.WriteMessageEnd(); #if SILVERLIGHT return oprot_.Transport.BeginFlush(callback, state); #else oprot_.Transport.Flush(); #endif }
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(); }