aboutsummaryrefslogtreecommitdiffstats
path: root/zookeeper-server/zookeeper-server-common/src/main/java/com/yahoo/vespa/zookeeper/QuorumPeer.java
blob: 5fbd47bb9c7f858b1b0f79a0b3e5ea6633430cb2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// 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;
import java.time.Duration;

/**
 * Wraps ZK-version-dependent VespaQuorumPeer
 *
 * @author jonmv
 */
public interface QuorumPeer {

    /** Starts ZK with config from the given path. */
    void start(Path path);

    /** Shuts down this peer, with the given timeout, or kills the process. */
    void shutdown(Duration timeout);

}