Class D2ControllerClient
java.lang.Object
com.linkedin.venice.controllerapi.ControllerClient
com.linkedin.venice.controllerapi.D2ControllerClient
- All Implemented Interfaces:
Closeable,AutoCloseable
-
Constructor Summary
ConstructorsConstructorDescriptionD2ControllerClient(String d2ServiceName, String clusterName, com.linkedin.d2.balancer.D2Client d2Client) D2ControllerClient(String d2ServiceName, String clusterName, com.linkedin.d2.balancer.D2Client d2Client, Optional<SSLFactory> sslFactory) D2ControllerClient(String d2ServiceName, String clusterName, String d2ZkHost, Optional<SSLFactory> sslFactory) D2ControllerClient(String d2ServiceName, String clusterName, List<com.linkedin.d2.balancer.D2Client> d2Clients, Optional<SSLFactory> sslFactory) D2ControllerClient(String d2ServiceName, String clusterName, Optional<SSLFactory> sslFactory, List<String> d2ZkHosts) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()static URLconvertToSecureUrl(URL url) Deprecated.static URLconvertToSecureUrl(URL url, int port) Deprecated.static D2ServiceDiscoveryResponsediscoverCluster(com.linkedin.d2.balancer.D2Client d2Client, String d2ServiceName, String storeName) static D2ServiceDiscoveryResponsediscoverCluster(com.linkedin.d2.balancer.D2Client d2Client, String d2ServiceName, String storeName, int retryAttempts) discoverCluster(String storeName) static D2ServiceDiscoveryResponsediscoverCluster(String d2ZkHost, String d2ServiceName, String storeName, int retryAttempts) Deprecated.static D2ServiceDiscoveryResponsediscoverCluster(String d2ZkHost, String d2ServiceName, String storeName, int retryAttempts, Optional<SSLFactory> sslFactory) Deprecated.protected StringDiscover leader controller from a list of D2 Clients.Methods inherited from class com.linkedin.venice.controllerapi.ControllerClient
abortMigration, addDerivedSchema, addDerivedSchema, addNodeIntoAllowList, addValueSchema, addValueSchema, addValueSchema, addVersionAndStartIngestion, autoMigrateStore, checkResourceCleanupForStoreCreation, cleanExecutionIds, cleanupInstanceCustomizedStates, compareStore, completeMigration, configureActiveActiveReplicationForCluster, constructClusterControllerClient, constructClusterControllerClient, copyOverStoreMetadata, createNewStore, createNewStore, createNewStoreWithParameters, createNewSystemStore, createStoragePersona, dataRecovery, deleteAclForStore, deleteAllVersions, deleteKafkaTopic, deleteOldVersion, deleteStoragePersona, deleteStore, deleteStore, deleteValueSchemas, disableAndDeleteStore, discoverAndConstructControllerClient, discoverCluster, emptyPush, enableMaxCapacityProtection, enableQuotaRebalanced, enableStoreReads, enableStoreReadWrites, enableStoreWrites, enableThrottling, encodeQueryParams, getAclForStore, getAdminCommandExecution, getAdminOperationProtocolVersionFromControllers, getAdminTopicMetadata, getAggregatedHealthStatus, getAllReplicationMetadataSchemas, getAllValueAndDerivedSchema, getAllValueSchema, getBackupVersions, getClusterName, getClusterStaleStores, getClusterStoragePersonas, getClusterStores, getControllerDiscoveryUrls, getDeadStores, getDeletableStoreTopics, getFutureVersions, getHeartbeatFromSystemStore, getInUseSchemaIds, getKafkaTopicConfigs, getKeySchema, getLastSucceedExecutionId, getLeaderControllerUrl, getLocalAdminOperationProtocolVersion, getMigrationPushStrategies, getNewControllerTransport, getQueryParamsToDiscoverCluster, getRegionPushDetails, getRepushInfo, getRoutersClusterConfig, getStorageEngineOverheadRatio, getStoragePersona, getStoragePersonaAssociatedWithStore, getStore, getStore, getStore, getStoreLargestUsedVersion, getStoresForCompaction, getValueOrDerivedSchemaId, getValueSchema, getValueSchemaID, isNodeRemovable, isNodeRemovable, isStoreMigrationAllowed, isStoreVersionReadyForDataRecovery, killOfflinePushJob, listBootstrappingVersions, listChildControllers, listInstancesStatuses, listReplicas, listStorageNodeReplicas, listStorageNodes, listStorePushInfo, listStoresStatuses, migrateStore, newParams, nodeReplicasReadiness, overrideSetActiveVersion, prepareDataRecovery, queryDetailedJobStatus, queryJobStatus, queryJobStatus, queryJobStatus, queryJobStatus, queryOverallJobStatus, queryOverallJobStatus, queryOverallJobStatus, queryStoreList, queryStoreList, queryStoreList, removeDerivedSchema, removeNodeFromAllowList, removeNodeFromCluster, removeStoreFromGraveyard, repushStore, requestTopicForWrites, requestTopicForWrites, requestTopicForWrites, retryableRequest, retryableRequest, retryableRequest, retryableRequest, rollbackToBackupVersion, rollbackToBackupVersion, rollForwardToFutureVersion, rollForwardToFutureVersion, rollForwardToFutureVersion, sendEmptyPushAndWait, sendHeartbeatToSystemStore, sendPushJobDetails, setMigrationPushStrategy, setStoreOwner, setStorePartitionCount, skipAdminMessage, updateAclForStore, updateAdminOperationProtocolVersion, updateAdminTopicMetadata, updateClusterConfig, updateDarkClusterConfig, updateKafkaTopicLogCompaction, updateKafkaTopicMinInSyncReplica, updateKafkaTopicRetention, updateStoragePersona, updateStore, validateStoreDeleted, wipeCluster, writeEndOfPush
-
Constructor Details
-
D2ControllerClient
public D2ControllerClient(String d2ServiceName, String clusterName, String d2ZkHost, Optional<SSLFactory> sslFactory) -
D2ControllerClient
-
D2ControllerClient
public D2ControllerClient(String d2ServiceName, String clusterName, com.linkedin.d2.balancer.D2Client d2Client, Optional<SSLFactory> sslFactory) -
D2ControllerClient
public D2ControllerClient(String d2ServiceName, String clusterName, List<com.linkedin.d2.balancer.D2Client> d2Clients, Optional<SSLFactory> sslFactory) -
D2ControllerClient
-
-
Method Details
-
discoverLeaderController
Discover leader controller from a list of D2 Clients.- Overrides:
discoverLeaderControllerin classControllerClient- Returns:
- leader controller url
-
discoverCluster
public static D2ServiceDiscoveryResponse discoverCluster(com.linkedin.d2.balancer.D2Client d2Client, String d2ServiceName, String storeName) -
discoverCluster
@Deprecated public static D2ServiceDiscoveryResponse discoverCluster(String d2ZkHost, String d2ServiceName, String storeName, int retryAttempts) Deprecated. -
discoverCluster
@Deprecated public static D2ServiceDiscoveryResponse discoverCluster(String d2ZkHost, String d2ServiceName, String storeName, int retryAttempts, Optional<SSLFactory> sslFactory) Deprecated. -
discoverCluster
public static D2ServiceDiscoveryResponse discoverCluster(com.linkedin.d2.balancer.D2Client d2Client, String d2ServiceName, String storeName, int retryAttempts) -
discoverCluster
- Overrides:
discoverClusterin classControllerClient
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classControllerClient
-
convertToSecureUrl
Deprecated.Convert a HTTP url to HTTPS url with 1578 port number; TODO: remove the below helper functions after Controller ACL migration.- Throws:
MalformedURLException
-
convertToSecureUrl
Deprecated.Convert a HTTP url to HTTPS url with specific port number; TODO: remove the below helper functions after Controller ACL migration.- Throws:
MalformedURLException
-