Class SimDistributedQueueFactory.SimDistributedQueue
- java.lang.Object
-
- org.apache.solr.cloud.autoscaling.sim.SimDistributedQueueFactory.SimDistributedQueue
-
- All Implemented Interfaces:
DistributedQueue
- Enclosing class:
- SimDistributedQueueFactory
public static class SimDistributedQueueFactory.SimDistributedQueue extends Object implements DistributedQueue
-
-
Constructor Summary
Constructors Constructor Description SimDistributedQueue(String dir)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,Object>getStats()StatsgetZkStats()voidoffer(byte[] data)byte[]peek()byte[]peek(boolean block)byte[]peek(long wait)Collection<Pair<String,byte[]>>peekElements(int max, long waitMillis, Predicate<String> acceptFilter)byte[]poll()byte[]remove()byte[]take()
-
-
-
Constructor Detail
-
SimDistributedQueue
public SimDistributedQueue(String dir)
-
-
Method Detail
-
peek
public byte[] peek() throws Exception- Specified by:
peekin interfaceDistributedQueue- Throws:
Exception
-
peek
public byte[] peek(boolean block) throws Exception- Specified by:
peekin interfaceDistributedQueue- Throws:
Exception
-
peek
public byte[] peek(long wait) throws Exception- Specified by:
peekin interfaceDistributedQueue- Throws:
Exception
-
poll
public byte[] poll() throws Exception- Specified by:
pollin interfaceDistributedQueue- Throws:
Exception
-
remove
public byte[] remove() throws Exception- Specified by:
removein interfaceDistributedQueue- Throws:
Exception
-
take
public byte[] take() throws Exception- Specified by:
takein interfaceDistributedQueue- Throws:
Exception
-
offer
public void offer(byte[] data) throws Exception- Specified by:
offerin interfaceDistributedQueue- Throws:
Exception
-
peekElements
public Collection<Pair<String,byte[]>> peekElements(int max, long waitMillis, Predicate<String> acceptFilter) throws Exception
- Specified by:
peekElementsin interfaceDistributedQueue- Throws:
Exception
-
getZkStats
public Stats getZkStats()
-
getStats
public Map<String,Object> getStats()
- Specified by:
getStatsin interfaceDistributedQueue
-
-