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

}