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

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

Introduction

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

Prototype

String description();

Source Link

Document

Typically the description corresponds to annotation Metric#about() 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  va2s. c o m*/
    return false;
}