Package org.apache.solr.core
Class CancellableQueryTracker
- java.lang.Object
-
- org.apache.solr.core.CancellableQueryTracker
-
public class CancellableQueryTracker extends Object
Tracks metadata for active queries and provides methods for access
-
-
Constructor Summary
Constructors Constructor Description CancellableQueryTracker()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addShardLevelActiveQuery(String queryID, CancellableCollector collector)
String
generateQueryID(SolrQueryRequest req)
Generates a UUID for the given query or if the user provided a UUID for this query, uses that.Iterator<Map.Entry<String,String>>
getActiveQueriesGenerated()
CancellableCollector
getCancellableTask(String queryID)
boolean
isQueryIdActive(String queryID)
void
releaseQueryID(String inputQueryID)
void
removeCancellableQuery(String queryID)
-
-
-
Method Detail
-
generateQueryID
public String generateQueryID(SolrQueryRequest req)
Generates a UUID for the given query or if the user provided a UUID for this query, uses that.
-
releaseQueryID
public void releaseQueryID(String inputQueryID)
-
isQueryIdActive
public boolean isQueryIdActive(String queryID)
-
addShardLevelActiveQuery
public void addShardLevelActiveQuery(String queryID, CancellableCollector collector)
-
getCancellableTask
public CancellableCollector getCancellableTask(String queryID)
-
removeCancellableQuery
public void removeCancellableQuery(String queryID)
-
-