org.apache.tez.dag.app.rm
Class TezAMRMClientAsync<T extends org.apache.hadoop.yarn.client.api.AMRMClient.ContainerRequest>

java.lang.Object
  extended by org.apache.hadoop.service.AbstractService
      extended by org.apache.hadoop.yarn.client.api.async.AMRMClientAsync<T>
          extended by org.apache.hadoop.yarn.client.api.async.impl.AMRMClientAsyncImpl<T>
              extended by org.apache.tez.dag.app.rm.TezAMRMClientAsync<T>
All Implemented Interfaces:
Closeable, org.apache.hadoop.service.Service

public class TezAMRMClientAsync<T extends org.apache.hadoop.yarn.client.api.AMRMClient.ContainerRequest>
extends org.apache.hadoop.yarn.client.api.async.impl.AMRMClientAsyncImpl<T>


Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.hadoop.yarn.client.api.async.AMRMClientAsync
org.apache.hadoop.yarn.client.api.async.AMRMClientAsync.CallbackHandler
 
Nested classes/interfaces inherited from interface org.apache.hadoop.service.Service
org.apache.hadoop.service.Service.STATE
 
Field Summary
 
Fields inherited from class org.apache.hadoop.yarn.client.api.async.AMRMClientAsync
client, handler, heartbeatIntervalMs
 
Constructor Summary
TezAMRMClientAsync(org.apache.hadoop.yarn.client.api.AMRMClient<T> client, int intervalMs, org.apache.hadoop.yarn.client.api.async.AMRMClientAsync.CallbackHandler callbackHandler)
           
TezAMRMClientAsync(int intervalMs, org.apache.hadoop.yarn.client.api.async.AMRMClientAsync.CallbackHandler callbackHandler)
           
 
Method Summary
 void addContainerRequest(T req)
           
 void addNodeToBlacklist(org.apache.hadoop.yarn.api.records.NodeId nodeId)
           
static
<T extends org.apache.hadoop.yarn.client.api.AMRMClient.ContainerRequest>
TezAMRMClientAsync<T>
createAMRMClientAsync(int intervalMs, org.apache.hadoop.yarn.client.api.async.AMRMClientAsync.CallbackHandler callbackHandler)
           
 List<? extends Collection<T>> getMatchingRequestsForTopPriority(String resourceName, org.apache.hadoop.yarn.api.records.Resource capability)
           
 org.apache.hadoop.yarn.api.records.Priority getTopPriority()
           
 void removeContainerRequest(T req)
           
 void removeNodeFromBlacklist(org.apache.hadoop.yarn.api.records.NodeId nodeId)
           
 
Methods inherited from class org.apache.hadoop.yarn.client.api.async.impl.AMRMClientAsyncImpl
getAvailableResources, getClusterNodeCount, getMatchingRequests, registerApplicationMaster, releaseAssignedContainer, serviceInit, serviceStart, serviceStop, setHeartbeatInterval, unregisterApplicationMaster
 
Methods inherited from class org.apache.hadoop.yarn.client.api.async.AMRMClientAsync
createAMRMClientAsync
 
Methods inherited from class org.apache.hadoop.service.AbstractService
close, getBlockers, getConfig, getFailureCause, getFailureState, getLifecycleHistory, getName, getServiceState, getStartTime, init, isInState, noteFailure, putBlocker, registerGlobalListener, registerServiceListener, removeBlocker, setConfig, start, stop, toString, unregisterGlobalListener, unregisterServiceListener, waitForServiceToStop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TezAMRMClientAsync

public TezAMRMClientAsync(int intervalMs,
                          org.apache.hadoop.yarn.client.api.async.AMRMClientAsync.CallbackHandler callbackHandler)

TezAMRMClientAsync

public TezAMRMClientAsync(org.apache.hadoop.yarn.client.api.AMRMClient<T> client,
                          int intervalMs,
                          org.apache.hadoop.yarn.client.api.async.AMRMClientAsync.CallbackHandler callbackHandler)
Method Detail

createAMRMClientAsync

public static <T extends org.apache.hadoop.yarn.client.api.AMRMClient.ContainerRequest> TezAMRMClientAsync<T> createAMRMClientAsync(int intervalMs,
                                                                                                                                    org.apache.hadoop.yarn.client.api.async.AMRMClientAsync.CallbackHandler callbackHandler)

getTopPriority

public org.apache.hadoop.yarn.api.records.Priority getTopPriority()

addNodeToBlacklist

public void addNodeToBlacklist(org.apache.hadoop.yarn.api.records.NodeId nodeId)

removeNodeFromBlacklist

public void removeNodeFromBlacklist(org.apache.hadoop.yarn.api.records.NodeId nodeId)

addContainerRequest

public void addContainerRequest(T req)
Overrides:
addContainerRequest in class org.apache.hadoop.yarn.client.api.async.impl.AMRMClientAsyncImpl<T extends org.apache.hadoop.yarn.client.api.AMRMClient.ContainerRequest>

removeContainerRequest

public void removeContainerRequest(T req)
Overrides:
removeContainerRequest in class org.apache.hadoop.yarn.client.api.async.impl.AMRMClientAsyncImpl<T extends org.apache.hadoop.yarn.client.api.AMRMClient.ContainerRequest>

getMatchingRequestsForTopPriority

public List<? extends Collection<T>> getMatchingRequestsForTopPriority(String resourceName,
                                                                       org.apache.hadoop.yarn.api.records.Resource capability)


Copyright © 2014 Apache Software Foundation. All rights reserved.