Examples of CountShellMetric


Examples of backtype.storm.metric.api.rpc.CountShellMetric

 
  @Override
  public void open(Map conf, TopologyContext context, SpoutOutputCollector collector) {
    super.open(conf, context, collector);
 
    CountShellMetric cMetric = new CountShellMetric();
    context.registerMetric("my-custom-shellspout-metric", cMetric, 5);
  }
View Full Code Here

Examples of backtype.storm.metric.api.rpc.CountShellMetric

  }

  public void prepare(Map stormConf, TopologyContext context, OutputCollector collector) {
    super.prepare(stormConf, context, collector);
   
    CountShellMetric cMetric = new CountShellMetric();
    context.registerMetric("my-custom-shell-metric", cMetric, 5);
  }
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.