org.zodiac.monitor.metrics.config.MetricsDruidInfo Maven / Gradle / Ivy
package org.zodiac.monitor.metrics.config;
import java.util.Objects;
public class MetricsDruidInfo {
private boolean enabled = false;
private final MetricsDruidSQLInfo sql = new MetricsDruidSQLInfo();
public MetricsDruidInfo() {
}
public boolean isEnabled() {
return enabled;
}
public void setEnabled(boolean enabled) {
this.enabled = enabled;
}
public MetricsDruidSQLInfo getSql() {
return sql;
}
@Override
public int hashCode() {
return Objects.hash(enabled, sql);
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (getClass() != obj.getClass())
return false;
MetricsDruidInfo other = (MetricsDruidInfo)obj;
return enabled == other.enabled && Objects.equals(sql, other.sql);
}
@Override
public String toString() {
return "MetricsDruidInfo [enabled=" + enabled + ", sql=" + sql + "]";
}
}