Class AutoscaleProfile
java.lang.Object
com.azure.resourcemanager.hdinsight.containers.models.AutoscaleProfile
- All Implemented Interfaces:
com.azure.json.JsonSerializable<AutoscaleProfile>
public final class AutoscaleProfile
extends Object
implements com.azure.json.JsonSerializable<AutoscaleProfile>
This is the Autoscale profile for the cluster. This will allow customer to create cluster enabled with Autoscale.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the autoscaleType property: User to specify which type of Autoscale to be implemented - Scheduled Based or Load Based.booleanenabled()Get the enabled property: This indicates whether auto scale is enabled on HDInsight on AKS cluster.static AutoscaleProfilefromJson(com.azure.json.JsonReader jsonReader) Reads an instance of AutoscaleProfile from the JsonReader.Get the gracefulDecommissionTimeout property: This property is for graceful decommission timeout; It has a default setting of 3600 seconds before forced shutdown takes place.Get the loadBasedConfig property: Profiles of load based Autoscale.Get the scheduleBasedConfig property: Profiles of schedule based Autoscale.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withAutoscaleType(AutoscaleType autoscaleType) Set the autoscaleType property: User to specify which type of Autoscale to be implemented - Scheduled Based or Load Based.withEnabled(boolean enabled) Set the enabled property: This indicates whether auto scale is enabled on HDInsight on AKS cluster.withGracefulDecommissionTimeout(Integer gracefulDecommissionTimeout) Set the gracefulDecommissionTimeout property: This property is for graceful decommission timeout; It has a default setting of 3600 seconds before forced shutdown takes place.withLoadBasedConfig(LoadBasedConfig loadBasedConfig) Set the loadBasedConfig property: Profiles of load based Autoscale.withScheduleBasedConfig(ScheduleBasedConfig scheduleBasedConfig) Set the scheduleBasedConfig property: Profiles of schedule based Autoscale.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
AutoscaleProfile
public AutoscaleProfile()Creates an instance of AutoscaleProfile class.
-
-
Method Details
-
enabled
public boolean enabled()Get the enabled property: This indicates whether auto scale is enabled on HDInsight on AKS cluster.- Returns:
- the enabled value.
-
withEnabled
Set the enabled property: This indicates whether auto scale is enabled on HDInsight on AKS cluster.- Parameters:
enabled- the enabled value to set.- Returns:
- the AutoscaleProfile object itself.
-
gracefulDecommissionTimeout
Get the gracefulDecommissionTimeout property: This property is for graceful decommission timeout; It has a default setting of 3600 seconds before forced shutdown takes place. This is the maximal time to wait for running containers and applications to complete before transition a DECOMMISSIONING node into DECOMMISSIONED. The default value is 3600 seconds. Negative value (like -1) is handled as infinite timeout.- Returns:
- the gracefulDecommissionTimeout value.
-
withGracefulDecommissionTimeout
Set the gracefulDecommissionTimeout property: This property is for graceful decommission timeout; It has a default setting of 3600 seconds before forced shutdown takes place. This is the maximal time to wait for running containers and applications to complete before transition a DECOMMISSIONING node into DECOMMISSIONED. The default value is 3600 seconds. Negative value (like -1) is handled as infinite timeout.- Parameters:
gracefulDecommissionTimeout- the gracefulDecommissionTimeout value to set.- Returns:
- the AutoscaleProfile object itself.
-
autoscaleType
Get the autoscaleType property: User to specify which type of Autoscale to be implemented - Scheduled Based or Load Based.- Returns:
- the autoscaleType value.
-
withAutoscaleType
Set the autoscaleType property: User to specify which type of Autoscale to be implemented - Scheduled Based or Load Based.- Parameters:
autoscaleType- the autoscaleType value to set.- Returns:
- the AutoscaleProfile object itself.
-
scheduleBasedConfig
Get the scheduleBasedConfig property: Profiles of schedule based Autoscale.- Returns:
- the scheduleBasedConfig value.
-
withScheduleBasedConfig
Set the scheduleBasedConfig property: Profiles of schedule based Autoscale.- Parameters:
scheduleBasedConfig- the scheduleBasedConfig value to set.- Returns:
- the AutoscaleProfile object itself.
-
loadBasedConfig
Get the loadBasedConfig property: Profiles of load based Autoscale.- Returns:
- the loadBasedConfig value.
-
withLoadBasedConfig
Set the loadBasedConfig property: Profiles of load based Autoscale.- Parameters:
loadBasedConfig- the loadBasedConfig value to set.- Returns:
- the AutoscaleProfile object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<AutoscaleProfile>- Throws:
IOException
-
fromJson
Reads an instance of AutoscaleProfile from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of AutoscaleProfile if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IllegalStateException- If the deserialized JSON object was missing any required properties.IOException- If an error occurs while reading the AutoscaleProfile.
-