public enum SystemProperties extends Enum<SystemProperties>
Enum Constant and Description |
---|
CENTRAL_REGISTRY_HOST
Host where the registry is running.
|
CENTRAL_REGISTRY_PORT
Port where the registry is running.
|
LOCAL_RMI_REGISTRY_MAX_PORT
Max port to use for the local rmi registry.
|
LOCAL_RMI_REGISTRY_MIN_PORT
Minimal port to use for the local rmi registry.
|
LOCAL_RMI_REGISTRY_PORT
Set custom rmi registration port.
|
SKIP_CENTRAL_REGISTRY
SkipCentralRegistry registration, default false.
|
Modifier and Type | Method and Description |
---|---|
String |
get()
Returns the set value.
|
boolean |
getAsBoolean()
Returns the system property value as boolean.
|
int |
getAsInt()
Returns the system property value as int.
|
boolean |
isSet()
Returns true if the property is set.
|
static SystemProperties |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SystemProperties[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SystemProperties SKIP_CENTRAL_REGISTRY
public static final SystemProperties LOCAL_RMI_REGISTRY_PORT
public static final SystemProperties CENTRAL_REGISTRY_HOST
public static final SystemProperties CENTRAL_REGISTRY_PORT
public static final SystemProperties LOCAL_RMI_REGISTRY_MIN_PORT
public static final SystemProperties LOCAL_RMI_REGISTRY_MAX_PORT
public static SystemProperties[] values()
for (SystemProperties c : SystemProperties.values()) System.out.println(c);
public static SystemProperties valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant
with the specified nameNullPointerException
- if the argument is nullpublic boolean isSet()
public String get()
public boolean getAsBoolean()
public int getAsInt()
Copyright © 2010-2014 anotheria.net. All Rights Reserved.