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
ConstructorDescriptionZkTransientStoreFactory
(org.apache.curator.framework.CuratorFramework curator) -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
<V> ZkEphemeralStore<V>
getOrCreateStore
(TransientStoreConfig<V> config) Returns atransient store
instance for the given configuration.
-
Constructor Details
-
ZkTransientStoreFactory
public ZkTransientStoreFactory(org.apache.curator.framework.CuratorFramework curator)
-
-
Method Details
-
getOrCreateStore
Description copied from interface:TransientStoreFactory
Returns atransient store
instance for the given configuration. Note that implementors have liberty to cache previousstore
instances.- Specified by:
getOrCreateStore
in interfaceTransientStoreFactory
- Type Parameters:
V
- store value type- Parameters:
config
- store configuration
-
close
- Specified by:
close
in interfaceAutoCloseable
- Throws:
Exception
-