public class CommandCreateJDBCResource extends Command
Modifier and Type | Field and Description |
---|---|
private static String |
COMMAND
Command string for create JDBC resource command.
|
(package private) String |
connectionPoolId
Connection pool unique name (and ID).
|
private static String |
ERROR_MESSAGE
Error message for administration command execution exception .
|
(package private) String |
jndiName
The JNDI name of this JDBC resource.
|
(package private) Map<String,String> |
properties
Optional properties for configuring the resource.
|
(package private) String |
target
Helps specify the target to which you are deploying.
|
Constructor and Description |
---|
CommandCreateJDBCResource(String connectionPoolId,
String jndiName,
String target,
Map<String,String> properties)
Constructs an instance of GlassFish server create JDBC resource
command entity.
|
Modifier and Type | Method and Description |
---|---|
static ResultString |
createJDBCResource(GlassFishServer server,
String connectionPoolId,
String jndiName,
String target,
Map<String,String> properties)
Create JDBC resource.
|
static ResultString |
createJDBCResource(GlassFishServer server,
String connectionPoolId,
String jndiName,
String target,
Map<String,String> properties,
long timeout)
Create JDBC resource.
|
getCommand, retry
private static final String COMMAND
private static final String ERROR_MESSAGE
final String connectionPoolId
final String jndiName
final String target
server | Deploys the component to the default server instance. This is the default value. |
domain | Deploys the component to the domain. |
cluster_name | Deploys the component to every server instance in the cluster. |
instance_name | Deploys the component to a particular sever instance. |
public CommandCreateJDBCResource(String connectionPoolId, String jndiName, String target, Map<String,String> properties)
connectionPoolId
- Connection pool unique name (and ID).jndiName
- The JNDI name of this JDBC resource.target
- Specify the target to which you are deploying.properties
- Optional properties for configuring the resource.public static ResultString createJDBCResource(GlassFishServer server, String connectionPoolId, String jndiName, String target, Map<String,String> properties) throws GlassFishIdeException
server
- GlassFish server entity.connectionPoolId
- Connection pool unique name (and ID).jndiName
- The JNDI name of this JDBC resource.target
- Helps specify the target to which you
are deploying.properties
- Optional properties for configuring the pool.GlassFishIdeException
- When error occurred during administration
command execution.public static ResultString createJDBCResource(GlassFishServer server, String connectionPoolId, String jndiName, String target, Map<String,String> properties, long timeout) throws GlassFishIdeException
server
- GlassFish server entity.connectionPoolId
- Connection pool unique name (and ID).jndiName
- The JNDI name of this JDBC resource.target
- Helps specify the target to which you
are deploying.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.