aboutsummaryrefslogtreecommitdiffstats
path: root/node-admin/src/main/java/com/yahoo/vespa/hosted/node/admin/task/util/process/ProcessApi2.java
blob: 006f1373e0f99ccb025649cdf5d9dd40ac6d4b17 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.

package com.yahoo.vespa.hosted.node.admin.task.util.process;

import java.util.concurrent.TimeUnit;

/**
 * Process abstraction.
 *
 * @author hakonhall
 */
public interface ProcessApi2 {
    boolean waitFor(long timeout, TimeUnit unit) throws InterruptedException;
    int exitValue();
    void destroy();
    void destroyForcibly();
}