com.mcafee.dxl.streaming.operations.client.zookeeper.entities.ZKCluster Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of msdk4kafka Show documentation
Show all versions of msdk4kafka Show documentation
It is set of APIs to operate and monitoring a Kafka cluster programmatically.
The newest version!
/**
* Copyright (c) 2017 McAfee LLC - All Rights Reserved
*/
package com.mcafee.dxl.streaming.operations.client.zookeeper.entities;
import com.mcafee.dxl.streaming.operations.client.zookeeper.ZKClusterStatusName;
import java.util.List;
/**
* Zookeeper cluster. It contains the cluster quorum status and the list of zookeeper nodes
*/
public final class ZKCluster {
private final List zkNodes;
private final ZKClusterStatusName zookeeperState;
/**
*
* @param zookeeperState Zookeeper cluster quorum status
* @param zkNodes list of zookeeper zkNodes
*/
public ZKCluster(final ZKClusterStatusName zookeeperState,
final List zkNodes) {
this.zookeeperState = zookeeperState;
this.zkNodes = zkNodes;
}
/**
*
* @return list of zookeeper nodes
*/
public List getZKNodes() {
return zkNodes;
}
/**
*
* @return zookeeper cluster quorum status
*/
public ZKClusterStatusName getZookeeperClusterStatus() {
return zookeeperState;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy