# Deprecated API

## Contents

- Deprecated Interfaces
- Deprecated Methods
- Deprecated Constructors

- Deprecated Interfaces
  Interface and Description
  org.apache.hadoop.yarn.client.api.async.AMRMClientAsync.CallbackHandler Use `AMRMClientAsync.AbstractCallbackHandler` instead.
  org.apache.hadoop.yarn.client.api.async.NMClientAsync.CallbackHandler Use `NMClientAsync.AbstractCallbackHandler` instead. The callback interface needs to be implemented by `NMClientAsync` users. The APIs are called when responses from `NodeManager` are available. Once a callback happens, the users can chose to act on it in blocking or non-blocking manner. If the action on callback is done in a blocking manner, some of the threads performing requests on NodeManagers may get blocked depending on how many threads in the pool are busy. The implementation of the callback function should not throw the unexpected exception. Otherwise, `NMClientAsync` will just catch, log and then ignore it.

- Deprecated Methods
  Method and Description
  org.apache.hadoop.yarn.client.api.async.AMRMClientAsync.createAMRMClientAsync(AMRMClient<T>, int, AMRMClientAsync.CallbackHandler) Use `AMRMClientAsync.createAMRMClientAsync(AMRMClient, int, AMRMClientAsync.AbstractCallbackHandler)` instead.
  org.apache.hadoop.yarn.client.api.async.AMRMClientAsync.createAMRMClientAsync(int, AMRMClientAsync.CallbackHandler) Use `AMRMClientAsync.createAMRMClientAsync(int, AMRMClientAsync.AbstractCallbackHandler)` instead.
  org.apache.hadoop.yarn.client.api.async.NMClientAsync.createNMClientAsync(NMClientAsync.CallbackHandler) Use `NMClientAsync.createNMClientAsync(AbstractCallbackHandler)` instead.
  org.apache.hadoop.yarn.client.api.NMClient.increaseContainerResource(Container)
  org.apache.hadoop.yarn.client.api.impl.NMClientImpl.increaseContainerResource(Container)
  org.apache.hadoop.yarn.client.api.async.NMClientAsync.increaseContainerResourceAsync(Container)
  org.apache.hadoop.yarn.client.api.async.impl.NMClientAsyncImpl.increaseContainerResourceAsync(Container)
  org.apache.hadoop.yarn.client.api.async.NMClientAsync.AbstractCallbackHandler.onContainerResourceIncreased(ContainerId, Resource)
  org.apache.hadoop.yarn.client.api.async.NMClientAsync.AbstractCallbackHandler.onIncreaseContainerResourceError(ContainerId, Throwable)
  org.apache.hadoop.yarn.client.api.async.AMRMClientAsync.requestContainerResourceChange(Container, Resource) use `AMRMClientAsync.requestContainerUpdate(Container, UpdateContainerRequest)`
  org.apache.hadoop.yarn.client.api.AMRMClient.requestContainerResourceChange(Container, Resource) use `AMRMClient.requestContainerUpdate(Container, UpdateContainerRequest)`

- Deprecated Constructors
  Constructor and Description
  org.apache.hadoop.yarn.client.api.async.AMRMClientAsync(AMRMClient<T>, int, AMRMClientAsync.CallbackHandler)
  org.apache.hadoop.yarn.client.api.async.AMRMClientAsync(int, AMRMClientAsync.CallbackHandler)
  org.apache.hadoop.yarn.client.api.async.impl.AMRMClientAsyncImpl(AMRMClient<T>, int, AMRMClientAsync.CallbackHandler)
  org.apache.hadoop.yarn.client.api.async.impl.AMRMClientAsyncImpl(int, AMRMClientAsync.CallbackHandler) Use `AMRMClientAsyncImpl(int, AMRMClientAsync.AbstractCallbackHandler)` instead.
  org.apache.hadoop.yarn.client.api.async.NMClientAsync(NMClientAsync.CallbackHandler) Use `NMClientAsync(AbstractCallbackHandler)` instead.
  org.apache.hadoop.yarn.client.api.async.NMClientAsync(String, NMClientAsync.CallbackHandler) Use `NMClientAsync(String, AbstractCallbackHandler)` instead.
  org.apache.hadoop.yarn.client.api.async.NMClientAsync(String, NMClient, NMClientAsync.CallbackHandler)
  org.apache.hadoop.yarn.client.api.async.impl.NMClientAsyncImpl(NMClientAsync.CallbackHandler) Use `NMClientAsyncImpl(NMClientAsync.AbstractCallbackHandler)` instead.
  org.apache.hadoop.yarn.client.api.async.impl.NMClientAsyncImpl(String, NMClientAsync.CallbackHandler) Use `NMClientAsyncImpl(String, NMClientAsync.AbstractCallbackHandler)` instead.
  org.apache.hadoop.yarn.client.api.async.impl.NMClientAsyncImpl(String, NMClient, NMClientAsync.CallbackHandler)

Copyright © 2008–2022 Apache Software Foundation. All rights reserved.