Enum Class SystemProperties

java.lang.Object
java.lang.Enum<SystemProperties>
org.distributeme.core.conventions.SystemProperties
All Implemented Interfaces:
Serializable, Comparable<SystemProperties>, Constable

public enum SystemProperties extends Enum<SystemProperties>
Helper class for accessing and accounting for supported system properties.
Version:
$Id: $Id
Author:
another
  • Enum Constant Details

    • SKIP_CENTRAL_REGISTRY

      public static final SystemProperties SKIP_CENTRAL_REGISTRY
      SkipCentralRegistry registration, default false.
    • LOCAL_RMI_REGISTRY_PORT

      public static final SystemProperties LOCAL_RMI_REGISTRY_PORT
      Set custom rmi registration port.
    • CENTRAL_REGISTRY_HOST

      public static final SystemProperties CENTRAL_REGISTRY_HOST
      Host where the registry is running.
    • CENTRAL_REGISTRY_PORT

      public static final SystemProperties CENTRAL_REGISTRY_PORT
      Port where the registry is running.
    • CENTRAL_REGISTRY_PROTOCOL

      public static final SystemProperties CENTRAL_REGISTRY_PROTOCOL
      Protocol under which the registry is access-able.
    • CENTRAL_REGISTRY_CONTEXT

      public static final SystemProperties CENTRAL_REGISTRY_CONTEXT
      Context under which the registry is access-able.
    • LOCAL_RMI_REGISTRY_MIN_PORT

      public static final SystemProperties LOCAL_RMI_REGISTRY_MIN_PORT
      Minimal port to use for the local rmi registry.
    • LOCAL_RMI_REGISTRY_MAX_PORT

      public static final SystemProperties LOCAL_RMI_REGISTRY_MAX_PORT
      Max port to use for the local rmi registry.
    • SERVICE_BINDING_PORT

      public static final SystemProperties SERVICE_BINDING_PORT
      Port to which the services should be bound.
    • REGISTRATION_HOSTNAME

      public static final SystemProperties REGISTRATION_HOSTNAME
      Hostname or ip which is used to register at the central registry. Useful when running on a multi-home host or in a docker container.
  • Method Details

    • values

      public static SystemProperties[] 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 SystemProperties 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
    • isSet

      public boolean isSet()
      Returns true if the property is set.
      Returns:
      a boolean.
    • get

      public String get()
      Returns the set value.
      Returns:
      a String object.
    • getAsBoolean

      public boolean getAsBoolean()
      Returns the system property value as boolean.
      Returns:
      a boolean.
    • getAsInt

      public int getAsInt()
      Returns the system property value as int.
      Returns:
      a int.