Class FairsharePolicy
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<FairsharePolicy.Builder,FairsharePolicy>
The fair-share scheduling policy details.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic FairsharePolicy.Builderbuilder()final IntegerA value used to reserve some of the available maximum vCPU for share identifiers that aren't already used.final booleanfinal booleanequalsBySdkFields(Object obj) final <T> Optional<T>getValueForField(String fieldName, Class<T> clazz) final inthashCode()final booleanFor responses, this returns true if the service returned a value for the ShareDistribution property.static Class<? extends FairsharePolicy.Builder>final IntegerThe amount of time (in seconds) to use to calculate a fair-share percentage for each share identifier in use.final List<ShareAttributes>An array ofSharedIdentifierobjects that contain the weights for the share identifiers for the fair-share policy.final StringtoString()Returns a string representation of this object.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
computeReservation
A value used to reserve some of the available maximum vCPU for share identifiers that aren't already used.
The reserved ratio is
(computeReservation/100)^ActiveFairShareswhereActiveFairSharesis the number of active share identifiers.For example, a
computeReservationvalue of 50 indicates that Batch reserves 50% of the maximum available vCPU if there's only one share identifier. It reserves 25% if there are two share identifiers. It reserves 12.5% if there are three share identifiers. AcomputeReservationvalue of 25 indicates that Batch should reserve 25% of the maximum available vCPU if there's only one share identifier, 6.25% if there are two fair share identifiers, and 1.56% if there are three share identifiers.The minimum value is 0 and the maximum value is 99.
- Returns:
- A value used to reserve some of the available maximum vCPU for share identifiers that aren't already
used.
The reserved ratio is
(computeReservation/100)^ActiveFairShareswhereActiveFairSharesis the number of active share identifiers.For example, a
computeReservationvalue of 50 indicates that Batch reserves 50% of the maximum available vCPU if there's only one share identifier. It reserves 25% if there are two share identifiers. It reserves 12.5% if there are three share identifiers. AcomputeReservationvalue of 25 indicates that Batch should reserve 25% of the maximum available vCPU if there's only one share identifier, 6.25% if there are two fair share identifiers, and 1.56% if there are three share identifiers.The minimum value is 0 and the maximum value is 99.
-
toBuilder
- Specified by:
toBuilderin interfaceToCopyableBuilder<FairsharePolicy.Builder,FairsharePolicy>
-
builder
-
serializableBuilderClass
-
hashCode
public final int hashCode() -
equals
-
equalsBySdkFields
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value. -
getValueForField
-
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo