Class FakePropertyStore

  • All Implemented Interfaces:
    org.apache.helix.BaseDataAccessor<org.apache.helix.zookeeper.datamodel.ZNRecord>, org.apache.helix.store.HelixPropertyStore<org.apache.helix.zookeeper.datamodel.ZNRecord>

    public class FakePropertyStore
    extends org.apache.helix.store.zk.ZkHelixPropertyStore<org.apache.helix.zookeeper.datamodel.ZNRecord>
    • Nested Class Summary

      • Nested classes/interfaces inherited from class org.apache.helix.manager.zk.ZkCacheBaseDataAccessor

        org.apache.helix.manager.zk.ZkCacheBaseDataAccessor.Builder<T extends Object>
    • Field Summary

      • Fields inherited from class org.apache.helix.store.zk.ZkHelixPropertyStore

        MONITOR_TYPE
      • Fields inherited from class org.apache.helix.manager.zk.ZkCacheBaseDataAccessor

        _wtCache, _zkCache
    • Method Summary

      Modifier and Type Method Description
      boolean exists​(String path, int options)  
      org.apache.helix.zookeeper.datamodel.ZNRecord get​(String path, org.apache.zookeeper.data.Stat stat, int options)  
      List<String> getChildNames​(String parentPath, int options)  
      org.apache.zookeeper.data.Stat getStat​(String path, int options)  
      boolean remove​(String path, int options)  
      boolean set​(String path, org.apache.helix.zookeeper.datamodel.ZNRecord record, int options)  
      boolean set​(String path, org.apache.helix.zookeeper.datamodel.ZNRecord record, int expectedVersion, int options)  
      void setContentAndStat​(String path, org.apache.helix.zookeeper.datamodel.ZNRecord record)  
      void start()  
      void subscribeDataChanges​(String path, org.apache.helix.zookeeper.zkclient.IZkDataListener listener)  
      • Methods inherited from class org.apache.helix.manager.zk.ZkCacheBaseDataAccessor

        close, create, create, createChildren, createChildren, exists, finalize, get, get, getChildren, getChildren, getStats, remove, reset, setChildren, stop, subscribe, subscribeChildChanges, unsubscribe, unsubscribeChildChanges, unsubscribeDataChanges, update, updateChildren
    • Constructor Detail

      • FakePropertyStore

        public FakePropertyStore()
    • Method Detail

      • get

        public org.apache.helix.zookeeper.datamodel.ZNRecord get​(String path,
                                                                 org.apache.zookeeper.data.Stat stat,
                                                                 int options)
        Specified by:
        get in interface org.apache.helix.BaseDataAccessor<org.apache.helix.zookeeper.datamodel.ZNRecord>
        Overrides:
        get in class org.apache.helix.manager.zk.ZkCacheBaseDataAccessor<org.apache.helix.zookeeper.datamodel.ZNRecord>
      • getStat

        public org.apache.zookeeper.data.Stat getStat​(String path,
                                                      int options)
        Specified by:
        getStat in interface org.apache.helix.BaseDataAccessor<org.apache.helix.zookeeper.datamodel.ZNRecord>
        Overrides:
        getStat in class org.apache.helix.manager.zk.ZkCacheBaseDataAccessor<org.apache.helix.zookeeper.datamodel.ZNRecord>
      • getChildNames

        public List<String> getChildNames​(String parentPath,
                                          int options)
        Specified by:
        getChildNames in interface org.apache.helix.BaseDataAccessor<org.apache.helix.zookeeper.datamodel.ZNRecord>
        Overrides:
        getChildNames in class org.apache.helix.manager.zk.ZkCacheBaseDataAccessor<org.apache.helix.zookeeper.datamodel.ZNRecord>
      • exists

        public boolean exists​(String path,
                              int options)
        Specified by:
        exists in interface org.apache.helix.BaseDataAccessor<org.apache.helix.zookeeper.datamodel.ZNRecord>
        Overrides:
        exists in class org.apache.helix.manager.zk.ZkCacheBaseDataAccessor<org.apache.helix.zookeeper.datamodel.ZNRecord>
      • subscribeDataChanges

        public void subscribeDataChanges​(String path,
                                         org.apache.helix.zookeeper.zkclient.IZkDataListener listener)
        Specified by:
        subscribeDataChanges in interface org.apache.helix.BaseDataAccessor<org.apache.helix.zookeeper.datamodel.ZNRecord>
        Overrides:
        subscribeDataChanges in class org.apache.helix.manager.zk.ZkCacheBaseDataAccessor<org.apache.helix.zookeeper.datamodel.ZNRecord>
      • set

        public boolean set​(String path,
                           org.apache.helix.zookeeper.datamodel.ZNRecord record,
                           int expectedVersion,
                           int options)
        Specified by:
        set in interface org.apache.helix.BaseDataAccessor<org.apache.helix.zookeeper.datamodel.ZNRecord>
        Overrides:
        set in class org.apache.helix.manager.zk.ZkCacheBaseDataAccessor<org.apache.helix.zookeeper.datamodel.ZNRecord>
      • set

        public boolean set​(String path,
                           org.apache.helix.zookeeper.datamodel.ZNRecord record,
                           int options)
        Specified by:
        set in interface org.apache.helix.BaseDataAccessor<org.apache.helix.zookeeper.datamodel.ZNRecord>
        Overrides:
        set in class org.apache.helix.manager.zk.ZkCacheBaseDataAccessor<org.apache.helix.zookeeper.datamodel.ZNRecord>
      • remove

        public boolean remove​(String path,
                              int options)
        Specified by:
        remove in interface org.apache.helix.BaseDataAccessor<org.apache.helix.zookeeper.datamodel.ZNRecord>
        Overrides:
        remove in class org.apache.helix.manager.zk.ZkCacheBaseDataAccessor<org.apache.helix.zookeeper.datamodel.ZNRecord>
      • setContentAndStat

        public void setContentAndStat​(String path,
                                      org.apache.helix.zookeeper.datamodel.ZNRecord record)
                               throws Exception
        Throws:
        Exception
      • start

        public void start()
        Specified by:
        start in interface org.apache.helix.store.HelixPropertyStore<org.apache.helix.zookeeper.datamodel.ZNRecord>
        Overrides:
        start in class org.apache.helix.manager.zk.ZkCacheBaseDataAccessor<org.apache.helix.zookeeper.datamodel.ZNRecord>