org.graylog2.shared.system.stats.$AutoValue_SystemStats Maven / Gradle / Ivy
package org.graylog2.shared.system.stats;
import com.fasterxml.jackson.annotation.JsonProperty;
import javax.annotation.Nullable;
import javax.annotation.processing.Generated;
import org.graylog2.shared.system.stats.fs.FsStats;
import org.graylog2.shared.system.stats.jvm.JvmStats;
import org.graylog2.shared.system.stats.network.NetworkStats;
import org.graylog2.shared.system.stats.os.OsStats;
import org.graylog2.shared.system.stats.process.ProcessStats;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
abstract class $AutoValue_SystemStats extends SystemStats {
private final FsStats fsStats;
private final JvmStats jvmStats;
@Nullable
private final NetworkStats networkStats;
private final OsStats osStats;
private final ProcessStats processStats;
$AutoValue_SystemStats(
FsStats fsStats,
JvmStats jvmStats,
@Nullable NetworkStats networkStats,
OsStats osStats,
ProcessStats processStats) {
if (fsStats == null) {
throw new NullPointerException("Null fsStats");
}
this.fsStats = fsStats;
if (jvmStats == null) {
throw new NullPointerException("Null jvmStats");
}
this.jvmStats = jvmStats;
this.networkStats = networkStats;
if (osStats == null) {
throw new NullPointerException("Null osStats");
}
this.osStats = osStats;
if (processStats == null) {
throw new NullPointerException("Null processStats");
}
this.processStats = processStats;
}
@JsonProperty("fs")
@Override
public FsStats fsStats() {
return fsStats;
}
@JsonProperty("jvm")
@Override
public JvmStats jvmStats() {
return jvmStats;
}
@JsonProperty("network")
@Nullable
@Override
public NetworkStats networkStats() {
return networkStats;
}
@JsonProperty("os")
@Override
public OsStats osStats() {
return osStats;
}
@JsonProperty("process")
@Override
public ProcessStats processStats() {
return processStats;
}
@Override
public String toString() {
return "SystemStats{"
+ "fsStats=" + fsStats + ", "
+ "jvmStats=" + jvmStats + ", "
+ "networkStats=" + networkStats + ", "
+ "osStats=" + osStats + ", "
+ "processStats=" + processStats
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof SystemStats) {
SystemStats that = (SystemStats) o;
return this.fsStats.equals(that.fsStats())
&& this.jvmStats.equals(that.jvmStats())
&& (this.networkStats == null ? that.networkStats() == null : this.networkStats.equals(that.networkStats()))
&& this.osStats.equals(that.osStats())
&& this.processStats.equals(that.processStats());
}
return false;
}
@Override
public int hashCode() {
int h$ = 1;
h$ *= 1000003;
h$ ^= fsStats.hashCode();
h$ *= 1000003;
h$ ^= jvmStats.hashCode();
h$ *= 1000003;
h$ ^= (networkStats == null) ? 0 : networkStats.hashCode();
h$ *= 1000003;
h$ ^= osStats.hashCode();
h$ *= 1000003;
h$ ^= processStats.hashCode();
return h$;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy