org.graylog2.system.stats.elasticsearch.AutoValue_ShardStats Maven / Gradle / Ivy
package org.graylog2.system.stats.elasticsearch;
import com.fasterxml.jackson.annotation.JsonProperty;
import javax.annotation.processing.Generated;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_ShardStats extends ShardStats {
private final int numberOfNodes;
private final int numberOfDataNodes;
private final int activeShards;
private final int relocatingShards;
private final int activePrimaryShards;
private final int initializingShards;
private final int unassignedShards;
private final boolean timedOut;
AutoValue_ShardStats(
int numberOfNodes,
int numberOfDataNodes,
int activeShards,
int relocatingShards,
int activePrimaryShards,
int initializingShards,
int unassignedShards,
boolean timedOut) {
this.numberOfNodes = numberOfNodes;
this.numberOfDataNodes = numberOfDataNodes;
this.activeShards = activeShards;
this.relocatingShards = relocatingShards;
this.activePrimaryShards = activePrimaryShards;
this.initializingShards = initializingShards;
this.unassignedShards = unassignedShards;
this.timedOut = timedOut;
}
@JsonProperty
@Override
public int numberOfNodes() {
return numberOfNodes;
}
@JsonProperty
@Override
public int numberOfDataNodes() {
return numberOfDataNodes;
}
@JsonProperty
@Override
public int activeShards() {
return activeShards;
}
@JsonProperty
@Override
public int relocatingShards() {
return relocatingShards;
}
@JsonProperty
@Override
public int activePrimaryShards() {
return activePrimaryShards;
}
@JsonProperty
@Override
public int initializingShards() {
return initializingShards;
}
@JsonProperty
@Override
public int unassignedShards() {
return unassignedShards;
}
@JsonProperty
@Override
public boolean timedOut() {
return timedOut;
}
@Override
public String toString() {
return "ShardStats{"
+ "numberOfNodes=" + numberOfNodes + ", "
+ "numberOfDataNodes=" + numberOfDataNodes + ", "
+ "activeShards=" + activeShards + ", "
+ "relocatingShards=" + relocatingShards + ", "
+ "activePrimaryShards=" + activePrimaryShards + ", "
+ "initializingShards=" + initializingShards + ", "
+ "unassignedShards=" + unassignedShards + ", "
+ "timedOut=" + timedOut
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof ShardStats) {
ShardStats that = (ShardStats) o;
return this.numberOfNodes == that.numberOfNodes()
&& this.numberOfDataNodes == that.numberOfDataNodes()
&& this.activeShards == that.activeShards()
&& this.relocatingShards == that.relocatingShards()
&& this.activePrimaryShards == that.activePrimaryShards()
&& this.initializingShards == that.initializingShards()
&& this.unassignedShards == that.unassignedShards()
&& this.timedOut == that.timedOut();
}
return false;
}
@Override
public int hashCode() {
int h$ = 1;
h$ *= 1000003;
h$ ^= numberOfNodes;
h$ *= 1000003;
h$ ^= numberOfDataNodes;
h$ *= 1000003;
h$ ^= activeShards;
h$ *= 1000003;
h$ ^= relocatingShards;
h$ *= 1000003;
h$ ^= activePrimaryShards;
h$ *= 1000003;
h$ ^= initializingShards;
h$ *= 1000003;
h$ ^= unassignedShards;
h$ *= 1000003;
h$ ^= timedOut ? 1231 : 1237;
return h$;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy