Package com.linkedin.venice.service
Class AbstractVeniceService
java.lang.Object
com.linkedin.venice.service.AbstractVeniceService
- All Implemented Interfaces:
Closeable,AutoCloseable
- Direct Known Subclasses:
AbstractKafkaConsumerService,AbstractStoreBufferService,AdaptiveThrottlerSignalService,AdminConsumerService,AdminSparkServer,AggKafkaConsumerService,BackupVersionOptimizationService,DeferredVersionSwapService,DictionaryRetrievalService,DisabledPartitionEnablerService,DiskHealthCheckService,HeartbeatMonitoringService,HelixParticipationService,InactiveTopicPartitionChecker,IsolatedIngestionServer,KafkaStoreIngestionService,LeakedPushStatusCleanUpService,LeakedResourceCleaner,ListenerService,LogCompactionService,MainIngestionMonitorService,MainIngestionStorageMetadataService,MultiTaskSchedulerService,P2PBlobTransferService,ProtocolVersionAutoDetectionService,RemoteIngestionRepairService,RouterHeartbeat,RouterServer,StorageEngineMetadataService,StorageService,StoreBackupVersionCleanupService,StoreGraveyardCleanupService,StoreValueSchemasCacheService,SystemStoreRepairService,TopicCleanupService,UnusedValueSchemaCleanupService,VeniceControllerService
Blueprint for all Services initiated from Venice Server
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final org.apache.logging.log4j.Loggerprotected final AtomicReference<AbstractVeniceService.ServiceState> -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
logger
protected final org.apache.logging.log4j.Logger logger -
serviceState
-
-
Constructor Details
-
AbstractVeniceService
public AbstractVeniceService()
-
-
Method Details
-
getName
-
isRunning
public boolean isRunning() -
start
public void start() -
stop
- Throws:
Exception
-
startInner
- 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
serviceStatetoAbstractVeniceService.ServiceState.STARTEDupon completion of the async work). - Throws:
Exception
-
stopInner
- Throws:
Exception
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-