Interface AMRMClientAsync.CallbackHandler
- All Known Implementing Classes:
AMRMClientAsync.AbstractCallbackHandler
- Enclosing class:
- AMRMClientAsync<T extends AMRMClient.ContainerRequest>
Deprecated.
-
Method Summary
Modifier and TypeMethodDescriptionfloatDeprecated.voidonContainersAllocated(List<org.apache.hadoop.yarn.api.records.Container> containers) Deprecated.Called when the ResourceManager responds to a heartbeat with allocated containers.voidonContainersCompleted(List<org.apache.hadoop.yarn.api.records.ContainerStatus> statuses) Deprecated.Called when the ResourceManager responds to a heartbeat with completed containers.voidDeprecated.Called when error comes from RM communications as well as from errors in the callback itself from the app.voidonNodesUpdated(List<org.apache.hadoop.yarn.api.records.NodeReport> updatedNodes) Deprecated.Called when nodes tracked by the ResourceManager have changed in health, availability etc.voidDeprecated.Called when the ResourceManager wants the ApplicationMaster to shutdown for being out of sync etc.
-
Method Details
-
onContainersCompleted
Deprecated.Called when the ResourceManager responds to a heartbeat with completed containers. If the response contains both completed containers and allocated containers, this will be called before containersAllocated. -
onContainersAllocated
Deprecated.Called when the ResourceManager responds to a heartbeat with allocated containers. If the response containers both completed containers and allocated containers, this will be called after containersCompleted. -
onShutdownRequest
void onShutdownRequest()Deprecated.Called when the ResourceManager wants the ApplicationMaster to shutdown for being out of sync etc. The ApplicationMaster should not unregister with the RM unless the ApplicationMaster wants to be the last attempt. -
onNodesUpdated
Deprecated.Called when nodes tracked by the ResourceManager have changed in health, availability etc. -
getProgress
float getProgress()Deprecated. -
onError
Deprecated.Called when error comes from RM communications as well as from errors in the callback itself from the app. Calling stop() is the recommended action.- Parameters:
e-
-
AMRMClientAsync.AbstractCallbackHandlerinstead.