Package org.apache.drill.exec.coord.zk
Class ZkTransientStoreFactory
java.lang.Object
org.apache.drill.exec.coord.zk.ZkTransientStoreFactory
- All Implemented Interfaces:
AutoCloseable,TransientStoreFactory
-
Constructor Summary
ConstructorsConstructorDescriptionZkTransientStoreFactory(org.apache.curator.framework.CuratorFramework curator) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()<V> ZkEphemeralStore<V> getOrCreateStore(TransientStoreConfig<V> config) Returns atransient storeinstance for the given configuration.
-
Constructor Details
-
ZkTransientStoreFactory
public ZkTransientStoreFactory(org.apache.curator.framework.CuratorFramework curator)
-
-
Method Details
-
getOrCreateStore
Description copied from interface:TransientStoreFactoryReturns atransient storeinstance for the given configuration. Note that implementors have liberty to cache previousstoreinstances.- Specified by:
getOrCreateStorein interfaceTransientStoreFactory- Type Parameters:
V- store value type- Parameters:
config- store configuration
-
close
- Specified by:
closein interfaceAutoCloseable- Throws:
Exception
-