Java Code Examples for org.apache.flink.runtime.rest.handler.legacy.metrics.MetricFetcher#getMetricStore()
The following examples show how to use
org.apache.flink.runtime.rest.handler.legacy.metrics.MetricFetcher#getMetricStore() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: AggregatingMetricsHandlerTestBase.java From Flink-CEPplus with Apache License 2.0 | 6 votes |
@Before public void setUp() throws Exception { MetricFetcher fetcher = new MetricFetcherImpl<RestfulGateway>( mock(GatewayRetriever.class), mock(MetricQueryServiceRetriever.class), Executors.directExecutor(), TestingUtils.TIMEOUT(), MetricOptions.METRIC_FETCHER_UPDATE_INTERVAL.defaultValue()); store = fetcher.getMetricStore(); Collection<MetricDump> metricDumps = getMetricDumps(); for (MetricDump dump : metricDumps) { store.add(dump); } handler = getHandler( LEADER_RETRIEVER, TIMEOUT, TEST_HEADERS, EXECUTOR, fetcher); pathParameters = getPathParameters(); }
Example 2
Source File: AggregatingMetricsHandlerTestBase.java From flink with Apache License 2.0 | 6 votes |
@Before public void setUp() throws Exception { MetricFetcher fetcher = new MetricFetcherImpl<RestfulGateway>( mock(GatewayRetriever.class), mock(MetricQueryServiceRetriever.class), Executors.directExecutor(), TestingUtils.TIMEOUT(), MetricOptions.METRIC_FETCHER_UPDATE_INTERVAL.defaultValue()); store = fetcher.getMetricStore(); Collection<MetricDump> metricDumps = getMetricDumps(); for (MetricDump dump : metricDumps) { store.add(dump); } handler = getHandler( LEADER_RETRIEVER, TIMEOUT, TEST_HEADERS, EXECUTOR, fetcher); pathParameters = getPathParameters(); }
Example 3
Source File: AggregatingMetricsHandlerTestBase.java From flink with Apache License 2.0 | 6 votes |
@Before public void setUp() throws Exception { MetricFetcher fetcher = new MetricFetcherImpl<RestfulGateway>( mock(GatewayRetriever.class), mock(MetricQueryServiceRetriever.class), Executors.directExecutor(), TestingUtils.TIMEOUT(), MetricOptions.METRIC_FETCHER_UPDATE_INTERVAL.defaultValue()); store = fetcher.getMetricStore(); Collection<MetricDump> metricDumps = getMetricDumps(); for (MetricDump dump : metricDumps) { store.add(dump); } handler = getHandler( LEADER_RETRIEVER, TIMEOUT, TEST_HEADERS, EXECUTOR, fetcher); pathParameters = getPathParameters(); }
Example 4
Source File: TaskManagerDetailsHandler.java From Flink-CEPplus with Apache License 2.0 | 5 votes |
public TaskManagerDetailsHandler( GatewayRetriever<? extends RestfulGateway> leaderRetriever, Time timeout, Map<String, String> responseHeaders, MessageHeaders<EmptyRequestBody, TaskManagerDetailsInfo, TaskManagerMessageParameters> messageHeaders, GatewayRetriever<ResourceManagerGateway> resourceManagerGatewayRetriever, MetricFetcher metricFetcher) { super(leaderRetriever, timeout, responseHeaders, messageHeaders, resourceManagerGatewayRetriever); this.metricFetcher = Preconditions.checkNotNull(metricFetcher); this.metricStore = metricFetcher.getMetricStore(); }
Example 5
Source File: TaskManagerDetailsHandler.java From flink with Apache License 2.0 | 5 votes |
public TaskManagerDetailsHandler( GatewayRetriever<? extends RestfulGateway> leaderRetriever, Time timeout, Map<String, String> responseHeaders, MessageHeaders<EmptyRequestBody, TaskManagerDetailsInfo, TaskManagerMessageParameters> messageHeaders, GatewayRetriever<ResourceManagerGateway> resourceManagerGatewayRetriever, MetricFetcher metricFetcher) { super(leaderRetriever, timeout, responseHeaders, messageHeaders, resourceManagerGatewayRetriever); this.metricFetcher = Preconditions.checkNotNull(metricFetcher); this.metricStore = metricFetcher.getMetricStore(); }
Example 6
Source File: TaskManagerDetailsHandler.java From flink with Apache License 2.0 | 5 votes |
public TaskManagerDetailsHandler( GatewayRetriever<? extends RestfulGateway> leaderRetriever, Time timeout, Map<String, String> responseHeaders, MessageHeaders<EmptyRequestBody, TaskManagerDetailsInfo, TaskManagerMessageParameters> messageHeaders, GatewayRetriever<ResourceManagerGateway> resourceManagerGatewayRetriever, MetricFetcher metricFetcher) { super(leaderRetriever, timeout, responseHeaders, messageHeaders, resourceManagerGatewayRetriever); this.metricFetcher = Preconditions.checkNotNull(metricFetcher); this.metricStore = metricFetcher.getMetricStore(); }