Class EC2InstanceCounts
- All Implemented Interfaces:
Serializable
,Cloneable
Current status of fleet capacity. The number of active instances should match or be in the process of matching the number of desired instances. Pending and terminating counts are non-zero only if fleet capacity is adjusting to an UpdateFleetCapacity request, or if access to resources is temporarily affected.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
boolean
Actual number of active instances in the fleet.Ideal number of active instances in the fleet.getIDLE()
Number of active instances in the fleet that are not currently hosting a game session.Maximum value allowed for the fleet's instance count.Minimum value allowed for the fleet's instance count.Number of instances in the fleet that are starting but not yet active.Number of instances in the fleet that are no longer active but haven't yet been terminated.int
hashCode()
void
Actual number of active instances in the fleet.void
setDESIRED
(Integer dESIRED) Ideal number of active instances in the fleet.void
Number of active instances in the fleet that are not currently hosting a game session.void
setMAXIMUM
(Integer mAXIMUM) Maximum value allowed for the fleet's instance count.void
setMINIMUM
(Integer mINIMUM) Minimum value allowed for the fleet's instance count.void
setPENDING
(Integer pENDING) Number of instances in the fleet that are starting but not yet active.void
setTERMINATING
(Integer tERMINATING) Number of instances in the fleet that are no longer active but haven't yet been terminated.toString()
Returns a string representation of this object; useful for testing and debugging.withACTIVE
(Integer aCTIVE) Actual number of active instances in the fleet.withDESIRED
(Integer dESIRED) Ideal number of active instances in the fleet.Number of active instances in the fleet that are not currently hosting a game session.withMAXIMUM
(Integer mAXIMUM) Maximum value allowed for the fleet's instance count.withMINIMUM
(Integer mINIMUM) Minimum value allowed for the fleet's instance count.withPENDING
(Integer pENDING) Number of instances in the fleet that are starting but not yet active.withTERMINATING
(Integer tERMINATING) Number of instances in the fleet that are no longer active but haven't yet been terminated.
-
Constructor Details
-
EC2InstanceCounts
public EC2InstanceCounts()
-
-
Method Details
-
setDESIRED
Ideal number of active instances in the fleet.
- Parameters:
dESIRED
- Ideal number of active instances in the fleet.
-
getDESIRED
Ideal number of active instances in the fleet.
- Returns:
- Ideal number of active instances in the fleet.
-
withDESIRED
Ideal number of active instances in the fleet.
- Parameters:
dESIRED
- Ideal number of active instances in the fleet.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setMINIMUM
Minimum value allowed for the fleet's instance count.
- Parameters:
mINIMUM
- Minimum value allowed for the fleet's instance count.
-
getMINIMUM
Minimum value allowed for the fleet's instance count.
- Returns:
- Minimum value allowed for the fleet's instance count.
-
withMINIMUM
Minimum value allowed for the fleet's instance count.
- Parameters:
mINIMUM
- Minimum value allowed for the fleet's instance count.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setMAXIMUM
Maximum value allowed for the fleet's instance count.
- Parameters:
mAXIMUM
- Maximum value allowed for the fleet's instance count.
-
getMAXIMUM
Maximum value allowed for the fleet's instance count.
- Returns:
- Maximum value allowed for the fleet's instance count.
-
withMAXIMUM
Maximum value allowed for the fleet's instance count.
- Parameters:
mAXIMUM
- Maximum value allowed for the fleet's instance count.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setPENDING
Number of instances in the fleet that are starting but not yet active.
- Parameters:
pENDING
- Number of instances in the fleet that are starting but not yet active.
-
getPENDING
Number of instances in the fleet that are starting but not yet active.
- Returns:
- Number of instances in the fleet that are starting but not yet active.
-
withPENDING
Number of instances in the fleet that are starting but not yet active.
- Parameters:
pENDING
- Number of instances in the fleet that are starting but not yet active.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setACTIVE
Actual number of active instances in the fleet.
- Parameters:
aCTIVE
- Actual number of active instances in the fleet.
-
getACTIVE
Actual number of active instances in the fleet.
- Returns:
- Actual number of active instances in the fleet.
-
withACTIVE
Actual number of active instances in the fleet.
- Parameters:
aCTIVE
- Actual number of active instances in the fleet.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setIDLE
Number of active instances in the fleet that are not currently hosting a game session.
- Parameters:
iDLE
- Number of active instances in the fleet that are not currently hosting a game session.
-
getIDLE
Number of active instances in the fleet that are not currently hosting a game session.
- Returns:
- Number of active instances in the fleet that are not currently hosting a game session.
-
withIDLE
Number of active instances in the fleet that are not currently hosting a game session.
- Parameters:
iDLE
- Number of active instances in the fleet that are not currently hosting a game session.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setTERMINATING
Number of instances in the fleet that are no longer active but haven't yet been terminated.
- Parameters:
tERMINATING
- Number of instances in the fleet that are no longer active but haven't yet been terminated.
-
getTERMINATING
Number of instances in the fleet that are no longer active but haven't yet been terminated.
- Returns:
- Number of instances in the fleet that are no longer active but haven't yet been terminated.
-
withTERMINATING
Number of instances in the fleet that are no longer active but haven't yet been terminated.
- Parameters:
tERMINATING
- Number of instances in the fleet that are no longer active but haven't yet been terminated.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
clone
-