Package berlin.yuna.natsserver.config
Enum NatsConfig
- java.lang.Object
-
- java.lang.Enum<NatsConfig>
-
- berlin.yuna.natsserver.config.NatsConfig
-
- All Implemented Interfaces:
Serializable
,Comparable<NatsConfig>
public enum NatsConfig extends Enum<NatsConfig>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
NatsConfig.SilentBoolean
-
Enum Constant Summary
-
Field Summary
Fields Modifier and Type Field Description static Level[]
ALL_LOG_LEVEL
static String
ARGS_SEPARATOR
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
defaultValue()
String
defaultValueStr()
String
description()
boolean
isWritableValue()
String
key()
Command line property keystatic Level
logLevelOf(String level)
Class<?>
type()
static NatsConfig
valueOf(String name)
Returns the enum constant of this type with the specified name.static NatsConfig[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NET
public static final NatsConfig NET
-
PORT
public static final NatsConfig PORT
-
SERVER_NAME
public static final NatsConfig SERVER_NAME
-
PID
public static final NatsConfig PID
-
HTTP_PORT
public static final NatsConfig HTTP_PORT
-
HTTPS_PORT
public static final NatsConfig HTTPS_PORT
-
CONFIG
public static final NatsConfig CONFIG
-
TEST_CONFIG
public static final NatsConfig TEST_CONFIG
-
SIGNAL
public static final NatsConfig SIGNAL
-
CLIENT_ADVERTISE
public static final NatsConfig CLIENT_ADVERTISE
-
PORTS_FILE_DIR
public static final NatsConfig PORTS_FILE_DIR
-
LOG
public static final NatsConfig LOG
-
LOG_TIMELOG_TIME
public static final NatsConfig LOG_TIMELOG_TIME
-
SYSLOG
public static final NatsConfig SYSLOG
-
REMOTE_SYSLOG
public static final NatsConfig REMOTE_SYSLOG
-
DEBUG
public static final NatsConfig DEBUG
-
TRACE
public static final NatsConfig TRACE
-
VV
public static final NatsConfig VV
-
DV
public static final NatsConfig DV
-
DVV
public static final NatsConfig DVV
-
LOG_SIZE_LIMIT
public static final NatsConfig LOG_SIZE_LIMIT
-
MAX_TRACED_MSG_LEN
public static final NatsConfig MAX_TRACED_MSG_LEN
-
JETSTREAM
public static final NatsConfig JETSTREAM
-
STORE_DIR
public static final NatsConfig STORE_DIR
-
USER
public static final NatsConfig USER
-
PASS
public static final NatsConfig PASS
-
AUTH
public static final NatsConfig AUTH
-
TLS
public static final NatsConfig TLS
-
TLS_CERT
public static final NatsConfig TLS_CERT
-
TLS_KEY
public static final NatsConfig TLS_KEY
-
TLS_VERIFY
public static final NatsConfig TLS_VERIFY
-
TLS_CA_CERT
public static final NatsConfig TLS_CA_CERT
-
ROUTES
public static final NatsConfig ROUTES
-
CLUSTER
public static final NatsConfig CLUSTER
-
CLUSTER_NAME
public static final NatsConfig CLUSTER_NAME
-
NO_ADVERTISE
public static final NatsConfig NO_ADVERTISE
-
LUSTER_ADVERTISE
public static final NatsConfig LUSTER_ADVERTISE
-
CONNECT_RETRIES
public static final NatsConfig CONNECT_RETRIES
-
CLUSTER_LISTEN
public static final NatsConfig CLUSTER_LISTEN
-
PROFILE
public static final NatsConfig PROFILE
-
HELP
public static final NatsConfig HELP
-
HELP_TLS
public static final NatsConfig HELP_TLS
-
NATS_AUTOSTART
public static final NatsConfig NATS_AUTOSTART
-
NATS_LOG_LEVEL
public static final NatsConfig NATS_LOG_LEVEL
-
NATS_TIMEOUT_MS
public static final NatsConfig NATS_TIMEOUT_MS
-
NATS_SYSTEM
public static final NatsConfig NATS_SYSTEM
-
NATS_LOG_NAME
public static final NatsConfig NATS_LOG_NAME
-
NATS_VERSION
public static final NatsConfig NATS_VERSION
-
NATS_DOWNLOAD_URL
public static final NatsConfig NATS_DOWNLOAD_URL
-
NATS_BINARY_PATH
public static final NatsConfig NATS_BINARY_PATH
-
NATS_PROPERTY_FILE
public static final NatsConfig NATS_PROPERTY_FILE
-
NATS_ARGS
public static final NatsConfig NATS_ARGS
-
-
Field Detail
-
ARGS_SEPARATOR
public static final String ARGS_SEPARATOR
- See Also:
- Constant Field Values
-
ALL_LOG_LEVEL
public static final Level[] ALL_LOG_LEVEL
-
-
Method Detail
-
values
public static NatsConfig[] 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 (NatsConfig c : NatsConfig.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static NatsConfig 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
-
isWritableValue
public boolean isWritableValue()
-
defaultValue
public Object defaultValue()
-
description
public String description()
-
defaultValueStr
public String defaultValueStr()
- Returns:
- value as string
-
key
public String key()
Command line property key- Returns:
- key for command line
-
type
public Class<?> type()
-
-