Package backtype.storm.metric.api.rpc

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


  }

  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

Related Classes of backtype.storm.metric.api.rpc.CountShellMetric

Copyright © 2018 www.massapicom. 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.