com.yahoo.vespa.zookeeper.VespaZooKeeperAdmin Maven / Gradle / Ivy
// Copyright Verizon Media. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.vespa.zookeeper;
import java.time.Duration;
/**
* Interface for administering a zookeeper cluster. Currently only supports reconfiguring a zookeeper cluster.
*
* @author hmusum
*/
public interface VespaZooKeeperAdmin {
void reconfigure(String connectionSpec, String joiningServers, String leavingServers) throws ReconfigException;
/* Timeout for connecting to ZooKeeper */
default Duration sessionTimeout() { return Duration.ofSeconds(30); }
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy