All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.graylog2.shared.system.stats.network.$AutoValue_NetworkStats_TcpStats Maven / Gradle / Ivy

There is a newer version: 5.2.7
Show newest version


package org.graylog2.shared.system.stats.network;

import com.fasterxml.jackson.annotation.JsonProperty;
import javax.annotation.Generated;

@Generated("com.google.auto.value.processor.AutoValueProcessor")
abstract class $AutoValue_NetworkStats_TcpStats extends NetworkStats.TcpStats {

  private final long activeOpens;

  private final long passiveOpens;

  private final long attemptFails;

  private final long estabResets;

  private final long currEstab;

  private final long inSegs;

  private final long outSegs;

  private final long retransSegs;

  private final long inErrs;

  private final long outRsts;

  $AutoValue_NetworkStats_TcpStats(
      long activeOpens,
      long passiveOpens,
      long attemptFails,
      long estabResets,
      long currEstab,
      long inSegs,
      long outSegs,
      long retransSegs,
      long inErrs,
      long outRsts) {
    this.activeOpens = activeOpens;
    this.passiveOpens = passiveOpens;
    this.attemptFails = attemptFails;
    this.estabResets = estabResets;
    this.currEstab = currEstab;
    this.inSegs = inSegs;
    this.outSegs = outSegs;
    this.retransSegs = retransSegs;
    this.inErrs = inErrs;
    this.outRsts = outRsts;
  }

  @JsonProperty
  @Override
  public long activeOpens() {
    return activeOpens;
  }

  @JsonProperty
  @Override
  public long passiveOpens() {
    return passiveOpens;
  }

  @JsonProperty
  @Override
  public long attemptFails() {
    return attemptFails;
  }

  @JsonProperty
  @Override
  public long estabResets() {
    return estabResets;
  }

  @JsonProperty
  @Override
  public long currEstab() {
    return currEstab;
  }

  @JsonProperty
  @Override
  public long inSegs() {
    return inSegs;
  }

  @JsonProperty
  @Override
  public long outSegs() {
    return outSegs;
  }

  @JsonProperty
  @Override
  public long retransSegs() {
    return retransSegs;
  }

  @JsonProperty
  @Override
  public long inErrs() {
    return inErrs;
  }

  @JsonProperty
  @Override
  public long outRsts() {
    return outRsts;
  }

  @Override
  public String toString() {
    return "TcpStats{"
         + "activeOpens=" + activeOpens + ", "
         + "passiveOpens=" + passiveOpens + ", "
         + "attemptFails=" + attemptFails + ", "
         + "estabResets=" + estabResets + ", "
         + "currEstab=" + currEstab + ", "
         + "inSegs=" + inSegs + ", "
         + "outSegs=" + outSegs + ", "
         + "retransSegs=" + retransSegs + ", "
         + "inErrs=" + inErrs + ", "
         + "outRsts=" + outRsts
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof NetworkStats.TcpStats) {
      NetworkStats.TcpStats that = (NetworkStats.TcpStats) o;
      return (this.activeOpens == that.activeOpens())
           && (this.passiveOpens == that.passiveOpens())
           && (this.attemptFails == that.attemptFails())
           && (this.estabResets == that.estabResets())
           && (this.currEstab == that.currEstab())
           && (this.inSegs == that.inSegs())
           && (this.outSegs == that.outSegs())
           && (this.retransSegs == that.retransSegs())
           && (this.inErrs == that.inErrs())
           && (this.outRsts == that.outRsts());
    }
    return false;
  }

  @Override
  public int hashCode() {
    int h$ = 1;
    h$ *= 1000003;
    h$ ^= (int) ((activeOpens >>> 32) ^ activeOpens);
    h$ *= 1000003;
    h$ ^= (int) ((passiveOpens >>> 32) ^ passiveOpens);
    h$ *= 1000003;
    h$ ^= (int) ((attemptFails >>> 32) ^ attemptFails);
    h$ *= 1000003;
    h$ ^= (int) ((estabResets >>> 32) ^ estabResets);
    h$ *= 1000003;
    h$ ^= (int) ((currEstab >>> 32) ^ currEstab);
    h$ *= 1000003;
    h$ ^= (int) ((inSegs >>> 32) ^ inSegs);
    h$ *= 1000003;
    h$ ^= (int) ((outSegs >>> 32) ^ outSegs);
    h$ *= 1000003;
    h$ ^= (int) ((retransSegs >>> 32) ^ retransSegs);
    h$ *= 1000003;
    h$ ^= (int) ((inErrs >>> 32) ^ inErrs);
    h$ *= 1000003;
    h$ ^= (int) ((outRsts >>> 32) ^ outRsts);
    return h$;
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy