Class InstanceSummary

java.lang.Object
co.yellowdog.platform.model.InstanceSummary
All Implemented Interfaces:
Serializable

public class InstanceSummary extends Object implements Serializable
Provides summary counts for instances provisioned from a compute source.
See Also:
  • Constructor Details

    • InstanceSummary

      public InstanceSummary()
  • Method Details

    • getAliveCount

      public int getAliveCount()
    • isUnused

      public boolean isUnused()
    • isAllTerminated

      public boolean isAllTerminated()
    • getStatusCounts

      public Map<InstanceStatus,Integer> 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

      public Instant getLastUpdatedTime()
    • setStatusCounts

      public void setStatusCounts(Map<InstanceStatus,Integer> statusCounts)
      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

      public void setLastUpdatedTime(Instant lastUpdatedTime)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object