Class GroupState
- java.lang.Object
-
- org.jclouds.rackspace.autoscale.v1.domain.GroupState
-
- All Implemented Interfaces:
Comparable<GroupState>
public class GroupState extends Object implements Comparable<GroupState>
Autoscale Group State. Contains information about a scaling group.- See Also:
Group,GroupApi.listGroupStates(),GroupApi.getState(String)
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedGroupState(String id, List<Link> links, int activeCapacity, int pendingCapacity, int desiredCapacity, boolean paused, List<GroupInstance> groupInstances)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(GroupState that)booleanequals(Object obj)intgetActiveCapacity()intgetDesiredCapacity()List<GroupInstance>getGroupInstances()StringgetId()List<Link>getLinks()booleangetPaused()intgetPendingCapacity()inthashCode()protected com.google.common.base.MoreObjects.ToStringHelperstring()StringtoString()
-
-
-
Constructor Detail
-
GroupState
@ConstructorProperties({"id","links","activeCapacity","pendingCapacity","desiredCapacity","paused","active"}) protected GroupState(String id, List<Link> links, int activeCapacity, int pendingCapacity, int desiredCapacity, boolean paused, List<GroupInstance> groupInstances)
-
-
Method Detail
-
getId
public String getId()
- Returns:
- the id of this GroupState.
-
getActiveCapacity
public int getActiveCapacity()
- Returns:
- the active capacity for this GroupState.
-
getPendingCapacity
public int getPendingCapacity()
- Returns:
- the pending capacity for this GroupState.
-
getDesiredCapacity
public int getDesiredCapacity()
- Returns:
- the desired capacity for this GroupState.
-
getPaused
public boolean getPaused()
- Returns:
- the paused status for this GroupState.
-
getGroupInstances
public List<GroupInstance> getGroupInstances()
- Returns:
- the group instances for this GroupState.
- See Also:
GroupInstance
-
string
protected com.google.common.base.MoreObjects.ToStringHelper string()
-
compareTo
public int compareTo(GroupState that)
- Specified by:
compareToin interfaceComparable<GroupState>
-
-