FileDocCategorySizeDatePackage
ConnectorConnectionPoolConfigTest.javaAPI DocGlassfish v2 API4790Fri May 04 22:23:54 BST 2007com.sun.enterprise.management.config

ConnectorConnectionPoolConfigTest

public final class ConnectorConnectionPoolConfigTest extends ConfigMgrTestBase

Fields Summary
private static final String
CONNECTOR_DEF_NAME
private static final String
RESOURCE_ADAPTOR_NAME
private static final Map
OPTIONS
Constructors Summary
public ConnectorConnectionPoolConfigTest()


     
    
	    if ( checkNotOffline( "ensureDefaultInstance" ) )
	    {
	        ensureDefaultInstance( getDomainConfig() );
	    }
    
Methods Summary
public static com.sun.appserv.management.config.ConnectorConnectionPoolConfigcreateInstance(com.sun.appserv.management.config.DomainConfig dc, java.lang.String name, java.lang.String resourceAdapterName, java.lang.String connectorDefinitionName, java.util.Map optional)

	    return dc.createConnectorConnectionPoolConfig( name,
	            connectorDefinitionName, resourceAdapterName, optional );
	
protected final com.sun.appserv.management.config.AMXConfigcreateProgeny(java.lang.String name, java.util.Map options)

		final Map<String,String>	allOptions	= MapUtil.newMap( OPTIONS, options );
		
	    final ConnectorConnectionPoolConfig	config	=
	    	getDomainConfig().createConnectorConnectionPoolConfig(
		               name,
		               RESOURCE_ADAPTOR_NAME,
		               CONNECTOR_DEF_NAME, allOptions);
		return( config );
	
public static com.sun.appserv.management.config.ConnectorConnectionPoolConfigensureDefaultInstance(com.sun.appserv.management.config.DomainConfig dc)

	    ConnectorConnectionPoolConfig result =
	        dc.getConnectorConnectionPoolConfigMap().get( getDefaultInstanceName() );
	    
	    if ( result == null )
	    {
	        result  = createInstance( dc, getDefaultInstanceName(),
	            ResourceAdapterConfigTest.ensureDefaultInstance( dc ).getName(),
	            CONNECTOR_DEF_NAME, OPTIONS);
	    }
	    
	    return result;
	
public static java.lang.StringgetDefaultInstanceName()

        return getDefaultInstanceName( "ConnectorConnectionPoolConfig" );
    
protected com.sun.appserv.management.base.ContainergetProgenyContainer()

		return getDomainConfig();
	
protected java.lang.StringgetProgenyJ2EEType()

		return XTypes.CONNECTOR_CONNECTION_POOL_CONFIG;
	
protected voidremoveProgeny(java.lang.String name)

		getDomainConfig().removeConnectorConnectionPoolConfig( name );