4.3.1.12 常量

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 属性_JDBC_密码
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 项目中使用的常量。

4.3.1.12.1 概要
 public  interface  Constants  {
// 公共静态字段}  public 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";
4.3.1.12.2 DEFAULT_PROPERTY_CLUSTER_BYTE_BUFFER_POOL_SIZES
public static final String DEFAULT_PROPERTY_CLUSTER_BYTE_BUFFER_POOL_SIZES = "256, 10240, 102400, 1048576";

字节缓冲池大小属性的默认值:256、10K、100K、1M

4.3.1.12.3 DEFAULT_PROPERTY_CLUSTER_CONNECT_AUTO_INCREMENT_BATCH_SIZE
public static final int DEFAULT_PROPERTY_CLUSTER_CONNECT_AUTO_INCREMENT_BATCH_SIZE = 10;

连接自动增量批量大小属性的默认值

4.3.1.12.4 DEFAULT_PROPERTY_CLUSTER_CONNECT_AUTO_INCREMENT_START
public static final long DEFAULT_PROPERTY_CLUSTER_CONNECT_AUTO_INCREMENT_START = 1L;

连接自增启动属性的默认值

4.3.1.12.5 DEFAULT_PROPERTY_CLUSTER_CONNECT_AUTO_INCREMENT_STEP
public static final long DEFAULT_PROPERTY_CLUSTER_CONNECT_AUTO_INCREMENT_STEP = 1L;

连接自动增量步长属性的默认值

4.3.1.12.6 DEFAULT_PROPERTY_CLUSTER_CONNECT_DELAY
public static final int DEFAULT_PROPERTY_CLUSTER_CONNECT_DELAY = 5;

连接延迟属性的默认值

4.3.1.12.7 DEFAULT_PROPERTY_CLUSTER_CONNECT_RETRIES
public static final int DEFAULT_PROPERTY_CLUSTER_CONNECT_RETRIES = 4;

连接重试属性的默认值

4.3.1.12.8 DEFAULT_PROPERTY_CLUSTER_CONNECT_TIMEOUT_AFTER
public static final int DEFAULT_PROPERTY_CLUSTER_CONNECT_TIMEOUT_AFTER = 20;

连接超时后属性的默认值

4.3.1.12.9 DEFAULT_PROPERTY_CLUSTER_CONNECT_TIMEOUT_BEFORE
public static final int DEFAULT_PROPERTY_CLUSTER_CONNECT_TIMEOUT_BEFORE = 30;

连接超时前属性的默认值

4.3.1.12.10 DEFAULT_PROPERTY_CLUSTER_CONNECT_TIMEOUT_MGM
public static final int DEFAULT_PROPERTY_CLUSTER_CONNECT_TIMEOUT_MGM = 30000;

连接超时 mgm 属性的默认值

4.3.1.12.11 DEFAULT_PROPERTY_CLUSTER_CONNECT_VERBOSE
public static final int DEFAULT_PROPERTY_CLUSTER_CONNECT_VERBOSE = 0;

连接详细属性的默认值

4.3.1.12.12 DEFAULT_PROPERTY_CLUSTER_DATABASE
public static final String DEFAULT_PROPERTY_CLUSTER_DATABASE = "test";

数据库属性的默认值

4.3.1.12.13 DEFAULT_PROPERTY_CLUSTER_MAX_TRANSACTIONS
public static final int DEFAULT_PROPERTY_CLUSTER_MAX_TRANSACTIONS = 4;

最大交易数属性的默认值

4.3.1.12.14 DEFAULT_PROPERTY_CONNECTION_POOL_RECV_THREAD_ACTIVATION_THRESHOLD
public static final int DEFAULT_PROPERTY_CONNECTION_POOL_RECV_THREAD_ACTIVATION_THRESHOLD = 8;

接收线程激活阈值的默认值

4.3.1.12.15 DEFAULT_PROPERTY_CONNECTION_POOL_SIZE
public static final int DEFAULT_PROPERTY_CONNECTION_POOL_SIZE = 1;

连接池大小属性的默认值

4.3.1.12.16 DEFAULT_PROPERTY_CONNECTION_RECONNECT_TIMEOUT
public static final int DEFAULT_PROPERTY_CONNECTION_RECONNECT_TIMEOUT = 0;
自从

7.5.7

连接重新连接超时属性的默认值。默认是关闭网络故障自动重连功能。

4.3.1.12.17 ENV_CLUSTERJ_LOGGER_FACTORY_NAME
public static final String ENV_CLUSTERJ_LOGGER_FACTORY_NAME = "CLUSTERJ_LOGGER_FACTORY";

设置记录器工厂的环境变量的名称

4.3.1.12.18 PROPERTY_CLUSTER_BYTE_BUFFER_POOL_SIZES
public static final String PROPERTY_CLUSTER_BYTE_BUFFER_POOL_SIZES = "com.mysql.clusterj.byte.buffer.pool.sizes";

字节缓冲池大小属性的名称。要禁用 blob 对象的缓冲池,请将此属性的值设置为“1”。使用此设置,缓冲区将在用于 blob 数据传输后立即分配和释放(并在可能的情况下清理)。

4.3.1.12.19 PROPERTY_CLUSTER_CONNECT_AUTO_INCREMENT_BATCH_SIZE
public static final String PROPERTY_CLUSTER_CONNECT_AUTO_INCREMENT_BATCH_SIZE = "com.mysql.clusterj.connect.autoincrement.batchsize";

连接自动增量批量大小属性的名称。

4.3.1.12.20 PROPERTY_CLUSTER_CONNECT_AUTO_INCREMENT_START
public static final String PROPERTY_CLUSTER_CONNECT_AUTO_INCREMENT_START = "com.mysql.clusterj.connect.autoincrement.offset";

连接自动增量启动属性的名称。

4.3.1.12.21 PROPERTY_CLUSTER_CONNECT_AUTO_INCREMENT_STEP
public static final String PROPERTY_CLUSTER_CONNECT_AUTO_INCREMENT_STEP = "com.mysql.clusterj.connect.autoincrement.increment";

连接自动增量步骤属性的名称。

4.3.1.12.22 PROPERTY_CLUSTER_CONNECT_DELAY
public static final String PROPERTY_CLUSTER_CONNECT_DELAY = "com.mysql.clusterj.connect.delay";

连接延迟属性的名称。有关详细信息,请参阅 Ndb_cluster_connection::connect()

4.3.1.12.23 PROPERTY_CLUSTER_CONNECT_RETRIES
public static final String PROPERTY_CLUSTER_CONNECT_RETRIES = "com.mysql.clusterj.connect.retries";

连接重试属性的名称。有关详细信息,请参阅 Ndb_cluster_connection::connect()

4.3.1.12.24 PROPERTY_CLUSTER_CONNECT_TIMEOUT_AFTER
public static final String PROPERTY_CLUSTER_CONNECT_TIMEOUT_AFTER = "com.mysql.clusterj.connect.timeout.after";

属性后连接超时的名称。有关详细信息,请参阅 Ndb_cluster_connection::wait_until_ready()

4.3.1.12.25 PROPERTY_CLUSTER_CONNECT_TIMEOUT_BEFORE
public static final String PROPERTY_CLUSTER_CONNECT_TIMEOUT_BEFORE = "com.mysql.clusterj.connect.timeout.before";

属性之前连接超时的名称。有关详细信息,请参阅 Ndb_cluster_connection::wait_until_ready()

4.3.1.12.26 PROPERTY_CLUSTER_CONNECT_TIMEOUT_MGM
public static final String PROPERTY_CLUSTER_CONNECT_TIMEOUT_MGM = "com.mysql.clusterj.connect.timeout.mgm";

连接到数据节点之前集群连接到MGM的初始超时名称 Ndb_cluster_connection::set_timeout()

4.3.1.12.27 PROPERTY_CLUSTER_CONNECT_VERBOSE
public static final String PROPERTY_CLUSTER_CONNECT_VERBOSE = "com.mysql.clusterj.connect.verbose";

连接详细属性的名称。有关详细信息,请参阅 Ndb_cluster_connection::connect()

4.3.1.12.28 PROPERTY_CLUSTER_CONNECTION_SERVICE
public static final String PROPERTY_CLUSTER_CONNECTION_SERVICE = "com.mysql.clusterj.connection.service";

The name of the connection service property

4.3.1.12.29 PROPERTY_CLUSTER_CONNECTSTRING
public static final String PROPERTY_CLUSTER_CONNECTSTRING = "com.mysql.clusterj.connectstring";

The name of the connection string property. For details, see Ndb_cluster_connection constructor

4.3.1.12.30 PROPERTY_CLUSTER_DATABASE
public static final String PROPERTY_CLUSTER_DATABASE = "com.mysql.clusterj.database";

The name of the database property. For details, see the catalogName parameter in the Ndb constructor. Ndb constructor

4.3.1.12.31 PROPERTY_CLUSTER_MAX_TRANSACTIONS
public static final String PROPERTY_CLUSTER_MAX_TRANSACTIONS = "com.mysql.clusterj.max.transactions";

The name of the maximum number of transactions property. For details, see Ndb::init()

4.3.1.12.32 PROPERTY_CONNECTION_POOL_NODEIDS
public static final String PROPERTY_CONNECTION_POOL_NODEIDS = "com.mysql.clusterj.connection.pool.nodeids";

The name of the connection pool node ids property. There is no default. This is the list of node ids to force the connections to be assigned to specific node ids. If this property is specified and connection pool size is not the default, the number of node ids of the list must match the connection pool size, or the number of node ids must be 1 and node ids will be assigned to connections starting with the specified node id.

4.3.1.12.33 PROPERTY_CONNECTION_POOL_RECV_THREAD_ACTIVATION_THRESHOLD
public static final String PROPERTY_CONNECTION_POOL_RECV_THREAD_ACTIVATION_THRESHOLD = "com.mysql.clusterj.connection.pool.recv.thread.activation.threshold";

The receive thread activation threshold for all connections in the connection pool. The default is no activation threshold.

4.3.1.12.34 PROPERTY_CONNECTION_POOL_RECV_THREAD_CPUIDS
public static final String PROPERTY_CONNECTION_POOL_RECV_THREAD_CPUIDS = "com.mysql.clusterj.connection.pool.recv.thread.cpuids";

The cpu binding of the receive threads for the connections in the connection pool. The default is no cpu binding for receive threads. If this property is specified, the number of cpu ids in the list must be equal to : a) the connection pool size if the connection pooling is not disabled (i.e. connection pool size > 0) (or) b) 1 if the connection pooling is disabled.

4.3.1.12.35 PROPERTY_CONNECTION_POOL_SIZE
public static final String PROPERTY_CONNECTION_POOL_SIZE = "com.mysql.clusterj.connection.pool.size";

The name of the connection pool size property. This is the number of connections to create in the connection pool. The default is 1 (all sessions share the same connection; all requests for a SessionFactory with the same connect string and database will share a single SessionFactory). A setting of 0 disables pooling; each request for a SessionFactory will receive its own unique SessionFactory.

4.3.1.12.36 PROPERTY_CONNECTION_RECONNECT_TIMEOUT
public static final String PROPERTY_CONNECTION_RECONNECT_TIMEOUT = "com.mysql.clusterj.connection.reconnect.timeout";
Since

7.5.7

The number of seconds to wait for all sessions to be closed when reconnecting a SessionFactory due to network failures. The default, 0, indicates that the automatic reconnection to the cluster due to network failures is disabled. Reconnection can be enabled by using the method SessionFactory.reconnect(int timeout) and specifying a new timeout value.

4.3.1.12.37 PROPERTY_DEFER_CHANGES
public static final String PROPERTY_DEFER_CHANGES = "com.mysql.clusterj.defer.changes";

The flag for deferred inserts, deletes, and updates

4.3.1.12.38 PROPERTY_JDBC_DRIVER_NAME
public static final String PROPERTY_JDBC_DRIVER_NAME = "com.mysql.clusterj.jdbc.driver";

The name of the jdbc driver

4.3.1.12.39 PROPERTY_JDBC_PASSWORD
public static final String PROPERTY_JDBC_PASSWORD = "com.mysql.clusterj.jdbc.password";

The jdbc password

4.3.1.12.40 PROPERTY_JDBC_URL
public static final String PROPERTY_JDBC_URL = "com.mysql.clusterj.jdbc.url";

The jdbc url

4.3.1.12.41 PROPERTY_JDBC_USERNAME
public static final String PROPERTY_JDBC_USERNAME = "com.mysql.clusterj.jdbc.username";

The jdbc username

4.3.1.12.42 SESSION_FACTORY_SERVICE_CLASS_NAME
public static final String SESSION_FACTORY_SERVICE_CLASS_NAME = "com.mysql.clusterj.SessionFactoryService";

The name of the session factory service interface

4.3.1.12.43 SESSION_FACTORY_SERVICE_FILE_NAME
public static final String SESSION_FACTORY_SERVICE_FILE_NAME = "META-INF/services/com.mysql.clusterj.SessionFactoryService";

The name of the files with names of implementation classes for session factory service