示例#1
0
 public void send_submitTopology(string name, string uploadedJarLocation, string jsonConf, StormTopology topology)
 #endif
 {
   oprot_.WriteMessageBegin(new TMessage("submitTopology", TMessageType.Call, seqid_));
   submitTopology_args args = new submitTopology_args();
   args.Name = name;
   args.UploadedJarLocation = uploadedJarLocation;
   args.JsonConf = jsonConf;
   args.Topology = topology;
   args.Write(oprot_);
   oprot_.WriteMessageEnd();
   #if SILVERLIGHT
   return oprot_.Transport.BeginFlush(callback, state);
   #else
   oprot_.Transport.Flush();
   #endif
 }
示例#2
0
 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();
 }