FileDocCategorySizeDatePackage
ThreadPoolConfigTest.javaAPI DocGlassfish v2 API4490Fri May 04 22:23:56 BST 2007com.sun.enterprise.management.config

ThreadPoolConfigTest

public final class ThreadPoolConfigTest extends ConfigMgrTestBase

Fields Summary
static final Map
OPTIONAL
Constructors Summary
public ThreadPoolConfigTest()

	
	
		OPTIONAL.put( ThreadPoolConfigKeys.MIN_THREAD_POOL_SIZE_KEY, "10" );
		OPTIONAL.put( ThreadPoolConfigKeys.MAX_THREAD_POOL_SIZE_KEY, "100" );
		OPTIONAL.put( ThreadPoolConfigKeys.IDLE_THREAD_TIMEOUT_IN_SECONDS_KEY, "120" );
		OPTIONAL.put( ThreadPoolConfigKeys.NUM_WORK_QUEUES_KEY, "10" );
	
	    if ( checkNotOffline( "ensureDefaultInstance" ) )
	    {
	        ensureDefaultInstance( getConfigConfig() );
	    }
	
Methods Summary
public static com.sun.appserv.management.config.ThreadPoolConfigcreateInstance(com.sun.appserv.management.config.ConfigConfig cc, java.lang.String name, java.util.Map optional)

	    return cc.createThreadPoolConfig( name, 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, OPTIONAL );
		
	    return getConfigConfig().createThreadPoolConfig(name, allOptions );
	
public static com.sun.appserv.management.config.ThreadPoolConfigensureDefaultInstance(com.sun.appserv.management.config.ConfigConfig cc)

	    ThreadPoolConfig result = cc.getThreadPoolConfigMap().get( getDefaultInstanceName() );
	    
	    if ( result == null )
	    {
	        result  = createInstance( cc, getDefaultInstanceName(), OPTIONAL);
	    }
	    
	    return result;
	
public static java.lang.StringgetDefaultInstanceName()

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

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

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

		getConfigConfig().removeThreadPoolConfig( name );