use of org.apache.flink.runtime.metrics.groups.ResourceManagerMetricGroup in project flink by apache.
the class ResourceManagerFactory method createResourceManagerProcessContext.
public ResourceManagerProcessContext createResourceManagerProcessContext(Configuration configuration, ResourceID resourceId, RpcService rpcService, HighAvailabilityServices highAvailabilityServices, HeartbeatServices heartbeatServices, FatalErrorHandler fatalErrorHandler, ClusterInformation clusterInformation, @Nullable String webInterfaceUrl, MetricRegistry metricRegistry, String hostname, Executor ioExecutor) throws ConfigurationException {
final ResourceManagerMetricGroup resourceManagerMetricGroup = ResourceManagerMetricGroup.create(metricRegistry, hostname);
final SlotManagerMetricGroup slotManagerMetricGroup = SlotManagerMetricGroup.create(metricRegistry, hostname);
final Configuration runtimeServicesAndRmConfig = getEffectiveConfigurationForResourceManagerAndRuntimeServices(configuration);
final ResourceManagerRuntimeServicesConfiguration runtimeServiceConfig = createResourceManagerRuntimeServicesConfiguration(runtimeServicesAndRmConfig);
final Configuration rmConfig = getEffectiveConfigurationForResourceManager(runtimeServicesAndRmConfig);
return new ResourceManagerProcessContext(rmConfig, resourceId, runtimeServiceConfig, rpcService, highAvailabilityServices, heartbeatServices, fatalErrorHandler, clusterInformation, webInterfaceUrl, resourceManagerMetricGroup, slotManagerMetricGroup, ioExecutor);
}
Aggregations