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
Constructors Constructor Description HelixReadWriteLiveClusterConfigRepository(org.apache.helix.zookeeper.impl.client.ZkClient zkClient, HelixAdapterSerializer adapter, java.lang.String clusterName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
deleteConfigs()
Delete all live cluster configsvoid
updateConfigs(LiveClusterConfig clusterConfig)
Set live cluster configs-
Methods 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 Detail
-
HelixReadWriteLiveClusterConfigRepository
public HelixReadWriteLiveClusterConfigRepository(org.apache.helix.zookeeper.impl.client.ZkClient zkClient, HelixAdapterSerializer adapter, java.lang.String clusterName)
-
-
Method Detail
-
updateConfigs
public void updateConfigs(LiveClusterConfig clusterConfig)
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
-
-