public class ZkWorkItemRepository extends BaseWorkItemRepository implements org.apache.curator.framework.recipes.cache.PathChildrenCacheListener
| Constructor and Description |
|---|
ZkWorkItemRepository(org.apache.curator.framework.CuratorFramework curator,
String partitionsPath) |
| Modifier and Type | Method and Description |
|---|---|
void |
childEvent(org.apache.curator.framework.CuratorFramework client,
org.apache.curator.framework.recipes.cache.PathChildrenCacheEvent event) |
void |
close()
Completely shuts down the repository.
|
List<String> |
listWorkItemLocations() |
String |
readContent(String location) |
void |
start()
Start or resume the repository.
|
void |
stop()
Suspends the repository.
|
addListener, notifyListeners, readWorkItem, removeListenerpublic ZkWorkItemRepository(org.apache.curator.framework.CuratorFramework curator,
String partitionsPath)
public void start()
WorkItemRepositorystart in interface WorkItemRepositorypublic void stop()
WorkItemRepositorystop in interface WorkItemRepositorypublic void close()
WorkItemRepositoryclose in interface WorkItemRepositorypublic List<String> listWorkItemLocations()
listWorkItemLocations in interface WorkItemRepositorypublic String readContent(String location)
readContent in class BaseWorkItemRepositorypublic void childEvent(org.apache.curator.framework.CuratorFramework client,
org.apache.curator.framework.recipes.cache.PathChildrenCacheEvent event)
throws Exception
childEvent in interface org.apache.curator.framework.recipes.cache.PathChildrenCacheListenerExceptionCopyright © 2011–2014 Red Hat. All rights reserved.