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

org.graylog2.system.stats.elasticsearch.$AutoValue_ElasticsearchStats Maven / Gradle / Ivy

There is a newer version: 6.1.4
Show newest version
package org.graylog2.system.stats.elasticsearch;

import com.fasterxml.jackson.annotation.JsonProperty;
import javax.annotation.processing.Generated;
import org.graylog2.indexer.indices.HealthStatus;

@Generated("com.google.auto.value.processor.AutoValueProcessor")
abstract class $AutoValue_ElasticsearchStats extends ElasticsearchStats {

  private final String clusterName;

  private final String clusterVersion;

  private final HealthStatus status;

  private final ClusterHealth clusterHealth;

  private final NodesStats nodesStats;

  private final IndicesStats indicesStats;

  $AutoValue_ElasticsearchStats(
      String clusterName,
      String clusterVersion,
      HealthStatus status,
      ClusterHealth clusterHealth,
      NodesStats nodesStats,
      IndicesStats indicesStats) {
    if (clusterName == null) {
      throw new NullPointerException("Null clusterName");
    }
    this.clusterName = clusterName;
    if (clusterVersion == null) {
      throw new NullPointerException("Null clusterVersion");
    }
    this.clusterVersion = clusterVersion;
    if (status == null) {
      throw new NullPointerException("Null status");
    }
    this.status = status;
    if (clusterHealth == null) {
      throw new NullPointerException("Null clusterHealth");
    }
    this.clusterHealth = clusterHealth;
    if (nodesStats == null) {
      throw new NullPointerException("Null nodesStats");
    }
    this.nodesStats = nodesStats;
    if (indicesStats == null) {
      throw new NullPointerException("Null indicesStats");
    }
    this.indicesStats = indicesStats;
  }

  @JsonProperty
  @Override
  public String clusterName() {
    return clusterName;
  }

  @JsonProperty
  @Override
  public String clusterVersion() {
    return clusterVersion;
  }

  @JsonProperty
  @Override
  public HealthStatus status() {
    return status;
  }

  @JsonProperty
  @Override
  public ClusterHealth clusterHealth() {
    return clusterHealth;
  }

  @JsonProperty
  @Override
  public NodesStats nodesStats() {
    return nodesStats;
  }

  @JsonProperty
  @Override
  public IndicesStats indicesStats() {
    return indicesStats;
  }

  @Override
  public String toString() {
    return "ElasticsearchStats{"
        + "clusterName=" + clusterName + ", "
        + "clusterVersion=" + clusterVersion + ", "
        + "status=" + status + ", "
        + "clusterHealth=" + clusterHealth + ", "
        + "nodesStats=" + nodesStats + ", "
        + "indicesStats=" + indicesStats
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof ElasticsearchStats) {
      ElasticsearchStats that = (ElasticsearchStats) o;
      return this.clusterName.equals(that.clusterName())
          && this.clusterVersion.equals(that.clusterVersion())
          && this.status.equals(that.status())
          && this.clusterHealth.equals(that.clusterHealth())
          && this.nodesStats.equals(that.nodesStats())
          && this.indicesStats.equals(that.indicesStats());
    }
    return false;
  }

  @Override
  public int hashCode() {
    int h$ = 1;
    h$ *= 1000003;
    h$ ^= clusterName.hashCode();
    h$ *= 1000003;
    h$ ^= clusterVersion.hashCode();
    h$ *= 1000003;
    h$ ^= status.hashCode();
    h$ *= 1000003;
    h$ ^= clusterHealth.hashCode();
    h$ *= 1000003;
    h$ ^= nodesStats.hashCode();
    h$ *= 1000003;
    h$ ^= indicesStats.hashCode();
    return h$;
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy