Class ClusterHealthEvaluator
- java.lang.Object
-
- org.apache.flink.kubernetes.operator.observer.ClusterHealthEvaluator
-
public class ClusterHealthEvaluator extends java.lang.Object
Evaluates whether the cluster is healthy.
-
-
Constructor Summary
Constructors Constructor Description ClusterHealthEvaluator(java.time.Clock clock)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
evaluate(org.apache.flink.configuration.Configuration configuration, java.util.Map<java.lang.String,java.lang.String> clusterInfo, ClusterHealthInfo observedClusterHealthInfo)
static ClusterHealthInfo
getLastValidClusterHealthInfo(java.util.Map<java.lang.String,java.lang.String> clusterInfo)
static void
removeLastValidClusterHealthInfo(java.util.Map<java.lang.String,java.lang.String> clusterInfo)
static void
setLastValidClusterHealthInfo(java.util.Map<java.lang.String,java.lang.String> clusterInfo, ClusterHealthInfo clusterHealthInfo)
-
-
-
Method Detail
-
getLastValidClusterHealthInfo
public static ClusterHealthInfo getLastValidClusterHealthInfo(java.util.Map<java.lang.String,java.lang.String> clusterInfo)
-
setLastValidClusterHealthInfo
public static void setLastValidClusterHealthInfo(java.util.Map<java.lang.String,java.lang.String> clusterInfo, ClusterHealthInfo clusterHealthInfo)
-
removeLastValidClusterHealthInfo
public static void removeLastValidClusterHealthInfo(java.util.Map<java.lang.String,java.lang.String> clusterInfo)
-
evaluate
public void evaluate(org.apache.flink.configuration.Configuration configuration, java.util.Map<java.lang.String,java.lang.String> clusterInfo, ClusterHealthInfo observedClusterHealthInfo)
-
-