public class DefaultYarnResourceManagerClientFactory extends Object implements YarnResourceManagerClientFactory
YarnResourceManagerClientFactory
.Modifier and Type | Method and Description |
---|---|
org.apache.hadoop.yarn.client.api.async.AMRMClientAsync<org.apache.hadoop.yarn.client.api.AMRMClient.ContainerRequest> |
createResourceManagerClient(int yarnHeartbeatIntervalMillis,
org.apache.hadoop.yarn.client.api.async.AMRMClientAsync.CallbackHandler callbackHandler)
Create YARN ResourceManager client with the given callback handler.
|
static YarnResourceManagerClientFactory |
getInstance() |
public static YarnResourceManagerClientFactory getInstance()
public org.apache.hadoop.yarn.client.api.async.AMRMClientAsync<org.apache.hadoop.yarn.client.api.AMRMClient.ContainerRequest> createResourceManagerClient(int yarnHeartbeatIntervalMillis, org.apache.hadoop.yarn.client.api.async.AMRMClientAsync.CallbackHandler callbackHandler)
YarnResourceManagerClientFactory
createResourceManagerClient
in interface YarnResourceManagerClientFactory
yarnHeartbeatIntervalMillis
- heartbeat interval between the client and the YARN
ResourceManager.callbackHandler
- which handles the events from YARN ResourceManager.AMRMClientAsync
instance.Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.