Class FakePropertyStore
- java.lang.Object
-
- org.apache.helix.manager.zk.ZkCacheBaseDataAccessor<T>
-
- org.apache.helix.store.zk.ZkHelixPropertyStore<org.apache.helix.zookeeper.datamodel.ZNRecord>
-
- org.apache.pinot.common.utils.helix.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>
-
-
Constructor Summary
Constructors Constructor Description FakePropertyStore()
-
Method Summary
Modifier and Type Method Description booleanexists(String path, int options)org.apache.helix.zookeeper.datamodel.ZNRecordget(String path, org.apache.zookeeper.data.Stat stat, int options)List<String>getChildNames(String parentPath, int options)org.apache.zookeeper.data.StatgetStat(String path, int options)booleanremove(String path, int options)booleanset(String path, org.apache.helix.zookeeper.datamodel.ZNRecord record, int options)booleanset(String path, org.apache.helix.zookeeper.datamodel.ZNRecord record, int expectedVersion, int options)voidsetContentAndStat(String path, org.apache.helix.zookeeper.datamodel.ZNRecord record)voidstart()voidsubscribeDataChanges(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
-
-
-
-
Method Detail
-
get
public org.apache.helix.zookeeper.datamodel.ZNRecord get(String path, org.apache.zookeeper.data.Stat stat, int options)
- Specified by:
getin interfaceorg.apache.helix.BaseDataAccessor<org.apache.helix.zookeeper.datamodel.ZNRecord>- Overrides:
getin classorg.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:
getStatin interfaceorg.apache.helix.BaseDataAccessor<org.apache.helix.zookeeper.datamodel.ZNRecord>- Overrides:
getStatin classorg.apache.helix.manager.zk.ZkCacheBaseDataAccessor<org.apache.helix.zookeeper.datamodel.ZNRecord>
-
getChildNames
public List<String> getChildNames(String parentPath, int options)
- Specified by:
getChildNamesin interfaceorg.apache.helix.BaseDataAccessor<org.apache.helix.zookeeper.datamodel.ZNRecord>- Overrides:
getChildNamesin classorg.apache.helix.manager.zk.ZkCacheBaseDataAccessor<org.apache.helix.zookeeper.datamodel.ZNRecord>
-
exists
public boolean exists(String path, int options)
- Specified by:
existsin interfaceorg.apache.helix.BaseDataAccessor<org.apache.helix.zookeeper.datamodel.ZNRecord>- Overrides:
existsin classorg.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:
subscribeDataChangesin interfaceorg.apache.helix.BaseDataAccessor<org.apache.helix.zookeeper.datamodel.ZNRecord>- Overrides:
subscribeDataChangesin classorg.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:
setin interfaceorg.apache.helix.BaseDataAccessor<org.apache.helix.zookeeper.datamodel.ZNRecord>- Overrides:
setin classorg.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:
setin interfaceorg.apache.helix.BaseDataAccessor<org.apache.helix.zookeeper.datamodel.ZNRecord>- Overrides:
setin classorg.apache.helix.manager.zk.ZkCacheBaseDataAccessor<org.apache.helix.zookeeper.datamodel.ZNRecord>
-
remove
public boolean remove(String path, int options)
- Specified by:
removein interfaceorg.apache.helix.BaseDataAccessor<org.apache.helix.zookeeper.datamodel.ZNRecord>- Overrides:
removein classorg.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:
startin interfaceorg.apache.helix.store.HelixPropertyStore<org.apache.helix.zookeeper.datamodel.ZNRecord>- Overrides:
startin classorg.apache.helix.manager.zk.ZkCacheBaseDataAccessor<org.apache.helix.zookeeper.datamodel.ZNRecord>
-
-