Package org.apache.pinot.common.utils
Class ServiceStatus.IdealStateAndCurrentStateMatchServiceStatusCallback
- java.lang.Object
-
- org.apache.pinot.common.utils.ServiceStatus.IdealStateAndCurrentStateMatchServiceStatusCallback
-
- All Implemented Interfaces:
ServiceStatus.ServiceStatusCallback
- Enclosing class:
- ServiceStatus
public static class ServiceStatus.IdealStateAndCurrentStateMatchServiceStatusCallback extends Object
Service status callback that reports starting until all resources relevant to this instance have a matching external view and current state. This callback considers the ERROR state in the current view to be equivalent to the ideal state value.
-
-
Constructor Summary
Constructors Constructor Description IdealStateAndCurrentStateMatchServiceStatusCallback(org.apache.helix.HelixManager helixManager, String clusterName, String instanceName, List<String> resourcesToMonitor, double minResourcesStartPercent)
-
Method Summary
Modifier and Type Method Description protected StringgetMatchName()protected Map<String,String>getPartitionStateMap(org.apache.helix.model.CurrentState state)protected org.apache.helix.model.CurrentStategetState(String resourceName)Returns the current state for the given resource, ornullif instance is not live or current state does not exist.
-
-
-
Method Detail
-
getState
@Nullable protected org.apache.helix.model.CurrentState getState(String resourceName)
Returns the current state for the given resource, ornullif instance is not live or current state does not exist.
-
getPartitionStateMap
protected Map<String,String> getPartitionStateMap(org.apache.helix.model.CurrentState state)
-
getMatchName
protected String getMatchName()
-
-