org.zodiac.sentinel.base.config.SentinelMetricInfo Maven / Gradle / Ivy
package org.zodiac.sentinel.base.config;
import java.util.Objects;
import org.zodiac.sdk.toolkit.constants.CharsetConstants;
public class SentinelMetricInfo {
private String fileSingleSize;
private String fileTotalCount;
private String charset = CharsetConstants.UTF_8_NAME;
public SentinelMetricInfo() {
super();
}
public String getFileSingleSize() {
return fileSingleSize;
}
public void setFileSingleSize(String fileSingleSize) {
this.fileSingleSize = fileSingleSize;
}
public String getFileTotalCount() {
return fileTotalCount;
}
public void setFileTotalCount(String fileTotalCount) {
this.fileTotalCount = fileTotalCount;
}
public String getCharset() {
return charset;
}
public void setCharset(String charset) {
this.charset = charset;
}
@Override
public int hashCode() {
return Objects.hash(charset, fileSingleSize, fileTotalCount);
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (getClass() != obj.getClass())
return false;
SentinelMetricInfo other = (SentinelMetricInfo)obj;
return Objects.equals(charset, other.charset) && Objects.equals(fileSingleSize, other.fileSingleSize)
&& Objects.equals(fileTotalCount, other.fileTotalCount);
}
@Override
public String toString() {
return "SentinelMetricInfo [fileSingleSize=" + fileSingleSize + ", fileTotalCount=" + fileTotalCount
+ ", charset=" + charset + "]";
}
}