blob: ef6083ae5f73bb848586a594d53472fe1dd43cf4 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.vespa.zookeeper;
import java.nio.file.Path;
/**
* Interface for a component that starts/stops a ZooKeeper server. Implementations should make sure
* that the server is up and accepts connection (typically by returning from constructor only after
* writing a node to ZooKeeper successfully).
*
* @author hmusum
*/
public interface VespaZooKeeperServer {
/** Shut down the server. Blocks until shutdown has completed */
void shutdown();
/** Start the server with the given config file */
void start(Path configFilePath);
/** Whether this server support dynamic reconfiguration */
boolean reconfigurable();
}
|