public class DistributedMap extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
DistributedMap.MapEvent |
| Constructor and Description |
|---|
DistributedMap(SolrZkClient zookeeper,
String dir,
List<org.apache.zookeeper.data.ACL> acl) |
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Helper method to clear all child nodes for a parent node.
|
boolean |
contains(String trackingId) |
DistributedMap.MapEvent |
get(String trackingId) |
boolean |
put(String trackingId,
byte[] data) |
DistributedMap.MapEvent |
put(String trackingId,
byte[] data,
long timeout)
Offer the data and wait for the response
|
void |
remove(String trackingId) |
int |
size() |
public DistributedMap(SolrZkClient zookeeper, String dir, List<org.apache.zookeeper.data.ACL> acl)
public boolean put(String trackingId, byte[] data) throws org.apache.zookeeper.KeeperException, InterruptedException
org.apache.zookeeper.KeeperExceptionInterruptedExceptionpublic DistributedMap.MapEvent put(String trackingId, byte[] data, long timeout) throws org.apache.zookeeper.KeeperException, InterruptedException
org.apache.zookeeper.KeeperExceptionInterruptedExceptionpublic DistributedMap.MapEvent get(String trackingId) throws org.apache.zookeeper.KeeperException, InterruptedException
org.apache.zookeeper.KeeperExceptionInterruptedExceptionpublic boolean contains(String trackingId) throws org.apache.zookeeper.KeeperException, InterruptedException
org.apache.zookeeper.KeeperExceptionInterruptedExceptionpublic int size()
throws org.apache.zookeeper.KeeperException,
InterruptedException
org.apache.zookeeper.KeeperExceptionInterruptedExceptionpublic void remove(String trackingId) throws org.apache.zookeeper.KeeperException, InterruptedException
org.apache.zookeeper.KeeperExceptionInterruptedExceptionpublic void clear()
throws org.apache.zookeeper.KeeperException,
InterruptedException
org.apache.zookeeper.KeeperExceptionInterruptedExceptionCopyright © 2000-2014 Apache Software Foundation. All Rights Reserved.