Package com.linkedin.venice.controller
Class VeniceControllerService
java.lang.Object
com.linkedin.venice.service.AbstractVeniceService
com.linkedin.venice.controller.VeniceControllerService
- All Implemented Interfaces:
Closeable
,AutoCloseable
A service venice controller. Wraps Helix Controller.
-
Nested Class Summary
Nested classes/interfaces inherited from class com.linkedin.venice.service.AbstractVeniceService
AbstractVeniceService.ServiceState
-
Field Summary
Fields inherited from class com.linkedin.venice.service.AbstractVeniceService
logger, serviceState
-
Constructor Summary
ConstructorDescriptionVeniceControllerService
(VeniceControllerMultiClusterConfig multiClusterConfigs, io.tehuti.metrics.MetricsRepository metricsRepository, boolean sslEnabled, Optional<SSLConfig> sslConfig, Optional<DynamicAccessController> accessController, Optional<AuthorizerService> authorizerService, com.linkedin.d2.balancer.D2Client d2Client, Optional<ClientConfig> routerClientConfig, Optional<ICProvider> icProvider, Optional<SupersetSchemaGenerator> externalSupersetSchemaGenerator, PubSubTopicRepository pubSubTopicRepository, PubSubClientsFactory pubSubClientsFactory) -
Method Summary
Modifier and TypeMethodDescriptiongetAdminConsumerServiceByCluster
(String cluster) This method is for testing.boolean
CausesVeniceControllerService
to begin execution.void
CausesVeniceControllerService
to stop executing.
-
Constructor Details
-
VeniceControllerService
public VeniceControllerService(VeniceControllerMultiClusterConfig multiClusterConfigs, io.tehuti.metrics.MetricsRepository metricsRepository, boolean sslEnabled, Optional<SSLConfig> sslConfig, Optional<DynamicAccessController> accessController, Optional<AuthorizerService> authorizerService, com.linkedin.d2.balancer.D2Client d2Client, Optional<ClientConfig> routerClientConfig, Optional<ICProvider> icProvider, Optional<SupersetSchemaGenerator> externalSupersetSchemaGenerator, PubSubTopicRepository pubSubTopicRepository, PubSubClientsFactory pubSubClientsFactory)
-
-
Method Details
-
startInner
public boolean startInner()CausesVeniceControllerService
to begin execution.- Specified by:
startInner
in 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.serviceState
toAbstractVeniceService.ServiceState.STARTED
upon completion of the async work).
-
stopInner
public void stopInner()CausesVeniceControllerService
to stop executing.- Specified by:
stopInner
in classAbstractVeniceService
-
getVeniceHelixAdmin
- Returns:
- a reference to the HelixAdmin object.
-
getAdminConsumerServiceByCluster
This method is for testing.- Parameters:
cluster
-- Returns:
- the admin consumer service for the cluster
-
getKafkaValueSerializer
-