public final class LoggingRunnableProcessObserver extends Object implements RunnableProcessObserver
Constructor and Description |
---|
LoggingRunnableProcessObserver() |
Modifier and Type | Method and Description |
---|---|
void |
onProcessExit(String processId,
int exitCode)
This will be called right after the process exited.
|
void |
onProcessStarted(String processId)
This will be called right after the process is launched.
|
public LoggingRunnableProcessObserver()
public void onProcessStarted(String processId)
RunnableProcessObserver
onProcessStarted
in interface RunnableProcessObserver
processId
- the id of the process that started.public void onProcessExit(String processId, int exitCode)
RunnableProcessObserver
onProcessExit
in interface RunnableProcessObserver
processId
- the id of the process that exited.exitCode
- the return code of the process.Copyright © 2017 The Apache Software Foundation. All rights reserved.