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");
}
}
Aggregations