Class ZkStoreConfigAccessor


  • public class ZkStoreConfigAccessor
    extends java.lang.Object
    The class is used to access the store configs in Zookeeper.

    This class is non-cluster specified.

    • Constructor Detail

      • ZkStoreConfigAccessor

        public ZkStoreConfigAccessor​(org.apache.helix.zookeeper.impl.client.ZkClient zkClient,
                                     HelixAdapterSerializer adapterSerializer,
                                     java.util.Optional<MetaStoreWriter> metaStoreWriter)
    • Method Detail

      • getAllStores

        public java.util.List<java.lang.String> getAllStores()
      • containsConfig

        public boolean containsConfig​(java.lang.String store)
      • getStoreConfig

        public StoreConfig getStoreConfig​(java.lang.String store)
      • getStoreConfigs

        public java.util.List<StoreConfig> getStoreConfigs​(java.util.List<java.lang.String> stores)
      • createConfig

        public void createConfig​(java.lang.String store,
                                 java.lang.String cluster)
      • updateConfig

        public void updateConfig​(StoreConfig config,
                                 boolean isStoreMetaSystemStoreEnabled)
      • subscribeStoreConfigDataChangedListener

        public void subscribeStoreConfigDataChangedListener​(java.lang.String storeName,
                                                            org.apache.helix.zookeeper.zkclient.IZkDataListener listener)
      • unsubscribeStoreConfigDataChangedListener

        public void unsubscribeStoreConfigDataChangedListener​(java.lang.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

        public void deleteConfig​(java.lang.String store)