Enum DefaultOptions
- All Implemented Interfaces:
Serializable, Comparable<DefaultOptions>, java.lang.constant.Constable
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe connect timeout value, in milliseconds, or zero for no timeout. -
Method Summary
Modifier and TypeMethodDescriptionstatic OptionsdefaultValues(HaMode haMode) static OptionsdefaultValues(HaMode haMode, boolean pool) Generate an Options object with default value corresponding to High Availability mode.booleanstatic Optionsparse(HaMode haMode, String urlParameters, Properties properties, Options options) Parse additional properties .static voidParse additional properties.static voidpostOptionProcess(Options options, CredentialPlugin credentialPlugin) Option initialisation end : set option value to a coherent state.static voidpropertyString(Options options, HaMode haMode, StringBuilder sb) Generate parameter String equivalent to options.static DefaultOptionsReturns the enum constant of this type with the specified name.static DefaultOptions[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
USER
-
PASSWORD
-
CONNECT_TIMEOUT
The connect timeout value, in milliseconds, or zero for no timeout. Default: 30000 (30 seconds) (was 0 before 2.1.2) -
PIPE
-
LOCAL_SOCKET
-
SHARED_MEMORY
-
TCP_NO_DELAY
-
TCP_ABORTIVE_CLOSE
-
LOCAL_SOCKET_ADDRESS
-
SOCKET_TIMEOUT
-
INTERACTIVE_CLIENT
-
DUMP_QUERY_ON_EXCEPTION
-
USE_OLD_ALIAS_METADATA_BEHAVIOR
-
ALLOW_LOCAL_INFILE
-
SESSION_VARIABLES
-
CREATE_DATABASE_IF_NOT_EXISTS
-
SERVER_TIMEZONE
-
NULL_CATALOG_MEANS_CURRENT
-
TINY_INT_IS_BIT
-
YEAR_IS_DATE_TYPE
-
USE_SSL
-
USER_COMPRESSION
-
ALLOW_MULTI_QUERIES
-
REWRITE_BATCHED_STATEMENTS
-
TCP_KEEP_ALIVE
-
TCP_RCV_BUF
-
TCP_SND_BUF
-
SOCKET_FACTORY
-
PIN_GLOBAL_TX_TO_PHYSICAL_CONNECTION
-
TRUST_SERVER_CERTIFICATE
-
SERVER_SSL_CERT
-
USE_FRACTIONAL_SECONDS
-
AUTO_RECONNECT
-
FAIL_ON_READ_ONLY
-
RETRY_ALL_DOWN
-
FAILOVER_LOOP_RETRIES
-
VALID_CONNECTION_TIMEOUT
-
LOAD_BALANCE_BLACKLIST_TIMEOUT
-
CACHE_PREP_STMTS
-
PREP_STMT_CACHE_SIZE
-
PREP_STMT_CACHE_SQL_LIMIT
-
ASSURE_READONLY
-
USE_LEGACY_DATETIME_CODE
-
MAXIMIZE_MYSQL_COMPATIBILITY
-
USE_SERVER_PREP_STMTS
-
TRUSTSTORE
-
TRUST_CERTIFICATE_KEYSTORE_PASSWORD
-
KEYSTORE
-
KEYSTORE_PASSWORD
-
PRIVATE_KEYS_PASSWORD
-
ENABLED_SSL_PROTOCOL_SUITES
-
ENABLED_SSL_CIPHER_SUITES
-
CONTINUE_BATCH_ON_ERROR
-
JDBC_COMPLIANT_TRUNCATION
-
CACHE_CALLABLE_STMTS
-
CALLABLE_STMT_CACHE_SIZE
-
CONNECTION_ATTRIBUTES
-
USE_BATCH_MULTI_SEND
-
USE_BATCH_MULTI_SEND_NUMBER
-
LOGGING
-
PROFILE_SQL
-
MAX_QUERY_LOG_SIZE
-
SLOW_QUERY_TIME
-
PASSWORD_CHARACTER_ENCODING
-
PIPELINE_AUTH
-
ENABLE_PACKET_DEBUG
-
SSL_HOSTNAME_VERIFICATION
-
USE_BULK_PROTOCOL
-
AUTOCOMMIT
-
POOL
-
POOL_NAME
-
MAX_POOL_SIZE
-
MIN_POOL_SIZE
-
MAX_IDLE_TIME
-
POOL_VALID_MIN_DELAY
-
STATIC_GLOBAL
-
REGISTER_POOL_JMX
-
USE_RESET_CONNECTION
-
ALLOW_MASTER_DOWN
-
GALERA_ALLOWED_STATE
-
USE_AFFECTED_ROWS
-
INCLUDE_STATUS
-
INCLUDE_THREAD_DUMP
-
READ_AHEAD
-
KEY_STORE_TYPE
-
TRUST_STORE_TYPE
-
SERVICE_PRINCIPAL_NAME
-
DEFAULT_FETCH_SIZE
-
USE_MYSQL_AS_DATABASE
-
BLANK_TABLE_NAME_META
-
CREDENTIAL_TYPE
-
SERVER_KEY_FILE
-
ALLOW_SERVER_KEY_RETRIEVAL
-
TLS_SOCKET_TYPE
-
TRACK_SCHEMA
-
ENSURE_SOCKET_STATE
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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
-
defaultValues
-
defaultValues
-
parse
-
parse
public static Options parse(HaMode haMode, String urlParameters, Properties properties, Options options) Parse additional properties .- Parameters:
haMode- current haMode.urlParameters- options defined in urlproperties- options defined by propertiesoptions- initial options- Returns:
- options
-
postOptionProcess
Option initialisation end : set option value to a coherent state.- Parameters:
options- optionscredentialPlugin- credential plugin
-
propertyString
Generate parameter String equivalent to options.- Parameters:
options- optionshaMode- high availability Modesb- String builder
-
getOptionName
-
getDescription
-
isRequired
public boolean isRequired()
-