Example usage for org.apache.hadoop.metrics2 MetricsInfo name

List of usage examples for org.apache.hadoop.metrics2 MetricsInfo name

Introduction

In this page you can find the example usage for org.apache.hadoop.metrics2 MetricsInfo name.

Prototype

String name();

Source Link

Document

Typically name corresponds to annotation Metric#value() or the name of the class.

Usage

From source file:org.apache.phoenix.trace.MetricsInfoImpl.java

License:Apache License

@Override
public boolean equals(Object obj) {
    if (obj instanceof MetricsInfo) {
        MetricsInfo other = (MetricsInfo) obj;
        return Objects.equal(name, other.name()) && Objects.equal(description, other.description());
    }//from   w  w w  . ja v  a  2 s  . c  o m
    return false;
}