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

      All Methods Instance Methods Concrete Methods 
      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)  
      boolean remove​(String path, int options)  
      boolean set​(String path, org.apache.helix.zookeeper.datamodel.ZNRecord stat, int options)  
      boolean set​(String path, org.apache.helix.zookeeper.datamodel.ZNRecord stat, int expectedVersion, int options)  
      void setContents​(String path, org.apache.helix.zookeeper.datamodel.ZNRecord contents)  
      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, getChildNames, getChildren, getChildren, getStat, 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>
      • 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 stat,
                           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 stat,
                           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>
      • setContents

        public void setContents​(String path,
                                org.apache.helix.zookeeper.datamodel.ZNRecord contents)
                         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>