Class D2ControllerClient
- java.lang.Object
-
- com.linkedin.venice.controllerapi.ControllerClient
-
- com.linkedin.venice.controllerapi.D2ControllerClient
-
- All Implemented Interfaces:
java.io.Closeable
,java.lang.AutoCloseable
public class D2ControllerClient extends ControllerClient
-
-
Constructor Summary
Constructors Constructor Description D2ControllerClient(java.lang.String d2ServiceName, java.lang.String clusterName, com.linkedin.d2.balancer.D2Client d2Client)
D2ControllerClient(java.lang.String d2ServiceName, java.lang.String clusterName, com.linkedin.d2.balancer.D2Client d2Client, java.util.Optional<SSLFactory> sslFactory)
D2ControllerClient(java.lang.String d2ServiceName, java.lang.String clusterName, java.lang.String d2ZkHost, java.util.Optional<SSLFactory> sslFactory)
D2ControllerClient(java.lang.String d2ServiceName, java.lang.String clusterName, java.util.List<com.linkedin.d2.balancer.D2Client> d2Clients, java.util.Optional<SSLFactory> sslFactory)
D2ControllerClient(java.lang.String d2ServiceName, java.lang.String clusterName, java.util.Optional<SSLFactory> sslFactory, java.util.List<java.lang.String> d2ZkHosts)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
close()
static java.net.URL
convertToSecureUrl(java.net.URL url)
Deprecated.static java.net.URL
convertToSecureUrl(java.net.URL url, int port)
Deprecated.static D2ServiceDiscoveryResponse
discoverCluster(com.linkedin.d2.balancer.D2Client d2Client, java.lang.String d2ServiceName, java.lang.String storeName)
static D2ServiceDiscoveryResponse
discoverCluster(com.linkedin.d2.balancer.D2Client d2Client, java.lang.String d2ServiceName, java.lang.String storeName, int retryAttempts)
D2ServiceDiscoveryResponse
discoverCluster(java.lang.String storeName)
static D2ServiceDiscoveryResponse
discoverCluster(java.lang.String d2ZkHost, java.lang.String d2ServiceName, java.lang.String storeName, int retryAttempts)
Deprecated.static D2ServiceDiscoveryResponse
discoverCluster(java.lang.String d2ZkHost, java.lang.String d2ServiceName, java.lang.String storeName, int retryAttempts, java.util.Optional<SSLFactory> sslFactory)
protected java.lang.String
discoverLeaderController()
Discover 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, checkResourceCleanupForStoreCreation, cleanupInstanceCustomizedStates, compareStore, completeMigration, configureActiveActiveReplicationForCluster, constructClusterControllerClient, constructClusterControllerClient, copyOverStoreMetadata, createNewStore, createNewStore, createNewStoreWithParameters, createNewSystemStore, createStoragePersona, dataRecovery, deleteAclForStore, deleteAllVersions, deleteKafkaTopic, deleteOldVersion, deleteStoragePersona, deleteStore, deleteValueSchemas, disableAndDeleteStore, discoverAndConstructControllerClient, discoverCluster, emptyPush, enableMaxCapacityProtection, enableQuotaRebalanced, enableStoreReads, enableStoreReadWrites, enableStoreWrites, enableThrottling, encodeQueryParams, getAclForStore, getAdminCommandExecution, getAdminTopicMetadata, getAggregatedHealthStatus, getAllReplicationMetadataSchemas, getAllValueAndDerivedSchema, getAllValueSchema, getBackupVersions, getClusterName, getClusterStaleStores, getClusterStoragePersonas, getClusterStores, getControllerDiscoveryUrls, getDeletableStoreTopics, getFutureVersions, getHeartbeatFromSystemStore, getInUseSchemaIds, getKafkaTopicConfigs, getKeySchema, getLastSucceedExecutionId, getLeaderControllerUrl, getMigrationPushStrategies, getQueryParamsToDiscoverCluster, getRegionPushDetails, getRepushInfo, getRoutersClusterConfig, getStorageEngineOverheadRatio, getStoragePersona, getStoragePersonaAssociatedWithStore, getStore, getStore, getStore, getStoreLargestUsedVersion, 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, queryStoreList, queryStoreList, queryStoreList, removeDerivedSchema, removeNodeFromAllowList, removeNodeFromCluster, removeStoreFromGraveyard, requestTopicForWrites, requestTopicForWrites, requestTopicForWrites, retryableRequest, retryableRequest, retryableRequest, retryableRequest, rollbackToBackupVersion, rollbackToBackupVersion, rollForwardToFutureVersion, rollForwardToFutureVersion, sendEmptyPushAndWait, sendHeartbeatToSystemStore, sendPushJobDetails, setMigrationPushStrategy, setStoreOwner, setStorePartitionCount, skipAdminMessage, updateAclForStore, updateAdminTopicMetadata, updateClusterConfig, updateKafkaTopicLogCompaction, updateKafkaTopicMinInSyncReplica, updateKafkaTopicRetention, updateStoragePersona, updateStore, wipeCluster, writeEndOfPush
-
-
-
-
Constructor Detail
-
D2ControllerClient
public D2ControllerClient(java.lang.String d2ServiceName, java.lang.String clusterName, java.lang.String d2ZkHost, java.util.Optional<SSLFactory> sslFactory)
-
D2ControllerClient
public D2ControllerClient(java.lang.String d2ServiceName, java.lang.String clusterName, com.linkedin.d2.balancer.D2Client d2Client)
-
D2ControllerClient
public D2ControllerClient(java.lang.String d2ServiceName, java.lang.String clusterName, com.linkedin.d2.balancer.D2Client d2Client, java.util.Optional<SSLFactory> sslFactory)
-
D2ControllerClient
public D2ControllerClient(java.lang.String d2ServiceName, java.lang.String clusterName, java.util.List<com.linkedin.d2.balancer.D2Client> d2Clients, java.util.Optional<SSLFactory> sslFactory)
-
D2ControllerClient
public D2ControllerClient(java.lang.String d2ServiceName, java.lang.String clusterName, java.util.Optional<SSLFactory> sslFactory, java.util.List<java.lang.String> d2ZkHosts)
-
-
Method Detail
-
discoverLeaderController
protected java.lang.String discoverLeaderController()
Discover leader controller from a list of D2 Clients.- Overrides:
discoverLeaderController
in classControllerClient
- Returns:
- leader controller url
-
discoverCluster
public static D2ServiceDiscoveryResponse discoverCluster(com.linkedin.d2.balancer.D2Client d2Client, java.lang.String d2ServiceName, java.lang.String storeName)
-
discoverCluster
@Deprecated public static D2ServiceDiscoveryResponse discoverCluster(java.lang.String d2ZkHost, java.lang.String d2ServiceName, java.lang.String storeName, int retryAttempts)
Deprecated.
-
discoverCluster
public static D2ServiceDiscoveryResponse discoverCluster(java.lang.String d2ZkHost, java.lang.String d2ServiceName, java.lang.String storeName, int retryAttempts, java.util.Optional<SSLFactory> sslFactory)
-
discoverCluster
public static D2ServiceDiscoveryResponse discoverCluster(com.linkedin.d2.balancer.D2Client d2Client, java.lang.String d2ServiceName, java.lang.String storeName, int retryAttempts)
-
discoverCluster
public D2ServiceDiscoveryResponse discoverCluster(java.lang.String storeName)
- Overrides:
discoverCluster
in classControllerClient
-
close
public void close()
- Specified by:
close
in interfacejava.lang.AutoCloseable
- Specified by:
close
in interfacejava.io.Closeable
- Overrides:
close
in classControllerClient
-
convertToSecureUrl
@Deprecated public static java.net.URL convertToSecureUrl(java.net.URL url) throws java.net.MalformedURLException
Deprecated.Convert a HTTP url to HTTPS url with 1578 port number; TODO: remove the below helper functions after Controller ACL migration.- Throws:
java.net.MalformedURLException
-
convertToSecureUrl
@Deprecated public static java.net.URL convertToSecureUrl(java.net.URL url, int port) throws java.net.MalformedURLException
Deprecated.Convert a HTTP url to HTTPS url with specific port number; TODO: remove the below helper functions after Controller ACL migration.- Throws:
java.net.MalformedURLException
-
-