Enum Class LicenseStatus

java.lang.Object
java.lang.Enum<LicenseStatus>
io.keikai.axyra.sheets.LicenseStatus
All Implemented Interfaces:
Serializable, Comparable<LicenseStatus>, Constable

public enum LicenseStatus extends Enum<LicenseStatus>
The runtime licensing status of the engine (process-global).

Mirrors the Rust LicenseState discriminant. LICENSED and GRACE both mean a valid license is in force; UNLICENSED and EVALUATION mean output is degraded when enforcement is switched on.

  • Enum Constant Details

    • UNLICENSED

      public static final LicenseStatus UNLICENSED
      No license has been installed.
    • EVALUATION

      public static final LicenseStatus EVALUATION
      A license is installed but not currently in force (invalid, not-yet-valid, or expired past grace).
    • LICENSED

      public static final LicenseStatus LICENSED
      A valid, in-force license.
    • GRACE

      public static final LicenseStatus GRACE
      Expired but within the grace period; still licensed, with a countdown.
  • Method Details

    • values

      public static LicenseStatus[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static LicenseStatus valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • fromLabel

      public static LicenseStatus fromLabel(String label)
      Map a status label from the native status JSON, defaulting to UNLICENSED.