@Authors(value="Nikolche Mihajlovski") @Since(value="5.3.0") public class ProcessHandle extends AbstractManageable
| Modifier and Type | Method and Description |
|---|---|
String[] |
args() |
String |
cmd() |
ProcessHandle |
destroy() |
ProcessHandle |
destroyForcibly() |
long |
duration() |
List<String> |
err() |
BlockingQueue<String> |
error() |
Integer |
exitCode() |
Date |
finishedAt() |
List<String> |
getManageableActions() |
String |
getManageableType() |
Processes |
group() |
String |
id() |
BlockingQueue<Object> |
input() |
boolean |
isAlive() |
void |
log(org.rapidoid.log.LogLevel level) |
List<String> |
out() |
List<String> |
outAndError() |
BlockingQueue<String> |
output() |
ProcessParams |
params() |
void |
print() |
Process |
process() |
void |
receive(Operation<String> outputProcessor,
Operation<String> errorProcessor) |
ProcessHandle |
restart() |
Date |
startedAt() |
ProcessHandle |
terminate() |
ProcessHandle |
waitFor() |
ProcessHandle |
waitFor(long timeout,
TimeUnit unit) |
doManageableAction, getManageableProperties, runManageableActionpublic BlockingQueue<Object> input()
public BlockingQueue<String> output()
public BlockingQueue<String> error()
public Process process()
public ProcessParams params()
public boolean isAlive()
public void print()
public void log(org.rapidoid.log.LogLevel level)
public ProcessHandle waitFor()
public ProcessHandle waitFor(long timeout, TimeUnit unit)
public ProcessHandle destroy()
public ProcessHandle destroyForcibly()
public String cmd()
public String[] args()
public Integer exitCode()
public long duration()
public Date startedAt()
public Date finishedAt()
public String id()
public String getManageableType()
getManageableType in interface ManageablegetManageableType in class AbstractManageablepublic List<String> getManageableActions()
getManageableActions in interface ManageablegetManageableActions in class AbstractManageablepublic Processes group()
public ProcessHandle restart()
public ProcessHandle terminate()
Copyright © 2014–2017 Nikolche Mihajlovski and contributors. All rights reserved.