public class PoolSizeSummary extends Object
CloudPool.getPoolSize() operation that
returns information about the pool size -- both desired and actual size.| Constructor and Description |
|---|
PoolSizeSummary(org.joda.time.DateTime timestamp,
int desiredSize,
int allocated,
int active) |
PoolSizeSummary(int desiredSize,
int allocated,
int active) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
int |
getActive()
The number of active machines in the pool
Machine.isActiveMember(). |
int |
getAllocated()
Returns the number of allocated machines in the pool (see
Machine.isAllocated(). |
int |
getDesiredSize()
Returns the desired size of the machine pool.
|
org.joda.time.DateTime |
getTimestamp()
Returns the time at which the pool size observation was made.
|
int |
hashCode() |
String |
toString() |
public PoolSizeSummary(int desiredSize,
int allocated,
int active)
desiredSize - The desired size of the machine pool.allocated - The number of allocated machines in the pool (see
Machine.isAllocated().active - The number of active machines in the pool
Machine.isActiveMember(). That is, the number of
allocated machines that have also been marked with an active
membership status.public PoolSizeSummary(org.joda.time.DateTime timestamp,
int desiredSize,
int allocated,
int active)
public org.joda.time.DateTime getTimestamp()
public int getDesiredSize()
public int getAllocated()
Machine.isAllocated().public int getActive()
Machine.isActiveMember(). That is, the number of allocated
machines that have also been marked with an active membership status.Copyright © 2011–2017 Elastisys. All rights reserved.