Package com.linkedin.venice.helix
Class HelixReadOnlyLiveClusterConfigRepository
java.lang.Object
com.linkedin.venice.helix.HelixReadOnlyLiveClusterConfigRepository
- All Implemented Interfaces:
ReadOnlyLiveClusterConfigRepository
,VeniceResource
- Direct Known Subclasses:
HelixReadWriteLiveClusterConfigRepository
public class HelixReadOnlyLiveClusterConfigRepository
extends Object
implements ReadOnlyLiveClusterConfigRepository
This class is used to cache live cluster configs.
The expected users are all venice-backend components.
-
Field Summary
Modifier and TypeFieldDescriptionprotected final String
protected LiveClusterConfig
protected final org.apache.helix.manager.zk.ZkBaseDataAccessor<LiveClusterConfig>
-
Constructor Summary
ConstructorDescriptionHelixReadOnlyLiveClusterConfigRepository
(org.apache.helix.zookeeper.impl.client.ZkClient zkClient, HelixAdapterSerializer adapter, String clusterName) -
Method Summary
-
Field Details
-
zkDataAccessor
-
clusterConfigZkPath
-
liveClusterConfig
-
-
Constructor Details
-
HelixReadOnlyLiveClusterConfigRepository
public HelixReadOnlyLiveClusterConfigRepository(org.apache.helix.zookeeper.impl.client.ZkClient zkClient, HelixAdapterSerializer adapter, String clusterName)
-
-
Method Details
-
getConfigs
Description copied from interface:ReadOnlyLiveClusterConfigRepository
Get live cluster configs- Specified by:
getConfigs
in interfaceReadOnlyLiveClusterConfigRepository
- Returns:
-
refresh
public void refresh()- Specified by:
refresh
in interfaceVeniceResource
-
clear
public void clear()- Specified by:
clear
in interfaceVeniceResource
-