aboutsummaryrefslogtreecommitdiffstats
path: root/node-admin/src/main/java/com/yahoo/vespa/hosted/node/admin/task/util/process/ProcessApi2.java
blob: e6d2f32ee81f453f3ab7051be8c555405b4198bc (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// Copyright Yahoo. 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();
}