Package org.terracotta.angela.common
Enum AngelaProperties
- java.lang.Object
-
- java.lang.Enum<AngelaProperties>
-
- org.terracotta.angela.common.AngelaProperties
-
- All Implemented Interfaces:
Serializable,Comparable<AngelaProperties>
public enum AngelaProperties extends Enum<AngelaProperties>
Listing of all system properties supported in angela
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ADDED_LOCAL_HOSTNAMESAGENT_DEBUGDISTRIBUTIONIGNITE_LOGGINGJAVA_HOMEJAVA_OPTSJAVA_RESOLVERangela.java.resolverdetermines how Angela computes the JAVA_HOME env variable that it will set for all its sub-processes.JAVA_VENDORJAVA_VERSIONKIT_COPYKIT_INSTALLATION_DIRKIT_INSTALLATION_PATHKITS_DIROFFLINEREMOTE_ROOT_DIRROOT_DIRSKIP_UNINSTALLSSH_PORTSSH_STRICT_HOST_CHECKINGSSH_USERNAMESSH_USERNAME_KEY_PATHTMS_FULL_LOGGINGTSA_FULL_LOGGINGVOTER_FULL_LOGGING
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclearProperty()booleangetBooleanValue()StringgetDefaultValue()static StringgetEitherOf(AngelaProperties recommended, AngelaProperties deprecated)Returns the value of either the recommended or the deprecated property if the former wasn't specified.StringgetPropertyName()StringgetSpecifiedValue()StringgetValue()voidsetProperty(String value)static AngelaPropertiesvalueOf(String name)Returns the enum constant of this type with the specified name.static AngelaProperties[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ROOT_DIR
public static final AngelaProperties ROOT_DIR
-
REMOTE_ROOT_DIR
public static final AngelaProperties REMOTE_ROOT_DIR
-
KITS_DIR
public static final AngelaProperties KITS_DIR
-
KIT_INSTALLATION_DIR
public static final AngelaProperties KIT_INSTALLATION_DIR
-
KIT_INSTALLATION_PATH
public static final AngelaProperties KIT_INSTALLATION_PATH
-
OFFLINE
public static final AngelaProperties OFFLINE
-
DISTRIBUTION
public static final AngelaProperties DISTRIBUTION
-
IGNITE_LOGGING
public static final AngelaProperties IGNITE_LOGGING
-
ADDED_LOCAL_HOSTNAMES
public static final AngelaProperties ADDED_LOCAL_HOSTNAMES
-
SKIP_UNINSTALL
public static final AngelaProperties SKIP_UNINSTALL
-
KIT_COPY
public static final AngelaProperties KIT_COPY
-
SSH_USERNAME
public static final AngelaProperties SSH_USERNAME
-
SSH_USERNAME_KEY_PATH
public static final AngelaProperties SSH_USERNAME_KEY_PATH
-
SSH_STRICT_HOST_CHECKING
public static final AngelaProperties SSH_STRICT_HOST_CHECKING
-
SSH_PORT
public static final AngelaProperties SSH_PORT
-
TMS_FULL_LOGGING
public static final AngelaProperties TMS_FULL_LOGGING
-
TSA_FULL_LOGGING
public static final AngelaProperties TSA_FULL_LOGGING
-
VOTER_FULL_LOGGING
public static final AngelaProperties VOTER_FULL_LOGGING
-
AGENT_DEBUG
public static final AngelaProperties AGENT_DEBUG
-
JAVA_RESOLVER
public static final AngelaProperties JAVA_RESOLVER
angela.java.resolverdetermines how Angela computes the JAVA_HOME env variable that it will set for all its sub-processes. The default value istoolchain.toolchain: Angela will compute the JAVA_HOME by discovering paths in the Maven toolchain file, entries being filtered byangela.java.vendorandangela.java.version.user: Angela will compute the JAVA_HOME by picking the value ofangela.java.homewhich can be set by the user. If the user does not specifyangela.java.home, then thejava.homesystem property is used, which should be the JVM running the current code.angela.java.vendorandangela.java.versionwill not be used in this mode.
-
JAVA_HOME
public static final AngelaProperties JAVA_HOME
-
JAVA_VENDOR
public static final AngelaProperties JAVA_VENDOR
-
JAVA_VERSION
public static final AngelaProperties JAVA_VERSION
-
JAVA_OPTS
public static final AngelaProperties JAVA_OPTS
-
-
Method Detail
-
values
public static AngelaProperties[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (AngelaProperties c : AngelaProperties.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AngelaProperties valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException- if the argument is null
-
getDefaultValue
public String getDefaultValue()
-
getSpecifiedValue
public String getSpecifiedValue()
-
getValue
public String getValue()
-
getPropertyName
public String getPropertyName()
-
setProperty
public void setProperty(String value)
-
clearProperty
public void clearProperty()
-
getEitherOf
public static String getEitherOf(AngelaProperties recommended, AngelaProperties deprecated)
Returns the value of either the recommended or the deprecated property if the former wasn't specified. Falls back to the default value of the new property if neither was specified.- Parameters:
recommended- the recommended propertydeprecated- the deprecated property- Returns:
- the value of either the recommended, or the deprecated property. null if neither was specified and the default value of the new property is null.
-
getBooleanValue
public boolean getBooleanValue()
-
-