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

com.devonfw.module.kafka.common.messaging.health.impl.TopicHealthInfo Maven / Gradle / Ivy

There is a newer version: 2023.01.001
Show newest version
package com.devonfw.module.kafka.common.messaging.health.impl;

import java.util.HashSet;
import java.util.Set;

/**
 * This class is used to indicate the health.
 *
 * @deprecated The implementation of devon4j-kafka will be abandoned. It is superseeded by Springs Kafka
 *             implementation.
 */
@Deprecated
public class TopicHealthInfo {

  private String topic;

  private String status;

  private String details;

  private Set partitionsChecked = new HashSet<>();

  private Set partitionsWithoutLeader = new HashSet<>();

  /**
   * The topic
   *
   * @return the topic
   */
  public String getTopic() {

    return this.topic;
  }

  /**
   * Set the topic for {@link #getTopic()}
   *
   * @param topic
   */
  void setTopic(String topic) {

    this.topic = topic;
  }

  /**
   * The status of the Health
   *
   * @return the status
   */
  public String getStatus() {

    return this.status;
  }

  /**
   * Set the status for {@link #getStatus()}
   *
   * @param status
   */
  void setStatus(String status) {

    this.status = status;
  }

  /**
   * The other details of the health status.
   *
   * @return the details.
   */
  public String getDetails() {

    return this.details;
  }

  /**
   * Set the details for {@link #getDetails()}.
   *
   * @param details
   */
  void setDetails(String details) {

    this.details = details;
  }

  /**
   * The partitions
   *
   * @return the Set of Integer partitions.
   */
  public Set getPartitionsChecked() {

    return this.partitionsChecked;
  }

  /**
   * The partitions without leader.
   *
   * @return the set of integer partitions without leaders.
   */
  public Set getPartitionsWithoutLeader() {

    return this.partitionsWithoutLeader;
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy