Class Quota
java.lang.Object
com.yahoo.vespa.hosted.controller.api.integration.billing.Quota
Quota information transmitted to the configserver on deploy. All limits are represented
with an Optional type where the empty optional means unlimited resource use.
- Author:
- andreer, ogronnesby
-
Method Summary
Modifier and TypeMethodDescriptionbudget()Maximum $/hour run-rate for the Vespa deploymentbooleaninthashCode()booleanMaximum number of nodes in a cluster in a Vespa deploymentsubtractUsage(double rate) toString()static QuotaConstruct a Quota that allows unlimited resource usagewithBudget(int budget) withBudget(BigDecimal budget) withMaxClusterSize(int clusterSize) static Quotazero()Construct a Quota that allows zero resource usage
-
Method Details
-
withMaxClusterSize
-
zero
Construct a Quota that allows zero resource usage -
unlimited
Construct a Quota that allows unlimited resource usage -
isUnlimited
public boolean isUnlimited() -
withBudget
-
withBudget
-
withoutBudget
-
maxClusterSize
Maximum number of nodes in a cluster in a Vespa deployment -
budget
Maximum $/hour run-rate for the Vespa deployment -
subtractUsage
-
equals
-
hashCode
public int hashCode() -
toString
-