public static class MappingRuleConditionalVariables.SecondaryGroupVariable extends Object implements MappingRuleConditionalVariable
Modifier and Type | Field and Description |
---|---|
static String |
VARIABLE_NAME
This is the name of the variable we are replacing.
|
Constructor and Description |
---|
SecondaryGroupVariable(CapacitySchedulerQueueManager qm,
List<String> groups)
Constructor requires a queue manager instance and a list of potential
secondary groups.
|
Modifier and Type | Method and Description |
---|---|
String |
evaluateInPath(String[] parts,
int currentIndex)
Method used to evaluate the variable when used in a path.
|
String |
toString() |
public static final String VARIABLE_NAME
public SecondaryGroupVariable(CapacitySchedulerQueueManager qm, List<String> groups)
qm
- The queue manager which will be used to check which potential
secondary group should be used.groups
- List of potential secondary groups.public String evaluateInPath(String[] parts, int currentIndex)
evaluateInPath
in interface MappingRuleConditionalVariable
parts
- Split representation of the path.currentIndex
- The index of the evaluation in the path. This shows
which part is currently being evaluated.Copyright © 2008–2024 Apache Software Foundation. All rights reserved.