public class QueueAssignmentResult extends Object
ResourcePool for the provided query.
It is used by ResourcePoolImpl.visitAndSelectPool(QueueAssignmentResult, QueryContext) to store
information about all the matching and non-matching ResourcePools for a query when ResourcePool selector is
evaluated against query metadata. Later it is used by
ResourcePool.visitAndSelectPool(QueueAssignmentResult, QueryContext) to apply
QueueSelectionPolicy to select only one queue out of all
the selected queues for a query. It also provides an API to dump all the debug information to know which pools were
selected and rejected for a query.| Constructor and Description |
|---|
QueueAssignmentResult() |
| Modifier and Type | Method and Description |
|---|---|
void |
addRejectedPool(ResourcePool pool) |
void |
addSelectedPool(ResourcePool pool) |
List<ResourcePool> |
getRejectedPools() |
List<ResourcePool> |
getSelectedLeafPools() |
void |
logAssignmentResult(String queryId) |
String |
toString() |
public void addSelectedPool(ResourcePool pool)
public void addRejectedPool(ResourcePool pool)
public List<ResourcePool> getSelectedLeafPools()
public List<ResourcePool> getRejectedPools()
public void logAssignmentResult(String queryId)
Copyright © 2021 The Apache Software Foundation. All rights reserved.