Class SimpleServerUsage


  • public class SimpleServerUsage
    extends Object
    Information the SimpleTenantUsage extension return data about each Server
    • Constructor Detail

      • SimpleServerUsage

        @ConstructorProperties({"name","hours","memory_mb","local_gb","vcpus","tenant_id","flavor","started_at","ended_at","state","uptime"})
        protected SimpleServerUsage​(String instanceName,
                                    double hours,
                                    double flavorMemoryMb,
                                    double flavorLocalGb,
                                    double flavorVcpus,
                                    String tenantId,
                                    String flavorName,
                                    Date instanceCreated,
                                    @Nullable
                                    Date instanceTerminated,
                                    SimpleServerUsage.Status instanceStatus,
                                    long uptime)
    • Method Detail

      • getInstanceName

        public String getInstanceName()
      • getHours

        public double getHours()
      • getFlavorMemoryMb

        public double getFlavorMemoryMb()
      • getFlavorLocalGb

        public double getFlavorLocalGb()
      • getFlavorVcpus

        public double getFlavorVcpus()
      • getTenantId

        public String getTenantId()
      • getFlavorName

        public String getFlavorName()
      • getInstanceCreated

        public Date getInstanceCreated()
      • getInstanceTerminated

        @Nullable
        public Date getInstanceTerminated()
      • getUptime

        public long getUptime()
      • hashCode

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

        protected com.google.common.base.MoreObjects.ToStringHelper string()