Class InstanceSummary
java.lang.Object
co.yellowdog.platform.model.InstanceSummary
- All Implemented Interfaces:
Serializable
Provides summary counts for instances provisioned from a compute source.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
int
int
The number of alive instances expected from this compute source, based on existing instances and the most recent provision action.int
The count of TERMINATED instances that have expired and can no longer be retrieved from the platform.int
The number of instances last requested from this compute source.A count of each status based on the non-expired instances that have been provisioned.int
The total count of all instances provisioned from this compute source (including expired instances).int
hashCode()
boolean
boolean
isUnused()
void
setExpectedCount
(int expectedCount) The number of alive instances expected from this compute source, based on existing instances and the most recent provision action.void
setExpiredCount
(int expiredCount) The count of TERMINATED instances that have expired and can no longer be retrieved from the platform.void
setLastUpdatedTime
(Instant lastUpdatedTime) void
setRequestedCount
(int requestedCount) The number of instances last requested from this compute source.void
setStatusCounts
(Map<InstanceStatus, Integer> statusCounts) A count of each status based on the non-expired instances that have been provisioned.void
setTotalCount
(int totalCount) The total count of all instances provisioned from this compute source (including expired instances).toString()
-
Constructor Details
-
InstanceSummary
public InstanceSummary()
-
-
Method Details
-
getAliveCount
public int getAliveCount() -
isUnused
public boolean isUnused() -
isAllTerminated
public boolean isAllTerminated() -
getStatusCounts
A count of each status based on the non-expired instances that have been provisioned. -
getRequestedCount
public int getRequestedCount()The number of instances last requested from this compute source. -
getExpectedCount
public int getExpectedCount()The number of alive instances expected from this compute source, based on existing instances and the most recent provision action. -
getExpiredCount
public int getExpiredCount()The count of TERMINATED instances that have expired and can no longer be retrieved from the platform. -
getTotalCount
public int getTotalCount()The total count of all instances provisioned from this compute source (including expired instances). -
getLastUpdatedTime
-
setStatusCounts
A count of each status based on the non-expired instances that have been provisioned. -
setRequestedCount
public void setRequestedCount(int requestedCount) The number of instances last requested from this compute source. -
setExpectedCount
public void setExpectedCount(int expectedCount) The number of alive instances expected from this compute source, based on existing instances and the most recent provision action. -
setExpiredCount
public void setExpiredCount(int expiredCount) The count of TERMINATED instances that have expired and can no longer be retrieved from the platform. -
setTotalCount
public void setTotalCount(int totalCount) The total count of all instances provisioned from this compute source (including expired instances). -
setLastUpdatedTime
-
equals
-
canEqual
-
hashCode
-
toString
-