com.playtika.testcontainer.kafka.checks.ZookeeperStatusCheck Maven / Gradle / Ivy
package com.playtika.testcontainer.kafka.checks;
import com.playtika.testcontainer.common.checks.AbstractCommandWaitStrategy;
import com.playtika.testcontainer.kafka.properties.ZookeeperConfigurationProperties;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
@Slf4j
@RequiredArgsConstructor
public class ZookeeperStatusCheck extends AbstractCommandWaitStrategy {
private static final String TIMEOUT_IN_SEC = "30";
private final ZookeeperConfigurationProperties properties;
@Override
public String[] getCheckCommand() {
return new String[]{
"cub",
"zk-ready",
properties.getZookeeperConnect(),
TIMEOUT_IN_SEC
};
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy