public class ZkWorkItemRepository extends BaseWorkItemRepository implements PathChildrenCacheListener
| Constructor and Description |
|---|
ZkWorkItemRepository(org.apache.curator.framework.CuratorFramework curator,
java.lang.String partitionsPath) |
| Modifier and Type | Method and Description |
|---|---|
void |
childEvent(org.apache.curator.framework.CuratorFramework client,
PathChildrenCacheEvent event) |
void |
close()
Completely shuts down the repository.
|
java.util.List<java.lang.String> |
listWorkItemLocations() |
java.lang.String |
readContent(java.lang.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, java.lang.String partitionsPath)
public void start()
WorkItemRepositorystart in interface WorkItemRepositorypublic void stop()
WorkItemRepositorystop in interface WorkItemRepositorypublic void close()
WorkItemRepositoryclose in interface WorkItemRepositorypublic java.util.List<java.lang.String> listWorkItemLocations()
listWorkItemLocations in interface WorkItemRepositorypublic java.lang.String readContent(java.lang.String location)
readContent in class BaseWorkItemRepositorypublic void childEvent(org.apache.curator.framework.CuratorFramework client, PathChildrenCacheEvent event) throws java.lang.Exception
childEvent in interface PathChildrenCacheListenerjava.lang.ExceptionCopyright © 2014 Red Hat. All Rights Reserved.