Package org.apache.drill.exec.coord.zk
Class EventDispatcher<V>
java.lang.Object
org.apache.drill.exec.coord.zk.EventDispatcher<V>
- Type Parameters:
V
- value type
- All Implemented Interfaces:
org.apache.curator.framework.recipes.cache.PathChildrenCacheListener
public class EventDispatcher<V>
extends Object
implements org.apache.curator.framework.recipes.cache.PathChildrenCacheListener
An abstraction used for dispatching store
events
.-
Field Summary
Modifier and TypeFieldDescriptionstatic final Map<org.apache.curator.framework.recipes.cache.PathChildrenCacheEvent.Type,
TransientStoreEventType> -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
childEvent
(org.apache.curator.framework.CuratorFramework client, org.apache.curator.framework.recipes.cache.PathChildrenCacheEvent event)
-
Field Details
-
MAPPINGS
public static final Map<org.apache.curator.framework.recipes.cache.PathChildrenCacheEvent.Type,TransientStoreEventType> MAPPINGS
-
-
Constructor Details
-
EventDispatcher
-
-
Method Details
-
childEvent
public void childEvent(org.apache.curator.framework.CuratorFramework client, org.apache.curator.framework.recipes.cache.PathChildrenCacheEvent event) throws Exception - Specified by:
childEvent
in interfaceorg.apache.curator.framework.recipes.cache.PathChildrenCacheListener
- Throws:
Exception
-