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 String
protected DarkClusterConfig
protected 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:ReadOnlyDarkClusterConfigRepository
Get dark cluster configs- Specified by:
getConfigs
in interfaceReadOnlyDarkClusterConfigRepository
- Returns:
-
refresh
public void refresh()- Specified by:
refresh
in interfaceReadOnlyDarkClusterConfigRepository
- Specified by:
refresh
in interfaceVeniceResource
-
clear
public void clear()- Specified by:
clear
in interfaceReadOnlyDarkClusterConfigRepository
- Specified by:
clear
in interfaceVeniceResource
-