public enum ConfigurationPropertyKey extends Enum<ConfigurationPropertyKey> implements TypedPropertyKey
| 枚举常量和说明 |
|---|
ACCEPTOR_SIZE
Worker group or user group thread max size.
|
ALLOW_RANGE_QUERY_WITH_INLINE_SHARDING
Allow or not execute range query with inline sharding strategy.
|
CHECK_TABLE_METADATA_ENABLED |
EXECUTOR_SIZE
Worker thread max size.
|
MAX_CONNECTIONS_SIZE_PER_QUERY
Max opened connection size for each query.
|
PROXY_BACKEND_CONNECTION_TIMEOUT_SECONDS |
PROXY_BACKEND_MAX_CONNECTIONS |
PROXY_FRONTEND_FLUSH_THRESHOLD
Sharding-Proxy's flush threshold for every records from databases.
|
PROXY_HINT_ENABLED
Enable hint for Sharding-Proxy.
|
PROXY_OPENTRACING_ENABLED
Enable opentracing for Sharding-Proxy.
|
PROXY_TRANSACTION_TYPE
Transaction type of proxy.
|
QUERY_WITH_CIPHER_COLUMN
When encrypt data, query with cipher column or not.
|
SQL_SHOW
Enable or Disable to show SQL details.
|
SQL_SIMPLE
Enable or Disable to show SQL details in simple style.
|
| 限定符和类型 | 方法和说明 |
|---|---|
static ConfigurationPropertyKey |
valueOf(String name)
返回带有指定名称的该类型的枚举常量。
|
static ConfigurationPropertyKey[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOfgetDefaultValue, getKey, getTypepublic static final ConfigurationPropertyKey SQL_SHOW
Print SQL details can help developers debug easier.
The details includes: logic SQL, parse context and rewrote actual SQL list.
Enable this property will log into log topic: ShardingSphere-SQL, log level is INFO.
Default: false
public static final ConfigurationPropertyKey SQL_SIMPLE
In sharding mode, if this properties is true, log will display in simple style to avoid too much contents. Default: false
public static final ConfigurationPropertyKey ACCEPTOR_SIZE
Worker group accept tcp connection. Command execute engine accept MySQL command. Default: CPU cores * 2.
public static final ConfigurationPropertyKey EXECUTOR_SIZE
Execute SQL Statement and PrepareStatement will use this thread pool. One sharding data source will use a independent thread pool, it does not share thread pool even different data source in same JVM. Default: infinite.
public static final ConfigurationPropertyKey MAX_CONNECTIONS_SIZE_PER_QUERY
public static final ConfigurationPropertyKey QUERY_WITH_CIPHER_COLUMN
public static final ConfigurationPropertyKey ALLOW_RANGE_QUERY_WITH_INLINE_SHARDING
For inline sharding strategy, user only can config precise algorithm via inline expression, and cannot config range algorithm. So throw exception when SQL contains range conditions(such as BETWEEN AND, <, >, <=, >=) may better than query all data nodes. If query all data nodes instead of explicit exception, user may missing the potential performance issue. When turn this parameter on, query all data nodes with inline sharding to be allowed instead of explicit exception. Default: false
public static final ConfigurationPropertyKey PROXY_FRONTEND_FLUSH_THRESHOLD
public static final ConfigurationPropertyKey PROXY_TRANSACTION_TYPE
LOCAL: Sharding-Proxy will run with LOCAL transaction.
XA: Sharding-Proxy will run with XA transaction.
BASE: Sharding-Proxy will run with BASE transaction.
public static final ConfigurationPropertyKey PROXY_OPENTRACING_ENABLED
public static final ConfigurationPropertyKey PROXY_HINT_ENABLED
public static final ConfigurationPropertyKey PROXY_BACKEND_MAX_CONNECTIONS
public static final ConfigurationPropertyKey PROXY_BACKEND_CONNECTION_TIMEOUT_SECONDS
public static final ConfigurationPropertyKey CHECK_TABLE_METADATA_ENABLED
public static ConfigurationPropertyKey[] values()
for (ConfigurationPropertyKey c : ConfigurationPropertyKey.values()) System.out.println(c);
public static ConfigurationPropertyKey valueOf(String name)
name - 要返回的枚举常量的名称。IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量NullPointerException - 如果参数为空值Copyright © 2020 The Apache Software Foundation. All rights reserved.