blob: 0e4bc7990071243b7ed1e575e667a1e126854647 (
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
25
26
27
28
29
30
31
32
33
34
35
36
|
// 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;
/**
* @author hakonhall
*/
public class ProcessApi2Impl implements ProcessApi2 {
private final Process process;
ProcessApi2Impl(Process process) {
this.process = process;
}
@Override
public boolean waitFor(long timeout, TimeUnit unit) throws InterruptedException {
return process.waitFor(timeout, unit);
}
@Override
public int exitValue() {
return process.exitValue();
}
@Override
public void destroy() {
process.destroy();
}
@Override
public void destroyForcibly() {
process.destroyForcibly();
}
}
|