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

org.graylog2.rest.models.system.responses.AutoValue_SystemJVMResponse Maven / Gradle / Ivy

There is a newer version: 5.2.7
Show newest version

package org.graylog2.rest.models.system.responses;

import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.Map;
import javax.annotation.Generated;

@Generated("com.google.auto.value.processor.AutoValueProcessor")
 final class AutoValue_SystemJVMResponse extends SystemJVMResponse {

  private final Map freeMemory;
  private final Map maxMemory;
  private final Map totalMemory;
  private final Map usedMemory;
  private final String nodeId;
  private final String pid;
  private final String info;

  AutoValue_SystemJVMResponse(
      Map freeMemory,
      Map maxMemory,
      Map totalMemory,
      Map usedMemory,
      String nodeId,
      String pid,
      String info) {
    if (freeMemory == null) {
      throw new NullPointerException("Null freeMemory");
    }
    this.freeMemory = freeMemory;
    if (maxMemory == null) {
      throw new NullPointerException("Null maxMemory");
    }
    this.maxMemory = maxMemory;
    if (totalMemory == null) {
      throw new NullPointerException("Null totalMemory");
    }
    this.totalMemory = totalMemory;
    if (usedMemory == null) {
      throw new NullPointerException("Null usedMemory");
    }
    this.usedMemory = usedMemory;
    if (nodeId == null) {
      throw new NullPointerException("Null nodeId");
    }
    this.nodeId = nodeId;
    if (pid == null) {
      throw new NullPointerException("Null pid");
    }
    this.pid = pid;
    if (info == null) {
      throw new NullPointerException("Null info");
    }
    this.info = info;
  }

  @JsonProperty
  @Override
  public Map freeMemory() {
    return freeMemory;
  }

  @JsonProperty
  @Override
  public Map maxMemory() {
    return maxMemory;
  }

  @JsonProperty
  @Override
  public Map totalMemory() {
    return totalMemory;
  }

  @JsonProperty
  @Override
  public Map usedMemory() {
    return usedMemory;
  }

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

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

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

  @Override
  public String toString() {
    return "SystemJVMResponse{"
        + "freeMemory=" + freeMemory + ", "
        + "maxMemory=" + maxMemory + ", "
        + "totalMemory=" + totalMemory + ", "
        + "usedMemory=" + usedMemory + ", "
        + "nodeId=" + nodeId + ", "
        + "pid=" + pid + ", "
        + "info=" + info
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof SystemJVMResponse) {
      SystemJVMResponse that = (SystemJVMResponse) o;
      return (this.freeMemory.equals(that.freeMemory()))
           && (this.maxMemory.equals(that.maxMemory()))
           && (this.totalMemory.equals(that.totalMemory()))
           && (this.usedMemory.equals(that.usedMemory()))
           && (this.nodeId.equals(that.nodeId()))
           && (this.pid.equals(that.pid()))
           && (this.info.equals(that.info()));
    }
    return false;
  }

  @Override
  public int hashCode() {
    int h = 1;
    h *= 1000003;
    h ^= this.freeMemory.hashCode();
    h *= 1000003;
    h ^= this.maxMemory.hashCode();
    h *= 1000003;
    h ^= this.totalMemory.hashCode();
    h *= 1000003;
    h ^= this.usedMemory.hashCode();
    h *= 1000003;
    h ^= this.nodeId.hashCode();
    h *= 1000003;
    h ^= this.pid.hashCode();
    h *= 1000003;
    h ^= this.info.hashCode();
    return h;
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy