Package com.linkedin.venice.controller
Class ZkAdminTopicMetadataAccessor
java.lang.Object
com.linkedin.venice.controller.AdminTopicMetadataAccessor
com.linkedin.venice.controller.ZkAdminTopicMetadataAccessor
-
Constructor Summary
ConstructorDescriptionZkAdminTopicMetadataAccessor
(org.apache.helix.zookeeper.impl.client.ZkClient zkClient, HelixAdapterSerializer adapterSerializer) -
Method Summary
Modifier and TypeMethodDescriptiongetMetadata
(String clusterName) Retrieve the latest metadata map.void
updateMetadata
(String clusterName, Map<String, Long> metadata) Update all relevant metadata for a given cluster in a single transaction.Methods inherited from class com.linkedin.venice.controller.AdminTopicMetadataAccessor
generateMetadataMap, getExecutionId, getOffsets
-
Constructor Details
-
ZkAdminTopicMetadataAccessor
public ZkAdminTopicMetadataAccessor(org.apache.helix.zookeeper.impl.client.ZkClient zkClient, HelixAdapterSerializer adapterSerializer)
-
-
Method Details
-
updateMetadata
Description copied from class:AdminTopicMetadataAccessor
Update all relevant metadata for a given cluster in a single transaction.- Specified by:
updateMetadata
in classAdminTopicMetadataAccessor
- Parameters:
clusterName
- of the cluster at interest.metadata
- map containing relevant information.- See Also:
-
getMetadata
Description copied from class:AdminTopicMetadataAccessor
Retrieve the latest metadata map.- Specified by:
getMetadata
in classAdminTopicMetadataAccessor
- Parameters:
clusterName
- of the cluster at interest.- See Also:
-