Package com.linkedin.venice.helix
Class HelixReadOnlyDarkClusterConfigRepository
java.lang.Object
com.linkedin.venice.helix.HelixReadOnlyDarkClusterConfigRepository
- All Implemented Interfaces:
ReadOnlyDarkClusterConfigRepository,VeniceResource
- Direct Known Subclasses:
HelixReadWriteDarkClusterConfigRepository
public class HelixReadOnlyDarkClusterConfigRepository
extends Object
implements ReadOnlyDarkClusterConfigRepository
This class is a read-only implementation of
ReadOnlyDarkClusterConfigRepository.
It listens to changes in the dark cluster configuration stored in ZooKeeper and updates its
in-memory representation accordingly.
ZK Config Path: -
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected class -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final Stringprotected DarkClusterConfigprotected org.apache.helix.manager.zk.ZkBaseDataAccessor<DarkClusterConfig> -
Constructor Summary
ConstructorsConstructorDescriptionHelixReadOnlyDarkClusterConfigRepository(org.apache.helix.zookeeper.impl.client.ZkClient zkClient, HelixAdapterSerializer adapter, String clusterName) -
Method Summary
-
Field Details
-
zkDataAccessor
-
clusterConfigZkPath
-
darkClusterConfig
-
-
Constructor Details
-
HelixReadOnlyDarkClusterConfigRepository
public HelixReadOnlyDarkClusterConfigRepository(org.apache.helix.zookeeper.impl.client.ZkClient zkClient, HelixAdapterSerializer adapter, String clusterName)
-
-
Method Details
-
getConfigs
Description copied from interface:ReadOnlyDarkClusterConfigRepositoryGet dark cluster configs- Specified by:
getConfigsin interfaceReadOnlyDarkClusterConfigRepository- Returns:
-
refresh
public void refresh()- Specified by:
refreshin interfaceReadOnlyDarkClusterConfigRepository- Specified by:
refreshin interfaceVeniceResource
-
clear
public void clear()- Specified by:
clearin interfaceReadOnlyDarkClusterConfigRepository- Specified by:
clearin interfaceVeniceResource
-