Package org.apache.flink.yarn
Class DefaultYarnResourceManagerClientFactory
- java.lang.Object
-
- org.apache.flink.yarn.DefaultYarnResourceManagerClientFactory
-
- All Implemented Interfaces:
YarnResourceManagerClientFactory
public class DefaultYarnResourceManagerClientFactory extends Object implements YarnResourceManagerClientFactory
Default implementation ofYarnResourceManagerClientFactory
.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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()
-
-
-
Method Detail
-
getInstance
public static YarnResourceManagerClientFactory getInstance()
-
createResourceManagerClient
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)
Description copied from interface:YarnResourceManagerClientFactory
Create YARN ResourceManager client with the given callback handler.- Specified by:
createResourceManagerClient
in interfaceYarnResourceManagerClientFactory
- Parameters:
yarnHeartbeatIntervalMillis
- heartbeat interval between the client and the YARN ResourceManager.callbackHandler
- which handles the events from YARN ResourceManager.- Returns:
- an
AMRMClientAsync
instance.
-
-