public class AutoCreatedQueueTemplate extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
AUTO_QUEUE_LEAF_TEMPLATE_PREFIX |
static String |
AUTO_QUEUE_PARENT_TEMPLATE_PREFIX |
static String |
AUTO_QUEUE_TEMPLATE_PREFIX |
| Constructor and Description |
|---|
AutoCreatedQueueTemplate(CapacitySchedulerConfiguration configuration,
QueuePath queuePath) |
| Modifier and Type | Method and Description |
|---|---|
static String |
getAutoQueueTemplatePrefix(String queue) |
Map<String,String> |
getLeafOnlyProperties()
Get the leaf specific template properties specified for a parent queue.
|
Map<String,String> |
getParentOnlyProperties()
Get the parent specific template properties specified for a parent queue.
|
Map<String,String> |
getTemplateProperties()
Get the common template properties specified for a parent queue.
|
void |
setTemplateEntriesForChild(CapacitySchedulerConfiguration conf,
String childQueuePath)
Sets the common template properties and parent specific template
properties of a child queue based on its parent template settings.
|
void |
setTemplateEntriesForChild(CapacitySchedulerConfiguration conf,
String childQueuePath,
boolean isLeaf)
Sets the common template properties and leaf or parent specific template
properties of a child queue based on its parent template settings.
|
public static final String AUTO_QUEUE_TEMPLATE_PREFIX
public static final String AUTO_QUEUE_LEAF_TEMPLATE_PREFIX
public static final String AUTO_QUEUE_PARENT_TEMPLATE_PREFIX
public AutoCreatedQueueTemplate(CapacitySchedulerConfiguration configuration, QueuePath queuePath)
@VisibleForTesting public static String getAutoQueueTemplatePrefix(String queue)
public Map<String,String> getTemplateProperties()
public Map<String,String> getLeafOnlyProperties()
public Map<String,String> getParentOnlyProperties()
public void setTemplateEntriesForChild(CapacitySchedulerConfiguration conf, String childQueuePath)
conf - configuration to setchildQueuePath - child queue path used for prefixing the propertiespublic void setTemplateEntriesForChild(CapacitySchedulerConfiguration conf, String childQueuePath, boolean isLeaf)
conf - configuration to setisLeaf - whether to include leaf specific template properties, or
parent specific template propertieschildQueuePath - child queue path used for prefixing the propertiesCopyright © 2008–2024 Apache Software Foundation. All rights reserved.