Search in sources :

Example 1 with SignalContainersLauncherEvent

use of org.apache.hadoop.yarn.server.nodemanager.containermanager.launcher.SignalContainersLauncherEvent in project hadoop by apache.

the class ContainerManagerImpl method internalSignalToContainer.

@SuppressWarnings("unchecked")
private void internalSignalToContainer(SignalContainerRequest request, String sentBy) {
    ContainerId containerId = request.getContainerId();
    Container container = this.context.getContainers().get(containerId);
    if (container != null) {
        LOG.info(containerId + " signal request " + request.getCommand() + " by " + sentBy);
        this.dispatcher.getEventHandler().handle(new SignalContainersLauncherEvent(container, request.getCommand()));
    } else {
        LOG.info("Container " + containerId + " no longer exists");
    }
}
Also used : Container(org.apache.hadoop.yarn.server.nodemanager.containermanager.container.Container) ContainerId(org.apache.hadoop.yarn.api.records.ContainerId) SignalContainersLauncherEvent(org.apache.hadoop.yarn.server.nodemanager.containermanager.launcher.SignalContainersLauncherEvent)

Aggregations

ContainerId (org.apache.hadoop.yarn.api.records.ContainerId)1 Container (org.apache.hadoop.yarn.server.nodemanager.containermanager.container.Container)1 SignalContainersLauncherEvent (org.apache.hadoop.yarn.server.nodemanager.containermanager.launcher.SignalContainersLauncherEvent)1