target.apidocs.com.google.api.services.dataproc.model.ProvisioningModelMix.html Maven / Gradle / Ivy
The newest version!
ProvisioningModelMix (Cloud Dataproc API v1-rev20241025-2.0.0)
com.google.api.services.dataproc.model
Class ProvisioningModelMix
- java.lang.Object
-
- java.util.AbstractMap<String,Object>
-
- com.google.api.client.util.GenericData
-
- com.google.api.client.json.GenericJson
-
- com.google.api.services.dataproc.model.ProvisioningModelMix
-
public final class ProvisioningModelMix
extends com.google.api.client.json.GenericJson
Defines how Dataproc should create VMs with a mixture of provisioning models.
This is the Java data model class that specifies how to parse/serialize into the JSON that is
transmitted over HTTP when working with the Cloud Dataproc API. For a detailed explanation see:
https://developers.google.com/api-client-library/java/google-http-java-client/json
- Author:
- Google, Inc.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.google.api.client.util.GenericData
com.google.api.client.util.GenericData.Flags
-
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
-
Constructor Summary
Constructors
Constructor and Description
ProvisioningModelMix()
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
ProvisioningModelMix
clone()
Integer
getStandardCapacityBase()
Optional.
Integer
getStandardCapacityPercentAboveBase()
Optional.
ProvisioningModelMix
set(String fieldName,
Object value)
ProvisioningModelMix
setStandardCapacityBase(Integer standardCapacityBase)
Optional.
ProvisioningModelMix
setStandardCapacityPercentAboveBase(Integer standardCapacityPercentAboveBase)
Optional.
-
Methods inherited from class com.google.api.client.json.GenericJson
getFactory, setFactory, toPrettyString, toString
-
Methods inherited from class com.google.api.client.util.GenericData
entrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeys
-
Methods inherited from class java.util.AbstractMap
clear, containsKey, containsValue, isEmpty, keySet, size, values
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
-
-
Method Detail
-
getStandardCapacityBase
public Integer getStandardCapacityBase()
Optional. The base capacity that will always use Standard VMs to avoid risk of more preemption
than the minimum capacity you need. Dataproc will create only standard VMs until it reaches
standard_capacity_base, then it will start using standard_capacity_percent_above_base to mix
Spot with Standard VMs. eg. If 15 instances are requested and standard_capacity_base is 5,
Dataproc will create 5 standard VMs and then start mixing spot and standard VMs for remaining
10 instances.
- Returns:
- value or
null
for none
-
setStandardCapacityBase
public ProvisioningModelMix setStandardCapacityBase(Integer standardCapacityBase)
Optional. The base capacity that will always use Standard VMs to avoid risk of more preemption
than the minimum capacity you need. Dataproc will create only standard VMs until it reaches
standard_capacity_base, then it will start using standard_capacity_percent_above_base to mix
Spot with Standard VMs. eg. If 15 instances are requested and standard_capacity_base is 5,
Dataproc will create 5 standard VMs and then start mixing spot and standard VMs for remaining
10 instances.
- Parameters:
standardCapacityBase
- standardCapacityBase or null
for none
-
getStandardCapacityPercentAboveBase
public Integer getStandardCapacityPercentAboveBase()
Optional. The percentage of target capacity that should use Standard VM. The remaining
percentage will use Spot VMs. The percentage applies only to the capacity above
standard_capacity_base. eg. If 15 instances are requested and standard_capacity_base is 5 and
standard_capacity_percent_above_base is 30, Dataproc will create 5 standard VMs and then start
mixing spot and standard VMs for remaining 10 instances. The mix will be 30% standard and 70%
spot.
- Returns:
- value or
null
for none
-
setStandardCapacityPercentAboveBase
public ProvisioningModelMix setStandardCapacityPercentAboveBase(Integer standardCapacityPercentAboveBase)
Optional. The percentage of target capacity that should use Standard VM. The remaining
percentage will use Spot VMs. The percentage applies only to the capacity above
standard_capacity_base. eg. If 15 instances are requested and standard_capacity_base is 5 and
standard_capacity_percent_above_base is 30, Dataproc will create 5 standard VMs and then start
mixing spot and standard VMs for remaining 10 instances. The mix will be 30% standard and 70%
spot.
- Parameters:
standardCapacityPercentAboveBase
- standardCapacityPercentAboveBase or null
for none
-
set
public ProvisioningModelMix set(String fieldName,
Object value)
- Overrides:
set
in class com.google.api.client.json.GenericJson
-
clone
public ProvisioningModelMix clone()
- Overrides:
clone
in class com.google.api.client.json.GenericJson
Copyright © 2011–2024 Google. All rights reserved.
© 2015 - 2025 Weber Informatics LLC | Privacy Policy