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
,DictionaryRetrievalService
,DisabledPartitionEnablerService
,DiskHealthCheckService
,HeartbeatMonitoringService
,HelixParticipationService
,IsolatedIngestionServer
,KafkaStoreIngestionService
,LeakedPushStatusCleanUpService
,LeakedResourceCleaner
,ListenerService
,MainIngestionMonitorService
,MainIngestionStorageMetadataService
,P2PBlobTransferService
,RemoteIngestionRepairService
,RouterHeartbeat
,RouterServer
,StorageEngineMetadataService
,StorageService
,StoreBackupVersionCleanupService
,StoreGraveyardCleanupService
,StoreValueSchemasCacheService
,SystemStoreRepairService
,TopicCleanupService
,UnusedValueSchemaCleanupService
,VeniceControllerService
Blueprint for all Services initiated from Venice Server
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprotected final org.apache.logging.log4j.Logger
protected final AtomicReference<AbstractVeniceService.ServiceState>
-
Constructor Summary
-
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
serviceState
toAbstractVeniceService.ServiceState.STARTED
upon completion of the async work). - Throws:
Exception
-
stopInner
- Throws:
Exception
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
-