Package com.linkedin.venice.controller
Class VeniceController
- java.lang.Object
-
- com.linkedin.venice.controller.VeniceController
-
public class VeniceController extends java.lang.Object
Venice Controller to manage the cluster. Internally wraps Helix Controller.
-
-
Constructor Summary
Constructors Constructor Description VeniceController(VeniceControllerContext ctx)
VeniceController(java.util.List<VeniceProperties> propertiesList, io.tehuti.metrics.MetricsRepository metricsRepository, java.util.List<ServiceDiscoveryAnnouncer> serviceDiscoveryAnnouncers, 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)
Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description VeniceControllerService
getVeniceControllerService()
static void
main(java.lang.String[] args)
static void
run(java.lang.String clusterConfigFilePath, java.lang.String controllerConfigFilePath, boolean joinThread)
void
start()
Causes venice controller and its associated services to begin execution.void
stop()
Causes venice controller and its associated services to stop executing.
-
-
-
Constructor Detail
-
VeniceController
@Deprecated public VeniceController(java.util.List<VeniceProperties> propertiesList, io.tehuti.metrics.MetricsRepository metricsRepository, java.util.List<ServiceDiscoveryAnnouncer> serviceDiscoveryAnnouncers, 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)
Deprecated.Allocates a newVeniceController
object.- Parameters:
propertiesList
- config properties coming fromConfigKeys
.metricsRepository
- a metric repository to emit metrics.serviceDiscoveryAnnouncers
- a list ofServiceDiscoveryAnnouncer
for service discovery announcement. Can be empty.accessController
- an optionalDynamicAccessController
for auth/auth. Deprecated, use authorizerService instead.authorizerService
- an optionalAuthorizerService
for auth/auth.d2Client
- aD2Client
used for interacting with child controllers.routerClientConfig
- an optionalClientConfig
used for reading schema from routers.icProvider
- an optional invocation-context provider class for calls between various deployable services.externalSupersetSchemaGenerator
- an optionalSupersetSchemaGenerator
used for generating superset schema.
-
VeniceController
public VeniceController(VeniceControllerContext ctx)
-
-
Method Detail
-
start
public void start()
Causes venice controller and its associated services to begin execution.
-
stop
public void stop()
Causes venice controller and its associated services to stop executing.
-
getVeniceControllerService
public VeniceControllerService getVeniceControllerService()
- Returns:
- the Venice controller service.
-
main
public static void main(java.lang.String[] args)
-
run
public static void run(java.lang.String clusterConfigFilePath, java.lang.String controllerConfigFilePath, boolean joinThread)
-
-