Example usage for org.apache.hadoop.yarn.client.api.async NMClientAsync.CallbackHandler interface-usage

List of usage examples for org.apache.hadoop.yarn.client.api.async NMClientAsync.CallbackHandler interface-usage

Introduction

In this page you can find the example usage for org.apache.hadoop.yarn.client.api.async NMClientAsync.CallbackHandler interface-usage.

Usage

From source file org.apache.helix.provisioning.yarn.NMCallbackHandler.java

@VisibleForTesting
class NMCallbackHandler implements NMClientAsync.CallbackHandler {

    private Logger LOG = Logger.getLogger(NMCallbackHandler.class);
    private ConcurrentMap<ContainerId, Container> containers = new ConcurrentHashMap<ContainerId, Container>();
    private final GenericApplicationMaster applicationMaster;

From source file org.apache.hoya.yarn.appmaster.HoyaAppMaster.java

/**
 * This is the AM, which directly implements the callbacks from the AM and NM
 */
public class HoyaAppMaster extends CompoundLaunchedService implements AMRMClientAsync.CallbackHandler,
        NMClientAsync.CallbackHandler, RunService, HoyaExitCodes, HoyaKeys, HoyaClusterProtocol,
        ServiceStateChangeListener, RoleKeys, EventCallback, ContainerStartOperation {

From source file org.apache.metron.maas.service.callback.ContainerRequestListener.java

public class ContainerRequestListener implements AMRMClientAsync.CallbackHandler, NMClientAsync.CallbackHandler {

    private static final Log LOG = LogFactory.getLog(ContainerRequestListener.class);
    private ContainerTracker state;
    private AMRMClientAsync<AMRMClient.ContainerRequest> amRMClient;
    @VisibleForTesting

From source file org.apache.reef.runtime.yarn.driver.unmanaged.UnmanagedAmTest.java

/**
 * Test REEF Driver in Unmanaged AM mode on YARN.
 */
public final class UnmanagedAmTest implements AMRMClientAsync.CallbackHandler, NMClientAsync.CallbackHandler {

    private static final Logger LOG = Logger.getLogger(UnmanagedAmTest.class.getName());

From source file org.apache.reef.runtime.yarn.driver.YarnContainerManager.java

final class YarnContainerManager implements AMRMClientAsync.CallbackHandler, NMClientAsync.CallbackHandler {

    private static final Logger LOG = Logger.getLogger(YarnContainerManager.class.getName());

    private static final String RUNTIME_NAME = "YARN";

From source file org.apache.samza.job.yarn.YarnClusterResourceManager.java

/**
 *
 * An {@link YarnClusterResourceManager} implements a ClusterResourceManager using Yarn as the underlying
 * resource manager. This class is as an adaptor between Yarn and translates Yarn callbacks into
 * Samza specific callback methods as specified in Callback.
 *

From source file org.apache.slider.server.appmaster.SliderAppMaster.java

/**
 * This is the AM, which directly implements the callbacks from the AM and NM
 */
public class SliderAppMaster extends AbstractSliderLaunchedService
        implements AMRMClientAsync.CallbackHandler, NMClientAsync.CallbackHandler, RunService, SliderExitCodes,
        SliderKeys, SliderClusterProtocol, ServiceStateChangeListener, RoleKeys, ProviderCompleted {

From source file yarnkit.container.ContainerTracker.java

/**
 * A tracker that manages Containers.
 */
public final class ContainerTracker implements NMClientAsync.CallbackHandler {
    private static final Log LOG = LogFactory.getLog(ContainerTracker.class);