Package org.apache.pinot.common.utils
Class ServiceStatus.RealtimeConsumptionCatchupServiceStatusCallback
- java.lang.Object
-
- org.apache.pinot.common.utils.ServiceStatus.RealtimeConsumptionCatchupServiceStatusCallback
-
- All Implemented Interfaces:
ServiceStatus.ServiceStatusCallback
- Enclosing class:
- ServiceStatus
public static class ServiceStatus.RealtimeConsumptionCatchupServiceStatusCallback extends Object implements ServiceStatus.ServiceStatusCallback
Service status callback that checks whether realtime consumption has caught up An offset based consumption status checker is being added in two phases. First phase adds the new status checker, but it doesn't apply its output. Instead it only logs its behavior. When the behavior is analysed and approved for different tables with different consumption rates, we can safely use the new status checker. (Another approach would be to define a new config and disable it by default. Since this feature is not urgent, we decided to not define yet another config and go with this two phase approach)
-
-
Constructor Summary
Constructors Constructor Description RealtimeConsumptionCatchupServiceStatusCallback(org.apache.helix.HelixManager helixManager, String clusterName, String instanceName, long realtimeConsumptionCatchupWaitMs, Supplier<Integer> getNumConsumingSegmentsNotReachedTheirLatestOffset)Realtime consumption catchup service which adds a static wait time for consuming segments to catchup
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ServiceStatus.StatusgetServiceStatus()StringgetStatusDescription()
-
-
-
Constructor Detail
-
RealtimeConsumptionCatchupServiceStatusCallback
public RealtimeConsumptionCatchupServiceStatusCallback(org.apache.helix.HelixManager helixManager, String clusterName, String instanceName, long realtimeConsumptionCatchupWaitMs, Supplier<Integer> getNumConsumingSegmentsNotReachedTheirLatestOffset)Realtime consumption catchup service which adds a static wait time for consuming segments to catchup
-
-
Method Detail
-
getServiceStatus
public ServiceStatus.Status getServiceStatus()
- Specified by:
getServiceStatusin interfaceServiceStatus.ServiceStatusCallback
-
getStatusDescription
public String getStatusDescription()
- Specified by:
getStatusDescriptionin interfaceServiceStatus.ServiceStatusCallback
-
-