Class RegionTier


  • public final class RegionTier
    extends java.lang.Object
    • Method Detail

      • getTierNameId

        public java.lang.String getTierNameId()
        Returns:
        A human readable short identifier used to references resources. Different than a rivet.common#Uuid because this is intended to be human readable. Different than rivet.common#DisplayName because this should not include special characters and be short.
      • getRivetCoresNumerator

        public int getRivetCoresNumerator()
        Returns:
        Together with the denominator, denotes the portion of the CPU a given server uses.
      • getRivetCoresDenominator

        public int getRivetCoresDenominator()
        Returns:
        Together with the numerator, denotes the portion of the CPU a given server uses.
      • getCpu

        public int getCpu()
        Returns:
        CPU frequency (MHz).
      • getMemory

        public int getMemory()
        Returns:
        Allocated memory (MB).
      • getDisk

        public int getDisk()
        Returns:
        Allocated disk space (MB).
      • getBandwidth

        public int getBandwidth()
        Returns:
        Internet bandwidth (MB).
      • getPricePerSecond

        public int getPricePerSecond()
        Returns:
        Price billed for every second this server is running (in quadrillionth USD, 1,000,000,000,000 = $1.00).
      • equals

        public boolean equals​(java.lang.Object other)
        Overrides:
        equals in class java.lang.Object
      • hashCode

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

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object