Package com.linkedin.venice.helix
Class HelixReadWriteLiveClusterConfigRepository
java.lang.Object
com.linkedin.venice.helix.HelixReadOnlyLiveClusterConfigRepository
com.linkedin.venice.helix.HelixReadWriteLiveClusterConfigRepository
- All Implemented Interfaces:
ReadOnlyLiveClusterConfigRepository
,ReadWriteLiveClusterConfigRepository
,VeniceResource
public class HelixReadWriteLiveClusterConfigRepository
extends HelixReadOnlyLiveClusterConfigRepository
implements ReadWriteLiveClusterConfigRepository
This class is used to modify live cluster configs. The expected user is Venice Controller.
-
Field Summary
Fields inherited from class com.linkedin.venice.helix.HelixReadOnlyLiveClusterConfigRepository
clusterConfigZkPath, liveClusterConfig, zkDataAccessor
-
Constructor Summary
ConstructorDescriptionHelixReadWriteLiveClusterConfigRepository
(org.apache.helix.zookeeper.impl.client.ZkClient zkClient, HelixAdapterSerializer adapter, String clusterName) -
Method Summary
Modifier and TypeMethodDescriptionvoid
Delete all live cluster configsvoid
updateConfigs
(LiveClusterConfig clusterConfig) Set live cluster configsMethods inherited from class com.linkedin.venice.helix.HelixReadOnlyLiveClusterConfigRepository
clear, getConfigs, refresh
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.linkedin.venice.meta.ReadOnlyLiveClusterConfigRepository
getConfigs
Methods inherited from interface com.linkedin.venice.VeniceResource
clear, refresh
-
Constructor Details
-
HelixReadWriteLiveClusterConfigRepository
public HelixReadWriteLiveClusterConfigRepository(org.apache.helix.zookeeper.impl.client.ZkClient zkClient, HelixAdapterSerializer adapter, String clusterName)
-
-
Method Details
-
updateConfigs
Description copied from interface:ReadWriteLiveClusterConfigRepository
Set live cluster configs- Specified by:
updateConfigs
in interfaceReadWriteLiveClusterConfigRepository
- Parameters:
clusterConfig
- The updatedLiveClusterConfig
-
deleteConfigs
public void deleteConfigs()Description copied from interface:ReadWriteLiveClusterConfigRepository
Delete all live cluster configs- Specified by:
deleteConfigs
in interfaceReadWriteLiveClusterConfigRepository
-