Class 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 Detail

      • IdealStateAndCurrentStateMatchServiceStatusCallback

        public IdealStateAndCurrentStateMatchServiceStatusCallback​(org.apache.helix.HelixManager helixManager,
                                                                   String clusterName,
                                                                   String instanceName,
                                                                   List<String> resourcesToMonitor,
                                                                   double minResourcesStartPercent)
    • Method Detail

      • getState

        @Nullable
        protected org.apache.helix.model.CurrentState getState​(String resourceName)
        Returns the current state for the given resource, or null if 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()