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 Details

    • NodeCallback

      public NodeCallback()
  • Method Details

    • onStartContainerError

      public void onStartContainerError(org.apache.hadoop.yarn.api.records.ContainerId containerId, Throwable t)
      Specified by:
      onStartContainerError in interface org.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 interface org.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 interface org.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 interface org.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 interface org.apache.hadoop.yarn.client.api.async.NMClientAsync.CallbackHandler
    • onContainerStopped

      public void onContainerStopped(org.apache.hadoop.yarn.api.records.ContainerId containerId)
      Specified by:
      onContainerStopped in interface org.apache.hadoop.yarn.client.api.async.NMClientAsync.CallbackHandler