Class RemoteIngestionRepairService
java.lang.Object
com.linkedin.venice.service.AbstractVeniceService
com.linkedin.davinci.kafka.consumer.RemoteIngestionRepairService
- All Implemented Interfaces:
Closeable,AutoCloseable
Singleton class meant to keep track of subscription failures for ingestion tasks where the ingestion
task needs to keep running despite cluster failures.
TODO: This class could stand to be refactored into an Actor class, but it seems we're short on time just now,
so we're going for old hat to start with AbstractVeniceService.
-
Nested Class Summary
Nested classes/interfaces inherited from class com.linkedin.venice.service.AbstractVeniceService
AbstractVeniceService.ServiceState -
Field Summary
FieldsFields inherited from class com.linkedin.venice.service.AbstractVeniceService
logger, serviceState -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidregisterRepairTask(StoreIngestionTask storeIngestionTask, Runnable repairTask) booleanvoidvoidunregisterRepairTasksForStoreIngestionTask(StoreIngestionTask storeIngestionTask)
-
Field Details
-
DEFAULT_REPAIR_THREAD_SLEEP_INTERVAL_SECONDS
public static final int DEFAULT_REPAIR_THREAD_SLEEP_INTERVAL_SECONDS- See Also:
-
-
Constructor Details
-
RemoteIngestionRepairService
public RemoteIngestionRepairService(int repairThreadSleepInterval)
-
-
Method Details
-
startInner
- Specified by:
startInnerin classAbstractVeniceService- Returns:
- true if the service is completely started,
false if it is still starting asynchronously (in this case, it is the implementer's
responsibility to set
AbstractVeniceService.serviceStatetoAbstractVeniceService.ServiceState.STARTEDupon completion of the async work). - Throws:
Exception
-
stopInner
- Specified by:
stopInnerin classAbstractVeniceService- Throws:
Exception
-
registerRepairTask
-
unregisterRepairTasksForStoreIngestionTask
-