Package com.linkedin.venice.controller
Class VeniceControllerService
- java.lang.Object
-
- com.linkedin.venice.service.AbstractVeniceService
-
- com.linkedin.venice.controller.VeniceControllerService
-
- All Implemented Interfaces:
java.io.Closeable
,java.lang.AutoCloseable
public class VeniceControllerService extends AbstractVeniceService
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
Constructors Constructor Description VeniceControllerService(VeniceControllerMultiClusterConfig multiClusterConfigs, io.tehuti.metrics.MetricsRepository metricsRepository, boolean sslEnabled, java.util.Optional<SSLConfig> sslConfig, java.util.Optional<DynamicAccessController> accessController, java.util.Optional<AuthorizerService> authorizerService, com.linkedin.d2.balancer.D2Client d2Client, java.util.Optional<ClientConfig> routerClientConfig, java.util.Optional<ICProvider> icProvider, java.util.Optional<SupersetSchemaGenerator> externalSupersetSchemaGenerator, PubSubTopicRepository pubSubTopicRepository, PubSubClientsFactory pubSubClientsFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AdminConsumerService
getAdminConsumerServiceByCluster(java.lang.String cluster)
This method is for testing.KafkaValueSerializer
getKafkaValueSerializer()
Admin
getVeniceHelixAdmin()
boolean
startInner()
CausesVeniceControllerService
to begin execution.void
stopInner()
CausesVeniceControllerService
to stop executing.
-
-
-
Constructor Detail
-
VeniceControllerService
public VeniceControllerService(VeniceControllerMultiClusterConfig multiClusterConfigs, io.tehuti.metrics.MetricsRepository metricsRepository, boolean sslEnabled, java.util.Optional<SSLConfig> sslConfig, java.util.Optional<DynamicAccessController> accessController, java.util.Optional<AuthorizerService> authorizerService, com.linkedin.d2.balancer.D2Client d2Client, java.util.Optional<ClientConfig> routerClientConfig, java.util.Optional<ICProvider> icProvider, java.util.Optional<SupersetSchemaGenerator> externalSupersetSchemaGenerator, PubSubTopicRepository pubSubTopicRepository, PubSubClientsFactory pubSubClientsFactory)
-
-
Method Detail
-
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
public Admin getVeniceHelixAdmin()
- Returns:
- a reference to the HelixAdmin object.
-
getAdminConsumerServiceByCluster
public AdminConsumerService getAdminConsumerServiceByCluster(java.lang.String cluster)
This method is for testing.- Parameters:
cluster
-- Returns:
- the admin consumer service for the cluster
-
getKafkaValueSerializer
public KafkaValueSerializer getKafkaValueSerializer()
-
-