Class KubernetesJobAutoScalerContext


  • public class KubernetesJobAutoScalerContext
    extends JobAutoScalerContext<io.javaoperatorsdk.operator.processing.event.ResourceID>
    An implementation of JobAutoscalerContext for Kubernetes.
    • Constructor Summary

      Constructors 
      Constructor Description
      KubernetesJobAutoScalerContext​(org.apache.flink.api.common.JobID jobID, org.apache.flink.api.common.JobStatus jobStatus, org.apache.flink.configuration.Configuration configuration, org.apache.flink.metrics.MetricGroup metricGroup, org.apache.flink.util.function.SupplierWithException<org.apache.flink.client.program.rest.RestClusterClient<java.lang.String>,​java.lang.Exception> restClientSupplier, FlinkResourceContext<?> resourceContext)  
    • Constructor Detail

      • KubernetesJobAutoScalerContext

        public KubernetesJobAutoScalerContext​(@Nullable
                                              org.apache.flink.api.common.JobID jobID,
                                              @Nullable
                                              org.apache.flink.api.common.JobStatus jobStatus,
                                              org.apache.flink.configuration.Configuration configuration,
                                              org.apache.flink.metrics.MetricGroup metricGroup,
                                              org.apache.flink.util.function.SupplierWithException<org.apache.flink.client.program.rest.RestClusterClient<java.lang.String>,​java.lang.Exception> restClientSupplier,
                                              FlinkResourceContext<?> resourceContext)
    • Method Detail

      • getTaskManagerCpu

        public java.util.Optional<java.lang.Double> getTaskManagerCpu()
        Description copied from class: JobAutoScalerContext
        Retrieve the currently configured TaskManager CPU.
        Overrides:
        getTaskManagerCpu in class JobAutoScalerContext<io.javaoperatorsdk.operator.processing.event.ResourceID>
      • getKubernetesClient

        public io.fabric8.kubernetes.client.KubernetesClient getKubernetesClient()