public static class TrackingShardHandlerFactory.RequestTrackingQueue extends LinkedList<TrackingShardHandlerFactory.ShardRequestAndParams>
modCount
Constructor and Description |
---|
RequestTrackingQueue() |
Modifier and Type | Method and Description |
---|---|
void |
clear() |
Map<String,List<TrackingShardHandlerFactory.ShardRequestAndParams>> |
getAllRequests()
Retrieves all requests recorded by this collection as a Map of shard address (string url)
to a list of
TrackingShardHandlerFactory.ShardRequestAndParams |
List<TrackingShardHandlerFactory.ShardRequestAndParams> |
getCoreAdminRequests()
Retrieves all core admin requests distributed to nodes by Collection API commands
|
TrackingShardHandlerFactory.ShardRequestAndParams |
getShardRequestByPurpose(org.apache.solr.common.cloud.ZkStateReader zkStateReader,
String collectionName,
String shardId,
int purpose)
Retrieve request recorded by this queue which were sent to given collection, shard and purpose
|
List<TrackingShardHandlerFactory.ShardRequestAndParams> |
getShardRequests(org.apache.solr.common.cloud.ZkStateReader zkStateReader,
String collectionName,
String shardId)
Retrieve all requests recorded by this queue which were sent to given collection and shard
|
boolean |
offer(TrackingShardHandlerFactory.ShardRequestAndParams shardRequestAndParams) |
add, add, addAll, addAll, addFirst, addLast, clone, contains, descendingIterator, element, get, getFirst, getLast, indexOf, lastIndexOf, listIterator, offerFirst, offerLast, peek, peekFirst, peekLast, poll, pollFirst, pollLast, pop, push, remove, remove, remove, removeFirst, removeFirstOccurrence, removeLast, removeLastOccurrence, set, size, spliterator, toArray, toArray
iterator
equals, hashCode, listIterator, removeRange, subList
containsAll, isEmpty, removeAll, retainAll, toString
finalize, getClass, notify, notifyAll, wait, wait, wait
containsAll, equals, hashCode, isEmpty, iterator, listIterator, removeAll, replaceAll, retainAll, sort, subList
parallelStream, removeIf, stream
public boolean offer(TrackingShardHandlerFactory.ShardRequestAndParams shardRequestAndParams)
offer
in interface Deque<TrackingShardHandlerFactory.ShardRequestAndParams>
offer
in interface Queue<TrackingShardHandlerFactory.ShardRequestAndParams>
offer
in class LinkedList<TrackingShardHandlerFactory.ShardRequestAndParams>
public void clear()
clear
in interface Collection<TrackingShardHandlerFactory.ShardRequestAndParams>
clear
in interface List<TrackingShardHandlerFactory.ShardRequestAndParams>
clear
in class LinkedList<TrackingShardHandlerFactory.ShardRequestAndParams>
public TrackingShardHandlerFactory.ShardRequestAndParams getShardRequestByPurpose(org.apache.solr.common.cloud.ZkStateReader zkStateReader, String collectionName, String shardId, int purpose) throws RuntimeException
zkStateReader
- the ZkStateReader
from which cluster state is readcollectionName
- the given collection name for which requests have to be extractedshardId
- the given shard name for which requests have to be extractedpurpose
- the shard purposeTrackingShardHandlerFactory.ShardRequestAndParams
or null if none is foundRuntimeException
- if more than one request is found to the same shard with the same purposepublic List<TrackingShardHandlerFactory.ShardRequestAndParams> getShardRequests(org.apache.solr.common.cloud.ZkStateReader zkStateReader, String collectionName, String shardId)
zkStateReader
- the ZkStateReader
from which cluster state is readcollectionName
- the given collection name for which requests have to be extractedshardId
- the given shard name for which requests have to be extractedTrackingShardHandlerFactory.ShardRequestAndParams
or empty list if none are foundpublic List<TrackingShardHandlerFactory.ShardRequestAndParams> getCoreAdminRequests()
TrackingShardHandlerFactory.ShardRequestAndParams
or empty if none foundpublic Map<String,List<TrackingShardHandlerFactory.ShardRequestAndParams>> getAllRequests()
TrackingShardHandlerFactory.ShardRequestAndParams
ConcurrentHashMap
of url strings to TrackingShardHandlerFactory.ShardRequestAndParams
objects
or empty map if none have been recordedCopyright © 2000-2021 Apache Software Foundation. All Rights Reserved.