Search in sources :

Example 1 with SlotManagerMetricGroup

use of org.apache.flink.runtime.metrics.groups.SlotManagerMetricGroup 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);
}
Also used : SlotManagerMetricGroup(org.apache.flink.runtime.metrics.groups.SlotManagerMetricGroup) Configuration(org.apache.flink.configuration.Configuration) ResourceManagerMetricGroup(org.apache.flink.runtime.metrics.groups.ResourceManagerMetricGroup)

Aggregations

Configuration (org.apache.flink.configuration.Configuration)1 ResourceManagerMetricGroup (org.apache.flink.runtime.metrics.groups.ResourceManagerMetricGroup)1 SlotManagerMetricGroup (org.apache.flink.runtime.metrics.groups.SlotManagerMetricGroup)1