See: Description
| Interface | Description |
|---|---|
| ResourcePoolSelector |
Interface that defines implementation for selectors assigned to a ResourcePool.
|
| Class | Description |
|---|---|
| AbstractResourcePoolSelector | |
| AclSelector |
Evaluates if a query can be admitted to a ResourcePool or not by comparing query user/groups with the
configured users/groups policies for this selector.
|
| AndSelector |
Complex selector whose value is list of other Simple or Complex Selectors.
|
| ComplexSelectors | |
| DefaultSelector |
When selector configuration is absent for a ResourcePool then it is associated with a DefaultSelector.
|
| NotEqualSelector |
Simple selector whose value is another Simple or Complex Selectors.
|
| OrSelector |
Complex selector whose value is list of other Simple or Complex Selectors.
|
| ResourcePoolSelectorFactory | |
| TagSelector |
Simple selector whose value is a string representing a tag.
|
| TestAclSelector | |
| TestComplexSelectors | |
| TestNotEqualSelector | |
| TestResourcePoolSelectors | |
| TestTagSelector |
| Enum | Description |
|---|---|
| ResourcePoolSelector.SelectorType |
ResourcePoolImpl.POOL_SELECTOR_KEY configuration. If the
selector configuration is missing for a ResourcePool then it is associated with a Default Selector making it
a Default ResourcePool. Selectors are configured as a key value pair where key represents it's type and
value is what it uses to evaluate a query. Currently there are 6 different types of supported selectors. In future
more selectos can be supported by implementing
ResourcePoolSelector interface.
DefaultSelector: It acts as a sink and will always return
true for all the queries. It is associated with a ResourcePool which is not assigned any selector in the
configuration making it a default pool.
TagSelector: A selector which has a tag (String) value
associated with it. It evaluates all the tags associated with a query to see if there is a match or not. A query is
only selected by this selector if it has a tag same as that configured for this selector.
AclSelector: A selector which has users/groups policies
value associated with it. It evaluates these policies against the users/groups of query session to check if the
query can be selected or not. It supports long/short form syntax to configure the acl policies. It also supports *
as wildcard character to allow/deny all users/groups in its policies. Please see AclSelector class javadoc for more
details.
OrSelector: A selector which can have lists of 2 or more
other selectors configured as it's value except for Default selector. It performs || operation on the selection
result of all other configured selectors.AndSelector: A selector which can have lists of 2 or more
other selectors configured as it's value except for Default selector. It performs && operation on the selection
result of all other configured selectors.NotEqualSelector: A selector which can have any other
selector defined above configured as it's value except for Default selector. It will compare the query metadata
against the configured selector and will return ! of that as a selection result. For example: if a TagSelector
with value "sales" is configured for this NotSelector then it will select queries whose doesn't have sales tag
associated with it.Copyright © 2021 The Apache Software Foundation. All rights reserved.