Package com.alibaba.jstorm.client.metric

Examples of com.alibaba.jstorm.client.metric.MetricCallback


      Map<String, MetricCallback> callbacks = Metrics.getUserDefMetric().getCallbacks();
      String name = "";
      try{
            for (Entry<String, T> entry : metrics.entrySet()) {
              name = entry.getKey();
                MetricCallback callback = callbacks.get(entry.getValue());
                if (callback != null)
                    callback.callback(entry.getValue());
            }
      } catch (Exception e) {
        logger.error("Error when excuting the callbacks defined by user. CallBack Name=" + name, e);
      }
    }
View Full Code Here

TOP

Related Classes of com.alibaba.jstorm.client.metric.MetricCallback

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.