Interface AutoCreatedQueueManagementPolicy
- All Known Implementing Classes:
GuaranteedOrZeroCapacityOverTimePolicy
public interface AutoCreatedQueueManagementPolicy
-
Method Summary
Modifier and TypeMethodDescriptionvoidcommitQueueManagementChanges(List<QueueManagementChange> queueManagementChanges) Commit/Update state for the specified queue management changes.Compute/Adjust child queue capacities for auto created leaf queues This computes queue entitlements but does not update LeafQueueState or queue capacities.Get initial template for the specified leaf queue.voidinit(AbstractParentQueue parentQueue) Initialize policy.voidreinitialize(AbstractParentQueue parentQueue) Reinitialize policy state ( if required ).
-
Method Details
-
init
Initialize policy.- Parameters:
parentQueue- parent queue- Throws:
IOException- an I/O exception has occurred.
-
reinitialize
Reinitialize policy state ( if required ).- Parameters:
parentQueue- parent queue- Throws:
IOException- an I/O exception has occurred.
-
getInitialLeafQueueConfiguration
AutoCreatedLeafQueueConfig getInitialLeafQueueConfiguration(AbstractAutoCreatedLeafQueue leafQueue) throws SchedulerDynamicEditException Get initial template for the specified leaf queue.- Parameters:
leafQueue- the leaf queue- Returns:
- initial leaf queue template configurations and capacities for auto created queue
- Throws:
SchedulerDynamicEditException- when get initialLeafQueue Configuration fails.
-
computeQueueManagementChanges
Compute/Adjust child queue capacities for auto created leaf queues This computes queue entitlements but does not update LeafQueueState or queue capacities. Scheduler calls commitQueueManagemetChanges after validation after applying queue changes and commits to LeafQueueState are done in commitQueueManagementChanges.- Returns:
- returns a list of suggested QueueEntitlementChange(s) which may or may not be enforced by the scheduler
- Throws:
SchedulerDynamicEditException- when compute QueueManagementChanges fails.
-
commitQueueManagementChanges
void commitQueueManagementChanges(List<QueueManagementChange> queueManagementChanges) throws SchedulerDynamicEditException Commit/Update state for the specified queue management changes.- Parameters:
queueManagementChanges- QueueManagementChange List.- Throws:
SchedulerDynamicEditException- when commit QueueManagementChanges fails.
-