Methods Summary |
---|
public static com.sun.appserv.management.config.JDBCResourceConfig | createInstance(com.sun.appserv.management.config.DomainConfig domainConfig, java.lang.String name, java.lang.String datasourceClassname, java.util.Map optional)
return domainConfig.createJDBCResourceConfig(
name, datasourceClassname, optional );
|
private com.sun.appserv.management.config.JDBCConnectionPoolConfig | createPool(java.lang.String name)
try
{
getDomainConfig().removeJDBCConnectionPoolConfig( name );
}
catch( Exception e )
{
}
final JDBCConnectionPoolConfig config =
getDomainConfig().createJDBCConnectionPoolConfig( name, JDBC_DATASOURCE_CLASSNAME, null );
return( config );
|
protected final com.sun.appserv.management.config.AMXConfig | createProgeny(java.lang.String name, java.util.Map options)
mPool = createPool( name + "-temppool" );
final JDBCResourceConfig config =
getDomainConfig().createJDBCResourceConfig( name, mPool.getName(), options);
assert( config != null );
addReference( config );
return( config );
|
public static com.sun.appserv.management.config.JDBCResourceConfig | ensureDefaultInstance(com.sun.appserv.management.config.DomainConfig domainConfig)
JDBCResourceConfig result =
domainConfig.getJDBCResourceConfigMap().get( getDefaultInstanceName() );
if ( result == null )
{
final JDBCConnectionPoolConfig pool =
JDBCConnectionPoolConfigTest.ensureDefaultInstance( domainConfig );
result = createInstance( domainConfig,
getDefaultInstanceName(), pool.getName(), OPTIONAL );
}
return result;
|
public static java.lang.String | getDefaultInstanceName()
return getDefaultInstanceName( "JDBCResourceConfig" );
|
protected com.sun.appserv.management.base.Container | getProgenyContainer()
return getDomainConfig();
|
protected java.lang.String | getProgenyJ2EEType()
return XTypes.JDBC_RESOURCE_CONFIG;
|
protected java.lang.String | getProgenyTestName()
return( "jdbc/JDBCResourceConfigMgrTest" );
|
protected final void | remove(java.lang.String name)
getDomainConfig().removeJDBCResourceConfig( name );
if ( mPool != null )
{
getDomainConfig().removeJDBCConnectionPoolConfig( mPool.getName() );
mPool = null;
}
|
protected void | removeProgeny(java.lang.String name)
getDomainConfig().removeJDBCConnectionPoolConfig( name );
|