@ThreadSafe public final class ReefRunnableProcessObserver extends Object implements RunnableProcessObserver
Constructor and Description |
---|
ReefRunnableProcessObserver(EventHandler<ResourceStatusEvent> resourceStatusHandler,
InjectionFuture<ResourceManager> resourceManager) |
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.
|
@Inject public ReefRunnableProcessObserver(EventHandler<ResourceStatusEvent> resourceStatusHandler, InjectionFuture<ResourceManager> resourceManager)
resourceStatusHandler
- the event handler to inform of resource changes.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 © 2016 The Apache Software Foundation. All rights reserved.