Package org.apache.solr.cloud
Class ZkDistributedQueueFactory
- java.lang.Object
-
- org.apache.solr.cloud.ZkDistributedQueueFactory
-
- All Implemented Interfaces:
DistributedQueueFactory
public class ZkDistributedQueueFactory extends Object implements DistributedQueueFactory
Implementation ofDistributedQueueFactory
that uses ZooKeeper.
-
-
Constructor Summary
Constructors Constructor Description ZkDistributedQueueFactory(SolrZkClient zkClient)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DistributedQueue
makeQueue(String path)
void
removeQueue(String path)
-
-
-
Constructor Detail
-
ZkDistributedQueueFactory
public ZkDistributedQueueFactory(SolrZkClient zkClient)
-
-
Method Detail
-
makeQueue
public DistributedQueue makeQueue(String path) throws IOException
- Specified by:
makeQueue
in interfaceDistributedQueueFactory
- Throws:
IOException
-
removeQueue
public void removeQueue(String path) throws IOException
- Specified by:
removeQueue
in interfaceDistributedQueueFactory
- Throws:
IOException
-
-