Examples of Metricable


Examples of info.ganglia.metric.Metricable

   * @param additive
   *            If false the GMetric values are reset to 0 after update.  If true the GMetric values are additive.
   * @return
   */
  public Metricable createGMetric(String host, String name, String type, String units, int slope, boolean clearValues) {
    Metricable gmetric = null;
    if (GMetric.VALUE_TYPE_INT.equals(type)) {
      gmetric = new GMetricInteger(host, name, type, units, slope, clearValues);
    } else if (GMetric.VALUE_TYPE_STRING.equals(type)) {
      gmetric = new GMetricString(host, name, type, units, slope, clearValues);
    } else if (GMetric.VALUE_TYPE_FLOAT.equals(type)) {
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.