Package org.apache.drill.yarn.appMaster
Class Dispatcher.NodeCallback
java.lang.Object
org.apache.drill.yarn.appMaster.Dispatcher.NodeCallback
- All Implemented Interfaces:
org.apache.hadoop.yarn.client.api.async.NMClientAsync.CallbackHandler
- Enclosing class:
- Dispatcher
public class Dispatcher.NodeCallback
extends Object
implements org.apache.hadoop.yarn.client.api.async.NMClientAsync.CallbackHandler
Handle YARN Node Manager events. This is a separate class to clarify which
events are, in fact, from the node manager.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
onContainerStarted
(org.apache.hadoop.yarn.api.records.ContainerId containerId, Map<String, ByteBuffer> allServiceResponse) void
onContainerStatusReceived
(org.apache.hadoop.yarn.api.records.ContainerId containerId, org.apache.hadoop.yarn.api.records.ContainerStatus containerStatus) void
onContainerStopped
(org.apache.hadoop.yarn.api.records.ContainerId containerId) void
onGetContainerStatusError
(org.apache.hadoop.yarn.api.records.ContainerId containerId, Throwable t) void
onStartContainerError
(org.apache.hadoop.yarn.api.records.ContainerId containerId, Throwable t) void
onStopContainerError
(org.apache.hadoop.yarn.api.records.ContainerId containerId, Throwable t)
-
Constructor Details
-
NodeCallback
public NodeCallback()
-
-
Method Details
-
onStartContainerError
public void onStartContainerError(org.apache.hadoop.yarn.api.records.ContainerId containerId, Throwable t) - Specified by:
onStartContainerError
in interfaceorg.apache.hadoop.yarn.client.api.async.NMClientAsync.CallbackHandler
-
onContainerStarted
public void onContainerStarted(org.apache.hadoop.yarn.api.records.ContainerId containerId, Map<String, ByteBuffer> allServiceResponse) - Specified by:
onContainerStarted
in interfaceorg.apache.hadoop.yarn.client.api.async.NMClientAsync.CallbackHandler
-
onContainerStatusReceived
public void onContainerStatusReceived(org.apache.hadoop.yarn.api.records.ContainerId containerId, org.apache.hadoop.yarn.api.records.ContainerStatus containerStatus) - Specified by:
onContainerStatusReceived
in interfaceorg.apache.hadoop.yarn.client.api.async.NMClientAsync.CallbackHandler
-
onGetContainerStatusError
public void onGetContainerStatusError(org.apache.hadoop.yarn.api.records.ContainerId containerId, Throwable t) - Specified by:
onGetContainerStatusError
in interfaceorg.apache.hadoop.yarn.client.api.async.NMClientAsync.CallbackHandler
-
onStopContainerError
public void onStopContainerError(org.apache.hadoop.yarn.api.records.ContainerId containerId, Throwable t) - Specified by:
onStopContainerError
in interfaceorg.apache.hadoop.yarn.client.api.async.NMClientAsync.CallbackHandler
-
onContainerStopped
public void onContainerStopped(org.apache.hadoop.yarn.api.records.ContainerId containerId) - Specified by:
onContainerStopped
in interfaceorg.apache.hadoop.yarn.client.api.async.NMClientAsync.CallbackHandler
-