- 4.3.1.12.1 概要
- 4.3.1.12.2 DEFAULT_PROPERTY_CLUSTER_BYTE_BUFFER_POOL_SIZES
- 4.3.1.12.3 DEFAULT_PROPERTY_CLUSTER_CONNECT_AUTO_INCREMENT_BATCH_SIZE
- 4.3.1.12.4 DEFAULT_PROPERTY_CLUSTER_CONNECT_AUTO_INCREMENT_START
- 4.3.1.12.5 DEFAULT_PROPERTY_CLUSTER_CONNECT_AUTO_INCREMENT_STEP
- 4.3.1.12.6 DEFAULT_PROPERTY_CLUSTER_CONNECT_DELAY
- 4.3.1.12.7 DEFAULT_PROPERTY_CLUSTER_CONNECT_RETRIES
- 4.3.1.12.8 DEFAULT_PROPERTY_CLUSTER_CONNECT_TIMEOUT_AFTER
- 4.3.1.12.9 DEFAULT_PROPERTY_CLUSTER_CONNECT_TIMEOUT_BEFORE
- 4.3.1.12.10 DEFAULT_PROPERTY_CLUSTER_CONNECT_TIMEOUT_MGM
- 4.3.1.12.11 DEFAULT_PROPERTY_CLUSTER_CONNECT_VERBOSE
- 4.3.1.12.12 DEFAULT_PROPERTY_CLUSTER_DATABASE
- 4.3.1.12.13 DEFAULT_PROPERTY_CLUSTER_MAX_TRANSACTIONS
- 4.3.1.12.14 DEFAULT_PROPERTY_CONNECTION_POOL_RECV_THREAD_ACTIVATION_THRESHOLD
- 4.3.1.12.15 DEFAULT_PROPERTY_CONNECTION_POOL_SIZE
- 4.3.1.12.16 DEFAULT_PROPERTY_CONNECTION_RECONNECT_TIMEOUT
- 4.3.1.12.17 ENV_CLUSTERJ_LOGGER_FACTORY_NAME
- 4.3.1.12.18 PROPERTY_CLUSTER_BYTE_BUFFER_POOL_SIZES
- 4.3.1.12.19 PROPERTY_CLUSTER_CONNECT_AUTO_INCREMENT_BATCH_SIZE
- 4.3.1.12.20 PROPERTY_CLUSTER_CONNECT_AUTO_INCREMENT_START
- 4.3.1.12.21 PROPERTY_CLUSTER_CONNECT_AUTO_INCREMENT_STEP
- 4.3.1.12.22 PROPERTY_CLUSTER_CONNECT_DELAY
- 4.3.1.12.23 PROPERTY_CLUSTER_CONNECT_RETRIES
- 4.3.1.12.24 PROPERTY_CLUSTER_CONNECT_TIMEOUT_AFTER
- 4.3.1.12.25 PROPERTY_CLUSTER_CONNECT_TIMEOUT_BEFORE
- 4.3.1.12.26 PROPERTY_CLUSTER_CONNECT_TIMEOUT_MGM
- 4.3.1.12.27 PROPERTY_CLUSTER_CONNECT_VERBOSE
- 4.3.1.12.28 PROPERTY_CLUSTER_CONNECTION_SERVICE
- 4.3.1.12.29 PROPERTY_CLUSTER_CONNECTSTRING
- 4.3.1.12.30 PROPERTY_CLUSTER_DATABASE
- 4.3.1.12.31 PROPERTY_CLUSTER_MAX_TRANSACTIONS
- 4.3.1.12.32 PROPERTY_CONNECTION_POOL_NODEIDS
- 4.3.1.12.33 PROPERTY_CONNECTION_POOL_RECV_THREAD_ACTIVATION_THRESHOLD
- 4.3.1.12.34 PROPERTY_CONNECTION_POOL_RECV_THREAD_CPUIDS
- 4.3.1.12.35 PROPERTY_CONNECTION_POOL_SIZE
- 4.3.1.12.36 PROPERTY_CONNECTION_RECONNECT_TIMEOUT
- 4.3.1.12.37 PROPERTY_DEFER_CHANGES
- 4.3.1.12.38 PROPERTY_JDBC_DRIVER_NAME
- 4.3.1.12.39 PROPERTY_JDBC_PASSWORD
- 4.3.1.12.40 PROPERTY_JDBC_URL
- 4.3.1.12.41 PROPERTY_JDBC_USERNAME
- 4.3.1.12.42 SESSION_FACTORY_SERVICE_CLASS_NAME
- 4.3.1.12.43 SESSION_FACTORY_SERVICE_FILE_NAME
ClusterJ 项目中使用的常量。
public interface Constants {
// Public Static Fieldspublic static final String DEFAULT_PROPERTY_CLUSTER_BYTE_BUFFER_POOL_SIZES = "256, 10240, 102400, 1048576";
public static final int DEFAULT_PROPERTY_CLUSTER_CONNECT_AUTO_INCREMENT_BATCH_SIZE = 10;
public static final long DEFAULT_PROPERTY_CLUSTER_CONNECT_AUTO_INCREMENT_START = 1L;
public static final long DEFAULT_PROPERTY_CLUSTER_CONNECT_AUTO_INCREMENT_STEP = 1L;
public static final int DEFAULT_PROPERTY_CLUSTER_CONNECT_DELAY = 5;
public static final int DEFAULT_PROPERTY_CLUSTER_CONNECT_RETRIES = 4;
public static final int DEFAULT_PROPERTY_CLUSTER_CONNECT_TIMEOUT_AFTER = 20;
public static final int DEFAULT_PROPERTY_CLUSTER_CONNECT_TIMEOUT_BEFORE = 30;
public static final int DEFAULT_PROPERTY_CLUSTER_CONNECT_TIMEOUT_MGM = 30000;
public static final int DEFAULT_PROPERTY_CLUSTER_CONNECT_VERBOSE = 0;
public static final String DEFAULT_PROPERTY_CLUSTER_DATABASE = "test";
public static final int DEFAULT_PROPERTY_CLUSTER_MAX_TRANSACTIONS = 4;
public static final int DEFAULT_PROPERTY_CONNECTION_POOL_RECV_THREAD_ACTIVATION_THRESHOLD = 8;
public static final int DEFAULT_PROPERTY_CONNECTION_POOL_SIZE = 1;
public static final int DEFAULT_PROPERTY_CONNECTION_RECONNECT_TIMEOUT = 0;
public static final String ENV_CLUSTERJ_LOGGER_FACTORY_NAME = "CLUSTERJ_LOGGER_FACTORY";
public static final String PROPERTY_CLUSTER_BYTE_BUFFER_POOL_SIZES = "com.mysql.clusterj.byte.buffer.pool.sizes";
public static final String PROPERTY_CLUSTER_CONNECTION_SERVICE = "com.mysql.clusterj.connection.service";
public static final String PROPERTY_CLUSTER_CONNECTSTRING = "com.mysql.clusterj.connectstring";
public static final String PROPERTY_CLUSTER_CONNECT_AUTO_INCREMENT_BATCH_SIZE = "com.mysql.clusterj.connect.autoincrement.batchsize";
public static final String PROPERTY_CLUSTER_CONNECT_AUTO_INCREMENT_START = "com.mysql.clusterj.connect.autoincrement.offset";
public static final String PROPERTY_CLUSTER_CONNECT_AUTO_INCREMENT_STEP = "com.mysql.clusterj.connect.autoincrement.increment";
public static final String PROPERTY_CLUSTER_CONNECT_DELAY = "com.mysql.clusterj.connect.delay";
public static final String PROPERTY_CLUSTER_CONNECT_RETRIES = "com.mysql.clusterj.connect.retries";
public static final String PROPERTY_CLUSTER_CONNECT_TIMEOUT_AFTER = "com.mysql.clusterj.connect.timeout.after";
public static final String PROPERTY_CLUSTER_CONNECT_TIMEOUT_BEFORE = "com.mysql.clusterj.connect.timeout.before";
public static final String PROPERTY_CLUSTER_CONNECT_TIMEOUT_MGM = "com.mysql.clusterj.connect.timeout.mgm";
public static final String PROPERTY_CLUSTER_CONNECT_VERBOSE = "com.mysql.clusterj.connect.verbose";
public static final String PROPERTY_CLUSTER_DATABASE = "com.mysql.clusterj.database";
public static final String PROPERTY_CLUSTER_MAX_TRANSACTIONS = "com.mysql.clusterj.max.transactions";
public static final String PROPERTY_CONNECTION_POOL_NODEIDS = "com.mysql.clusterj.connection.pool.nodeids";
public static final String PROPERTY_CONNECTION_POOL_RECV_THREAD_ACTIVATION_THRESHOLD = "com.mysql.clusterj.connection.pool.recv.thread.activation.threshold";
public static final String PROPERTY_CONNECTION_POOL_RECV_THREAD_CPUIDS = "com.mysql.clusterj.connection.pool.recv.thread.cpuids";
public static final String PROPERTY_CONNECTION_POOL_SIZE = "com.mysql.clusterj.connection.pool.size";
public static final String PROPERTY_CONNECTION_RECONNECT_TIMEOUT = "com.mysql.clusterj.connection.reconnect.timeout";
public static final String PROPERTY_DEFER_CHANGES = "com.mysql.clusterj.defer.changes";
public static final String PROPERTY_JDBC_DRIVER_NAME = "com.mysql.clusterj.jdbc.driver";
public static final String PROPERTY_JDBC_PASSWORD = "com.mysql.clusterj.jdbc.password";
public static final String PROPERTY_JDBC_URL = "com.mysql.clusterj.jdbc.url";
public static final String PROPERTY_JDBC_USERNAME = "com.mysql.clusterj.jdbc.username";
public static final String SESSION_FACTORY_SERVICE_CLASS_NAME = "com.mysql.clusterj.SessionFactoryService";
public static final String SESSION_FACTORY_SERVICE_FILE_NAME = "META-INF/services/com.mysql.clusterj.SessionFactoryService";
}
public static final String DEFAULT_PROPERTY_CLUSTER_BYTE_BUFFER_POOL_SIZES = "256, 10240, 102400, 1048576";
字节缓冲池大小属性的默认值:256、10K、100K、1M
public static final int DEFAULT_PROPERTY_CLUSTER_CONNECT_AUTO_INCREMENT_BATCH_SIZE = 10;
连接自增批量大小属性的默认值
public static final int DEFAULT_PROPERTY_CONNECTION_POOL_RECV_THREAD_ACTIVATION_THRESHOLD = 8;
接收线程激活阈值的默认值
public static final int DEFAULT_PROPERTY_CONNECTION_RECONNECT_TIMEOUT = 0;
- 自
7.5.7
连接重新连接超时属性的默认值。默认值表示禁用由于网络故障而进行的自动重新连接。
public static final String ENV_CLUSTERJ_LOGGER_FACTORY_NAME = "CLUSTERJ_LOGGER_FACTORY";
用于设置日志记录器工厂的环境变量的名称
public static final String PROPERTY_CLUSTER_BYTE_BUFFER_POOL_SIZES = "com.mysql.clusterj.byte.buffer.pool.sizes";
字节缓冲池大小属性的名称。要禁用 blob 对象的缓冲池,请将此属性的值设置为“1”。使用此设置,缓冲区将在用于 blob 数据传输后立即分配和释放(如果可能,还会清除)。
public static final String PROPERTY_CLUSTER_CONNECT_AUTO_INCREMENT_BATCH_SIZE = "com.mysql.clusterj.connect.autoincrement.batchsize";
连接自增批量大小属性的名称。
public static final String PROPERTY_CLUSTER_CONNECT_AUTO_INCREMENT_START = "com.mysql.clusterj.connect.autoincrement.offset";
连接自增起始属性的名称。
public static final String PROPERTY_CLUSTER_CONNECT_AUTO_INCREMENT_STEP = "com.mysql.clusterj.connect.autoincrement.increment";
连接自增步长属性的名称。
public static final String PROPERTY_CLUSTER_CONNECT_DELAY = "com.mysql.clusterj.connect.delay";
连接延迟属性的名称。有关详细信息,请参阅 Ndb_cluster_connection::connect()
public static final String PROPERTY_CLUSTER_CONNECT_RETRIES = "com.mysql.clusterj.connect.retries";
连接重试次数属性的名称。有关详细信息,请参阅 Ndb_cluster_connection::connect()
public static final String PROPERTY_CLUSTER_CONNECT_TIMEOUT_AFTER = "com.mysql.clusterj.connect.timeout.after";
连接超时(之后)属性的名称。有关详细信息,请参阅 Ndb_cluster_connection::wait_until_ready()
public static final String PROPERTY_CLUSTER_CONNECT_TIMEOUT_BEFORE = "com.mysql.clusterj.connect.timeout.before";
连接超时(之前)属性的名称。有关详细信息,请参阅 Ndb_cluster_connection::wait_until_ready()
public static final String PROPERTY_CLUSTER_CONNECT_TIMEOUT_MGM = "com.mysql.clusterj.connect.timeout.mgm";
在连接到数据节点之前,集群连接连接到 MGM 的初始超时时间 Ndb_cluster_connection::set_timeout()
public static final String PROPERTY_CLUSTER_CONNECT_VERBOSE = "com.mysql.clusterj.connect.verbose";
连接详细属性的名称。有关详细信息,请参阅 Ndb_cluster_connection::connect()
public static final String PROPERTY_CLUSTER_CONNECTION_SERVICE = "com.mysql.clusterj.connection.service";
连接服务属性的名称
public static final String PROPERTY_CLUSTER_CONNECTSTRING = "com.mysql.clusterj.connectstring";
连接字符串属性的名称。有关详细信息,请参阅 Ndb_cluster_connection 构造函数
public static final String PROPERTY_CLUSTER_DATABASE = "com.mysql.clusterj.database";
数据库属性的名称。有关详细信息,请参阅 Ndb 构造函数中的 catalogName 参数。 Ndb 构造函数
public static final String PROPERTY_CLUSTER_MAX_TRANSACTIONS = "com.mysql.clusterj.max.transactions";
最大事务数属性的名称。有关详细信息,请参阅 Ndb::init()
public static final String PROPERTY_CONNECTION_POOL_NODEIDS = "com.mysql.clusterj.connection.pool.nodeids";
连接池节点 ID 属性的名称。没有默认值。这是节点 ID 列表,用于强制将连接分配给特定的节点 ID。如果指定了此属性,并且连接池大小不是默认值,则列表中的节点 ID 数量必须与连接池大小匹配,或者节点 ID 数量必须为 1,并且将从指定的节点 ID 开始为连接分配节点 ID。
public static final String PROPERTY_CONNECTION_POOL_RECV_THREAD_ACTIVATION_THRESHOLD = "com.mysql.clusterj.connection.pool.recv.thread.activation.threshold";
连接池中所有连接的接收线程激活阈值。默认情况下没有激活阈值。
public static final String PROPERTY_CONNECTION_POOL_RECV_THREAD_CPUIDS = "com.mysql.clusterj.connection.pool.recv.thread.cpuids";
连接池中连接的接收线程的 CPU 绑定。默认情况下,接收线程没有 CPU 绑定。如果指定了此属性,则列表中的 CPU ID 数量必须等于:a) 如果未禁用连接池,则为连接池大小(即连接池大小 > 0)(或)b) 如果禁用了连接池,则为 1。
public static final String PROPERTY_CONNECTION_POOL_SIZE = "com.mysql.clusterj.connection.pool.size";
连接池大小属性的名称。这是要在连接池中创建的连接数。默认值为 1(所有会话共享同一个连接;对具有相同连接字符串和数据库的 SessionFactory 的所有请求将共享一个 SessionFactory)。设置为 0 将禁用池;对 SessionFactory 的每个请求都将收到其自己的唯一 SessionFactory。
public static final String PROPERTY_CONNECTION_RECONNECT_TIMEOUT = "com.mysql.clusterj.connection.reconnect.timeout";
- 自
7.5.7
由于网络故障重新连接 SessionFactory 时,等待所有会话关闭的秒数。默认值 0 表示禁用由于网络故障而自动重新连接到集群。可以使用 SessionFactory.reconnect(int timeout) 方法并指定新的超时值来启用重新连接。
public static final String PROPERTY_DEFER_CHANGES = "com.mysql.clusterj.defer.changes";
延迟插入、删除和更新的标志
public static final String PROPERTY_JDBC_DRIVER_NAME = "com.mysql.clusterj.jdbc.driver";
JDBC 驱动程序的名称