@ThreadSafe public final class ReefRunnableProcessObserver extends Object implements RunnableProcessObserver
| Constructor and Description | 
|---|
ReefRunnableProcessObserver(EventHandler<DriverRuntimeProtocol.ResourceStatusProto> 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<DriverRuntimeProtocol.ResourceStatusProto> resourceStatusHandler, InjectionFuture<ResourceManager> resourceManager)
resourceStatusHandler - the event handler to inform of resource changes.public void onProcessStarted(String processId)
RunnableProcessObserveronProcessStarted in interface RunnableProcessObserverprocessId - the id of the process that started.public void onProcessExit(String processId, int exitCode)
RunnableProcessObserveronProcessExit in interface RunnableProcessObserverprocessId - the id of the process that exited.exitCode - the return code of the process.Copyright © 2015 The Apache Software Foundation. All rights reserved.