All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.jamonapi.jmx.JamonJmxBeanPropertyDefault Maven / Gradle / Ivy

There is a newer version: 2.82
Show newest version
package com.jamonapi.jmx;


/**
 * Value object that holds the label, units and logical name of a monitor.  This is used
 * to get values from jamon for display in jmx.
 */
public class JamonJmxBeanPropertyDefault implements JamonJmxBeanProperty {
    protected final String label;
    protected final String units;
    protected final String name;

    public JamonJmxBeanPropertyDefault(String label, String units, String name) {
        this.label = label;
        this.units = units;
        this.name = name;
    }

    /** example: com.jamonapi.Exceptions */
    public String getLabel() {
        return label;
    }

    /** example: Exception */
    public String getUnits() {
        return units;
    }

    /** Return logical name to be used instead of label, or empty string if it doesn't exist. */
    public String getName() {
        return name;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy