Class MetricQueryService

    • Nested Class Summary

      • Nested classes/interfaces inherited from class org.apache.flink.runtime.rpc.RpcEndpoint

        org.apache.flink.runtime.rpc.RpcEndpoint.MainThreadExecutor
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static String METRIC_QUERY_SERVICE_NAME  
      • Fields inherited from class org.apache.flink.runtime.rpc.RpcEndpoint

        log, rpcServer
    • Constructor Summary

      Constructors 
      Constructor Description
      MetricQueryService​(org.apache.flink.runtime.rpc.RpcService rpcService, String endpointId, long messageSizeLimit)  
    • Constructor Detail

      • MetricQueryService

        public MetricQueryService​(org.apache.flink.runtime.rpc.RpcService rpcService,
                                  String endpointId,
                                  long messageSizeLimit)
    • Method Detail

      • onStop

        public CompletableFuture<Void> onStop()
        Overrides:
        onStop in class org.apache.flink.runtime.rpc.RpcEndpoint
      • addMetric

        public void addMetric​(String metricName,
                              org.apache.flink.metrics.Metric metric,
                              AbstractMetricGroup group)
      • removeMetric

        public void removeMetric​(org.apache.flink.metrics.Metric metric)
      • createMetricQueryService

        public static MetricQueryService createMetricQueryService​(org.apache.flink.runtime.rpc.RpcService rpcService,
                                                                  ResourceID resourceID,
                                                                  long maximumFrameSize)
        Starts the MetricQueryService actor in the given actor system.
        Parameters:
        rpcService - The rpcService running the MetricQueryService
        resourceID - resource ID to disambiguate the actor name
        Returns:
        actor reference to the MetricQueryService