public enum ActConfigKey extends java.lang.Enum<ActConfigKey> implements ConfigKey
Act
configuration keys. General rules:
.enabled
, then you should be able to set the setting without .enabled
or replace it with .disabled
but the value will be inverted. For example, built_in.transformer.enabled
is equal to built_in.transformer
and invert to built_in.transformer.disabled
.impl
, then you can either put an instance into the configuration map or a string of the class classNameEnum Constant and Description |
---|
APP_BASE
act.app.base specifies the application base in relation to the
home dir . |
HOME
act.home.dir specifies the Act home dir |
MODE
act.mode specifies the Act running mode. |
NETWORK_SERVER_IMPL
act.xio.impl specifies the implementation for the network stack implementation |
XIO_MAX_WORKER_THREADS
`act.xio.worker_threads.max`
specifies the maximum number of worker threads shall be created.
|
XIO_STATISTICS
`act.xio.statistics.enabled`
Enable/disable XIO statistics (for undertow only)
Default value: `false`
|
KEY_COMMON_CONF_TAG
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
defVal() |
protected java.lang.Object |
getDefVal(java.util.Map<java.lang.String,?> configuration)
Return default value of this setting.
|
<T> java.util.List<T> |
implList(java.lang.String key,
java.util.Map<java.lang.String,?> configuration,
java.lang.Class<T> c) |
java.lang.String |
key()
Return the key string
|
java.lang.String |
toString()
Calling to this method is equals to calling
key() |
<T> T |
val(java.util.Map<java.lang.String,?> configuration)
|
static ActConfigKey |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ActConfigKey |
valueOfIgnoreCase(java.lang.String s)
Return key enum instance from the string in case insensitive mode
|
static ActConfigKey[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ActConfigKey HOME
act.home.dir
specifies the Act home dir
This property must be set to start Act. There is no default value for this configuration
public static final ActConfigKey APP_BASE
public static final ActConfigKey MODE
act.mode
specifies the Act running mode. Options:
dev
- run Act during development, loading and refreshing class
directly from srccode code enabled in this modeprod
- run Act when system is liveYou pass the mode to Act runtime during start up like:
act --mode dev
Or via JVM properties like:
-Dmode=uat
public static final ActConfigKey XIO_MAX_WORKER_THREADS
public static final ActConfigKey XIO_STATISTICS
public static final ActConfigKey NETWORK_SERVER_IMPL
act.xio.impl
specifies the implementation for the network stack implementationpublic static ActConfigKey[] values()
for (ActConfigKey c : ActConfigKey.values()) System.out.println(c);
public static ActConfigKey valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic java.lang.String key()
Return the key string
protected java.lang.Object getDefVal(java.util.Map<java.lang.String,?> configuration)
Return default value of this setting. The configuration data map is passed in in case the default value be variable depending on another setting.
configuration
- public java.lang.String toString()
Calling to this method is equals to calling key()
toString
in class java.lang.Enum<ActConfigKey>
public <T> java.util.List<T> implList(java.lang.String key, java.util.Map<java.lang.String,?> configuration, java.lang.Class<T> c)
public <T> T val(java.util.Map<java.lang.String,?> configuration)
public static ActConfigKey valueOfIgnoreCase(java.lang.String s)
Return key enum instance from the string in case insensitive mode
s
- Copyright © 2014–2017 ActFramework. All rights reserved.