public class CommandCreateJDBCConnectionPool extends Command
Modifier and Type | Field and Description |
---|---|
private static String |
COMMAND
Command string for create JDBC connection pool command.
|
(package private) String |
connectionPoolId
Connection pool unique name (and ID).
|
(package private) String |
dataSourceClassName
The name of the vendor-supplied JDBC data source resource manager.
|
private static String |
ERROR_MESSAGE
Error message for administration command execution exception .
|
(package private) Map<String,String> |
properties
Optional properties for configuring the pool.
|
(package private) String |
resType
Resource type.
|
Constructor and Description |
---|
CommandCreateJDBCConnectionPool(String connectionPoolId,
String dataSourceClassName,
String resType,
Map<String,String> properties)
Constructs an instance of GlassFish server create JDBC connection pool
command entity.
|
Modifier and Type | Method and Description |
---|---|
static ResultString |
createJDBCConnectionPool(GlassFishServer server,
String connectionPoolId,
String dataSourceClassName,
String resType,
Map<String,String> properties)
create JDBC connection pool.
|
static ResultString |
createJDBCConnectionPool(GlassFishServer server,
String connectionPoolId,
String dataSourceClassName,
String resType,
Map<String,String> properties,
long timeout)
Create JDBC connection pool.
|
getCommand, retry
private static final String COMMAND
private static final String ERROR_MESSAGE
final String connectionPoolId
final String dataSourceClassName
final String resType
final Map<String,String> properties
user | Specifies the user name for connecting to the database. |
password | Specifies the password for connecting to the database. |
databaseName | Specifies the database for this connection pool. |
serverName | Specifies the database server for this connection pool. |
port | Specifies the port on which the database server listens for requests. |
networkProtocol | Specifies the communication protocol. |
roleName | Specifies the initial SQL role name. |
datasourceName | Specifies an underlying XADataSource, or a ConnectionPoolDataSource if connection pooling is done. |
description | Specifies a text description. |
url | Specifies the URL for this connection pool. Although this is not a standard property, it is commonly used. |
dynamic-reconfiguration-wait-timeout-in-seconds | Used to enable dynamic reconfiguration of the connection pool transparently to the applications that are using the pool, so that applications need not be re-enabled for the attribute or property changes to the pool to take effect. Any in-flight transaction's connection requests will be allowed to complete with the old pool configuration as long as the connection requests are within the timeout period, so as to complete the transaction. New connection requests will wait for the pool reconfiguration to complete and connections will be acquired using the modified pool configuration. |
LazyConnectionEnlistment | Deprecated. Use the equivalent attribute. The default value is false. |
LazyConnectionAssociation | Deprecated. Use the equivalent attribute. The default value is false. |
AssociateWithThread | Deprecated. Use the equivalent attribute. The default value is false. |
MatchConnections | Deprecated. Use the equivalent attribute. The default value is true. |
Prefer-Validate-Over-Recreate | Specifies whether pool resizer should validate idle connections before destroying and recreating them. The default value is true. |
time-to-keep-queries-in-minutes | Specifies the number of minutes that will be cached for use in calculating frequently used queries. Takes effect when SQL tracing and monitoring are enabled for the JDBC connection pool. The default value is 5 minutes. |
number-of-top-queries-to-report | Specifies the number of queries to list when reporting the top and most frequently used queries. Takes effect when SQL tracing and monitoring are enabled for the JDBC connection pool. The default value is 10 queries. |
public CommandCreateJDBCConnectionPool(String connectionPoolId, String dataSourceClassName, String resType, Map<String,String> properties)
connectionPoolId
- Connection pool unique name (and ID).dataSourceClassName
- The name of the vendor-supplied JDBC
data source resource manager.resType
- Resource type.properties
- Optional properties for configuring the pool.public static ResultString createJDBCConnectionPool(GlassFishServer server, String connectionPoolId, String dataSourceClassName, String resType, Map<String,String> properties) throws GlassFishIdeException
server
- GlassFish server entity.connectionPoolId
- Connection pool unique name (and ID).dataSourceClassName
- The name of the vendor-supplied JDBC data
source resource manager.resType
- Resource type.properties
- Optional properties for configuring the pool.GlassFishIdeException
- When error occurred during administration
command execution.public static ResultString createJDBCConnectionPool(GlassFishServer server, String connectionPoolId, String dataSourceClassName, String resType, Map<String,String> properties, long timeout) throws GlassFishIdeException
server
- GlassFish server entity.connectionPoolId
- Connection pool unique name (and ID).dataSourceClassName
- The name of the vendor-supplied JDBC data
source resource manager.resType
- Resource type.properties
- Optional properties for configuring the pool.timeout
- Administration command execution timeout [ms].GlassFishIdeException
- When error occurred during administration
command execution.Copyright © 2013. All Rights Reserved.