Enum Class RegistryEnvironment

java.lang.Object
java.lang.Enum<RegistryEnvironment>
google.registry.util.RegistryEnvironment
All Implemented Interfaces:
Serializable, Comparable<RegistryEnvironment>, Constable

public enum RegistryEnvironment extends Enum<RegistryEnvironment>
Registry environments.
  • Enum Constant Details

    • PRODUCTION

      public static final RegistryEnvironment PRODUCTION
      Production environment.
    • ALPHA

      public static final RegistryEnvironment ALPHA
      Development environment.
    • CRASH

      public static final RegistryEnvironment CRASH
      Load/Backup/Restore Testing environment.
    • LOCAL

      public static final RegistryEnvironment LOCAL
      Local machine environment.
    • QA

      public static final RegistryEnvironment QA
      Quality Assurance environment.
    • SANDBOX

      public static final RegistryEnvironment SANDBOX
      Sandbox environment.
    • UNITTEST

      public static final RegistryEnvironment UNITTEST
      Unit testing environment.

      This is the default enum value. This is because it's non-trivial to configure the system property that specifies the environment in our unit tests.

      Do not use this environment outside of unit tests.

  • Method Details

    • values

      public static RegistryEnvironment[] 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 RegistryEnvironment 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
    • setup

      public RegistryEnvironment setup()
      Sets this enum as the name of the registry environment.
    • setup

      public RegistryEnvironment setup(SystemPropertySetter systemPropertySetter)
      Sets this enum as the name of the registry environment using specified SystemPropertySetter.
    • get

      public static RegistryEnvironment get()
      Returns environment configured by system property "google.registry.environment".
    • isOnJetty

      public static boolean isOnJetty()