Package com.linkedin.venice.admin
Class InMemoryAdminTopicMetadataAccessor
java.lang.Object
com.linkedin.venice.controller.AdminTopicMetadataAccessor
com.linkedin.venice.admin.InMemoryAdminTopicMetadataAccessor
In memory implementation of
AdminTopicMetadataAccessor
, should only be used for testing purposes.-
Constructor Summary
-
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
-
InMemoryAdminTopicMetadataAccessor
public InMemoryAdminTopicMetadataAccessor()
-
-
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.
-
getMetadata
Description copied from class:AdminTopicMetadataAccessor
Retrieve the latest metadata map.- Specified by:
getMetadata
in classAdminTopicMetadataAccessor
- Parameters:
clusterName
- of the cluster at interest.
-