Did this page help you?

   Yes   No   Tell us about it...

com.amazonaws.services.opsworks.model
Class AutoScalingThresholds

java.lang.Object
  extended by com.amazonaws.services.opsworks.model.AutoScalingThresholds
All Implemented Interfaces:
java.io.Serializable

public class AutoScalingThresholds
extends java.lang.Object
implements java.io.Serializable

Describes a load-based auto scaling upscaling or downscaling threshold configuration, which specifies when OpsWorks starts or stops load-based instances.

See Also:
Serialized Form

Constructor Summary
AutoScalingThresholds()
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.lang.Double getCpuThreshold()
          The CPU utilization threshold, as a percent of the available CPU.
 java.lang.Integer getIgnoreMetricsTime()
          The amount of time (in minutes) after a scaling event occurs that OpsWorks should ignore metrics and not raise any additional scaling events.
 java.lang.Integer getInstanceCount()
          The number of instances to add or remove when the load exceeds a threshold.
 java.lang.Double getLoadThreshold()
          The load threshold.
 java.lang.Double getMemoryThreshold()
          The memory utilization threshold, as a percent of the available memory.
 java.lang.Integer getThresholdsWaitTime()
          The amount of time, in minutes, that the load must exceed a threshold before more instances are added or removed.
 int hashCode()
           
 void setCpuThreshold(java.lang.Double cpuThreshold)
          The CPU utilization threshold, as a percent of the available CPU.
 void setIgnoreMetricsTime(java.lang.Integer ignoreMetricsTime)
          The amount of time (in minutes) after a scaling event occurs that OpsWorks should ignore metrics and not raise any additional scaling events.
 void setInstanceCount(java.lang.Integer instanceCount)
          The number of instances to add or remove when the load exceeds a threshold.
 void setLoadThreshold(java.lang.Double loadThreshold)
          The load threshold.
 void setMemoryThreshold(java.lang.Double memoryThreshold)
          The memory utilization threshold, as a percent of the available memory.
 void setThresholdsWaitTime(java.lang.Integer thresholdsWaitTime)
          The amount of time, in minutes, that the load must exceed a threshold before more instances are added or removed.
 java.lang.String toString()
          Returns a string representation of this object; useful for testing and debugging.
 AutoScalingThresholds withCpuThreshold(java.lang.Double cpuThreshold)
          The CPU utilization threshold, as a percent of the available CPU.
 AutoScalingThresholds withIgnoreMetricsTime(java.lang.Integer ignoreMetricsTime)
          The amount of time (in minutes) after a scaling event occurs that OpsWorks should ignore metrics and not raise any additional scaling events.
 AutoScalingThresholds withInstanceCount(java.lang.Integer instanceCount)
          The number of instances to add or remove when the load exceeds a threshold.
 AutoScalingThresholds withLoadThreshold(java.lang.Double loadThreshold)
          The load threshold.
 AutoScalingThresholds withMemoryThreshold(java.lang.Double memoryThreshold)
          The memory utilization threshold, as a percent of the available memory.
 AutoScalingThresholds withThresholdsWaitTime(java.lang.Integer thresholdsWaitTime)
          The amount of time, in minutes, that the load must exceed a threshold before more instances are added or removed.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AutoScalingThresholds

public AutoScalingThresholds()
Method Detail

getInstanceCount

public java.lang.Integer getInstanceCount()
The number of instances to add or remove when the load exceeds a threshold.

Returns:
The number of instances to add or remove when the load exceeds a threshold.

setInstanceCount

public void setInstanceCount(java.lang.Integer instanceCount)
The number of instances to add or remove when the load exceeds a threshold.

Parameters:
instanceCount - The number of instances to add or remove when the load exceeds a threshold.

withInstanceCount

public AutoScalingThresholds withInstanceCount(java.lang.Integer instanceCount)
The number of instances to add or remove when the load exceeds a threshold.

Returns a reference to this object so that method calls can be chained together.

Parameters:
instanceCount - The number of instances to add or remove when the load exceeds a threshold.
Returns:
A reference to this updated object so that method calls can be chained together.

getThresholdsWaitTime

public java.lang.Integer getThresholdsWaitTime()
The amount of time, in minutes, that the load must exceed a threshold before more instances are added or removed.

Constraints:
Range: 1 - 100

Returns:
The amount of time, in minutes, that the load must exceed a threshold before more instances are added or removed.

setThresholdsWaitTime

public void setThresholdsWaitTime(java.lang.Integer thresholdsWaitTime)
The amount of time, in minutes, that the load must exceed a threshold before more instances are added or removed.

Constraints:
Range: 1 - 100

Parameters:
thresholdsWaitTime - The amount of time, in minutes, that the load must exceed a threshold before more instances are added or removed.

withThresholdsWaitTime

public AutoScalingThresholds withThresholdsWaitTime(java.lang.Integer thresholdsWaitTime)
The amount of time, in minutes, that the load must exceed a threshold before more instances are added or removed.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Range: 1 - 100

Parameters:
thresholdsWaitTime - The amount of time, in minutes, that the load must exceed a threshold before more instances are added or removed.
Returns:
A reference to this updated object so that method calls can be chained together.

getIgnoreMetricsTime

public java.lang.Integer getIgnoreMetricsTime()
The amount of time (in minutes) after a scaling event occurs that OpsWorks should ignore metrics and not raise any additional scaling events. For example, OpsWorks adds new instances following an upscaling event but the instances won't start reducing the load until they have been booted and configured. There is no point in raising additional scaling events during that operation, which typically takes several minutes. IgnoreMetricsTime allows you to direct OpsWorks to not raise any scaling events long enough to get the new instances online.

Constraints:
Range: 1 - 100

Returns:
The amount of time (in minutes) after a scaling event occurs that OpsWorks should ignore metrics and not raise any additional scaling events. For example, OpsWorks adds new instances following an upscaling event but the instances won't start reducing the load until they have been booted and configured. There is no point in raising additional scaling events during that operation, which typically takes several minutes. IgnoreMetricsTime allows you to direct OpsWorks to not raise any scaling events long enough to get the new instances online.

setIgnoreMetricsTime

public void setIgnoreMetricsTime(java.lang.Integer ignoreMetricsTime)
The amount of time (in minutes) after a scaling event occurs that OpsWorks should ignore metrics and not raise any additional scaling events. For example, OpsWorks adds new instances following an upscaling event but the instances won't start reducing the load until they have been booted and configured. There is no point in raising additional scaling events during that operation, which typically takes several minutes. IgnoreMetricsTime allows you to direct OpsWorks to not raise any scaling events long enough to get the new instances online.

Constraints:
Range: 1 - 100

Parameters:
ignoreMetricsTime - The amount of time (in minutes) after a scaling event occurs that OpsWorks should ignore metrics and not raise any additional scaling events. For example, OpsWorks adds new instances following an upscaling event but the instances won't start reducing the load until they have been booted and configured. There is no point in raising additional scaling events during that operation, which typically takes several minutes. IgnoreMetricsTime allows you to direct OpsWorks to not raise any scaling events long enough to get the new instances online.

withIgnoreMetricsTime

public AutoScalingThresholds withIgnoreMetricsTime(java.lang.Integer ignoreMetricsTime)
The amount of time (in minutes) after a scaling event occurs that OpsWorks should ignore metrics and not raise any additional scaling events. For example, OpsWorks adds new instances following an upscaling event but the instances won't start reducing the load until they have been booted and configured. There is no point in raising additional scaling events during that operation, which typically takes several minutes. IgnoreMetricsTime allows you to direct OpsWorks to not raise any scaling events long enough to get the new instances online.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Range: 1 - 100

Parameters:
ignoreMetricsTime - The amount of time (in minutes) after a scaling event occurs that OpsWorks should ignore metrics and not raise any additional scaling events. For example, OpsWorks adds new instances following an upscaling event but the instances won't start reducing the load until they have been booted and configured. There is no point in raising additional scaling events during that operation, which typically takes several minutes. IgnoreMetricsTime allows you to direct OpsWorks to not raise any scaling events long enough to get the new instances online.
Returns:
A reference to this updated object so that method calls can be chained together.

getCpuThreshold

public java.lang.Double getCpuThreshold()
The CPU utilization threshold, as a percent of the available CPU.

Returns:
The CPU utilization threshold, as a percent of the available CPU.

setCpuThreshold

public void setCpuThreshold(java.lang.Double cpuThreshold)
The CPU utilization threshold, as a percent of the available CPU.

Parameters:
cpuThreshold - The CPU utilization threshold, as a percent of the available CPU.

withCpuThreshold

public AutoScalingThresholds withCpuThreshold(java.lang.Double cpuThreshold)
The CPU utilization threshold, as a percent of the available CPU.

Returns a reference to this object so that method calls can be chained together.

Parameters:
cpuThreshold - The CPU utilization threshold, as a percent of the available CPU.
Returns:
A reference to this updated object so that method calls can be chained together.

getMemoryThreshold

public java.lang.Double getMemoryThreshold()
The memory utilization threshold, as a percent of the available memory.

Returns:
The memory utilization threshold, as a percent of the available memory.

setMemoryThreshold

public void setMemoryThreshold(java.lang.Double memoryThreshold)
The memory utilization threshold, as a percent of the available memory.

Parameters:
memoryThreshold - The memory utilization threshold, as a percent of the available memory.

withMemoryThreshold

public AutoScalingThresholds withMemoryThreshold(java.lang.Double memoryThreshold)
The memory utilization threshold, as a percent of the available memory.

Returns a reference to this object so that method calls can be chained together.

Parameters:
memoryThreshold - The memory utilization threshold, as a percent of the available memory.
Returns:
A reference to this updated object so that method calls can be chained together.

getLoadThreshold

public java.lang.Double getLoadThreshold()
The load threshold. For more information about how load is computed, see Load (computing).

Returns:
The load threshold. For more information about how load is computed, see Load (computing).

setLoadThreshold

public void setLoadThreshold(java.lang.Double loadThreshold)
The load threshold. For more information about how load is computed, see Load (computing).

Parameters:
loadThreshold - The load threshold. For more information about how load is computed, see Load (computing).

withLoadThreshold

public AutoScalingThresholds withLoadThreshold(java.lang.Double loadThreshold)
The load threshold. For more information about how load is computed, see Load (computing).

Returns a reference to this object so that method calls can be chained together.

Parameters:
loadThreshold - The load threshold. For more information about how load is computed, see Load (computing).
Returns:
A reference to this updated object so that method calls can be chained together.

toString

public java.lang.String toString()
Returns a string representation of this object; useful for testing and debugging.

Overrides:
toString in class java.lang.Object
Returns:
A string representation of this object.
See Also:
Object.toString()

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object


Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.