Examples of MonitorOptions


Examples of backtype.storm.generated.MonitorOptions

      Map conf = Utils.readStormConfig();
      client = NimbusClient.getConfiguredClient(conf);

      boolean isEnable = Boolean.valueOf(args[1]).booleanValue();

      MonitorOptions options = new MonitorOptions();
      options.set_isEnable(isEnable);

      client.getClient().metricMonitor(topologyName, options);

      String str = (isEnable) ? "enable" : "disable";
      System.out.println("Successfully submit command to " + str
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.