Class FlinkClusterJobListFetcher

  • All Implemented Interfaces:
    JobListFetcher<org.apache.flink.api.common.JobID,​JobAutoScalerContext<org.apache.flink.api.common.JobID>>

    public class FlinkClusterJobListFetcher
    extends java.lang.Object
    implements JobListFetcher<org.apache.flink.api.common.JobID,​JobAutoScalerContext<org.apache.flink.api.common.JobID>>
    Fetch JobAutoScalerContext based on flink cluster.
    • Constructor Summary

      Constructors 
      Constructor Description
      FlinkClusterJobListFetcher​(org.apache.flink.util.function.FunctionWithException<org.apache.flink.configuration.Configuration,​org.apache.flink.client.program.rest.RestClusterClient<java.lang.String>,​java.lang.Exception> restClientGetter, java.time.Duration restClientTimeout)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Collection<JobAutoScalerContext<org.apache.flink.api.common.JobID>> fetch()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • FlinkClusterJobListFetcher

        public FlinkClusterJobListFetcher​(org.apache.flink.util.function.FunctionWithException<org.apache.flink.configuration.Configuration,​org.apache.flink.client.program.rest.RestClusterClient<java.lang.String>,​java.lang.Exception> restClientGetter,
                                          java.time.Duration restClientTimeout)
    • Method Detail

      • fetch

        public java.util.Collection<JobAutoScalerContext<org.apache.flink.api.common.JobID>> fetch()
                                                                                            throws java.lang.Exception
        Specified by:
        fetch in interface JobListFetcher<org.apache.flink.api.common.JobID,​JobAutoScalerContext<org.apache.flink.api.common.JobID>>
        Throws:
        java.lang.Exception