Class ResourceBudgetManager
java.lang.Object
org.apache.flink.runtime.clusterframework.types.ResourceBudgetManager
Budget manager for
ResourceProfile.
For a given total resource budget, this class handles reserving and releasing resources from the budget, and rejects reservations if they cannot be satisfied by the remaining budget.
Both the total budget and the reservations are in the form of ResourceProfile.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanrelease(ResourceProfile reservation) booleanreserve(ResourceProfile reservation)
-
Constructor Details
-
ResourceBudgetManager
-
-
Method Details
-
getTotalBudget
-
getAvailableBudget
-
reserve
-
release
-