Package com.linkedin.venice.admin
Class InMemoryAdminTopicMetadataAccessor
- java.lang.Object
-
- com.linkedin.venice.controller.AdminTopicMetadataAccessor
-
- com.linkedin.venice.admin.InMemoryAdminTopicMetadataAccessor
-
public class InMemoryAdminTopicMetadataAccessor extends AdminTopicMetadataAccessor
In memory implementation ofAdminTopicMetadataAccessor
, should only be used for testing purposes.
-
-
Constructor Summary
Constructors Constructor Description InMemoryAdminTopicMetadataAccessor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Map<java.lang.String,java.lang.Long>
getMetadata(java.lang.String clusterName)
Retrieve the latest metadata map.void
updateMetadata(java.lang.String clusterName, java.util.Map<java.lang.String,java.lang.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
-
-
-
-
Method Detail
-
updateMetadata
public void updateMetadata(java.lang.String clusterName, java.util.Map<java.lang.String,java.lang.Long> metadata)
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
public java.util.Map<java.lang.String,java.lang.Long> getMetadata(java.lang.String clusterName)
Description copied from class:AdminTopicMetadataAccessor
Retrieve the latest metadata map.- Specified by:
getMetadata
in classAdminTopicMetadataAccessor
- Parameters:
clusterName
- of the cluster at interest.
-
-