Enum Class SystemProperties
- All Implemented Interfaces:
Serializable,Comparable<SystemProperties>,Constable
Helper class for accessing and accounting for supported system properties.
- Version:
- $Id: $Id
- Author:
- another
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionContext under which the registry is access-able.Host where the registry is running.Port where the registry is running.Protocol under which the registry is access-able.Max port to use for the local rmi registry.Minimal port to use for the local rmi registry.Set custom rmi registration port.Hostname or ip which is used to register at the central registry.Port to which the services should be bound.SkipCentralRegistry registration, default false. -
Method Summary
Modifier and TypeMethodDescriptionget()Returns the set value.booleanReturns the system property value as boolean.intgetAsInt()Returns the system property value as int.booleanisSet()Returns true if the property is set.static SystemPropertiesReturns the enum constant of this class with the specified name.static SystemProperties[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
SKIP_CENTRAL_REGISTRY
SkipCentralRegistry registration, default false. -
LOCAL_RMI_REGISTRY_PORT
Set custom rmi registration port. -
CENTRAL_REGISTRY_HOST
Host where the registry is running. -
CENTRAL_REGISTRY_PORT
Port where the registry is running. -
CENTRAL_REGISTRY_PROTOCOL
Protocol under which the registry is access-able. -
CENTRAL_REGISTRY_CONTEXT
Context under which the registry is access-able. -
LOCAL_RMI_REGISTRY_MIN_PORT
Minimal port to use for the local rmi registry. -
LOCAL_RMI_REGISTRY_MAX_PORT
Max port to use for the local rmi registry. -
SERVICE_BINDING_PORT
Port to which the services should be bound. -
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
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
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 nameNullPointerException- if the argument is null
-
isSet
public boolean isSet()Returns true if the property is set.- Returns:
- a boolean.
-
get
Returns the set value.- Returns:
- a
Stringobject.
-
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.
-