Package com.linkedin.venice.helix
Class ZkStoreConfigAccessor
java.lang.Object
com.linkedin.venice.helix.ZkStoreConfigAccessor
The class is used to access the store configs in Zookeeper.
This class is non-cluster specified.
-
Constructor Summary
ConstructorDescriptionZkStoreConfigAccessor
(org.apache.helix.zookeeper.impl.client.ZkClient zkClient, HelixAdapterSerializer adapterSerializer, Optional<MetaStoreWriter> metaStoreWriter) -
Method Summary
Modifier and TypeMethodDescriptionboolean
containsConfig
(String store) void
createConfig
(String store, String cluster) void
deleteConfig
(String store) getStoreConfig
(String store) getStoreConfigs
(List<String> stores) void
subscribeStoreConfigAddedOrDeletedListener
(org.apache.helix.zookeeper.zkclient.IZkChildListener listener) void
subscribeStoreConfigDataChangedListener
(String storeName, org.apache.helix.zookeeper.zkclient.IZkDataListener listener) void
unsubscribeStoreConfigAddedOrDeletedListener
(org.apache.helix.zookeeper.zkclient.IZkChildListener listener) void
unsubscribeStoreConfigDataChangedListener
(String storeName, org.apache.helix.zookeeper.zkclient.IZkDataListener listener) void
updateConfig
(StoreConfig config, boolean isStoreMetaSystemStoreEnabled)
-
Constructor Details
-
ZkStoreConfigAccessor
public ZkStoreConfigAccessor(org.apache.helix.zookeeper.impl.client.ZkClient zkClient, HelixAdapterSerializer adapterSerializer, Optional<MetaStoreWriter> metaStoreWriter)
-
-
Method Details
-
getAllStores
-
containsConfig
-
getStoreConfig
-
getStoreConfigs
-
createConfig
-
updateConfig
-
subscribeStoreConfigDataChangedListener
public void subscribeStoreConfigDataChangedListener(String storeName, org.apache.helix.zookeeper.zkclient.IZkDataListener listener) -
unsubscribeStoreConfigDataChangedListener
public void unsubscribeStoreConfigDataChangedListener(String storeName, org.apache.helix.zookeeper.zkclient.IZkDataListener listener) -
subscribeStoreConfigAddedOrDeletedListener
public void subscribeStoreConfigAddedOrDeletedListener(org.apache.helix.zookeeper.zkclient.IZkChildListener listener) -
unsubscribeStoreConfigAddedOrDeletedListener
public void unsubscribeStoreConfigAddedOrDeletedListener(org.apache.helix.zookeeper.zkclient.IZkChildListener listener) -
deleteConfig
-