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

com.custardsource.parfait.timing.AbstractThreadMetric Maven / Gradle / Ivy

The newest version!
package com.custardsource.parfait.timing;

import javax.measure.unit.Unit;

public abstract class AbstractThreadMetric implements ThreadMetric {
    private final String name;
    private final Unit unit;
    private final String counterSuffix;
    private final String description;

    public AbstractThreadMetric(String name, Unit unit, String counterSuffix, String description) {
        this.name = name;
        this.unit = unit;
        this.counterSuffix = counterSuffix;
        this.description = description;
    }

    public String getMetricName() {
        return name;
    }

    public Unit getUnit() {
        return unit;
    }

    public String getCounterSuffix() {
        return counterSuffix;
    }

    public String getDescription() {
        return description;
    }

    @Override
    public String toString() {
        return "Metric[" + name + "]";
    }

    
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy