FileDocCategorySizeDatePackage
ThreadPoolConfigFactory.javaAPI DocGlassfish v2 API4300Fri May 04 22:23:20 BST 2007com.sun.enterprise.management.config

ThreadPoolConfigFactory

public final class ThreadPoolConfigFactory extends ConfigFactory
Configuration for the <thread-pools> element.

Fields Summary
private final Set
LEGAL_OPTIONAL_KEYS
Constructors Summary
public ThreadPoolConfigFactory(ConfigFactoryCallback callbacks)

		super( callbacks );
	
Methods Summary
public javax.management.ObjectNamecreate(java.lang.String name, java.util.Map optional)
Create a new <thread-pool>

param
name name of the <thread-pool> (thread-pool-id)
param
optional
return
ObjectName of the newly-created ThreadPoolConfig

		final Map<String,String> params	= initParams( name, null, optional );
		
		final ObjectName	amxName	= createNamedChild( name, params );
		
		return( amxName );
	
protected javax.management.ObjectNamecreateOldChildConfig(javax.management.AttributeList translatedAttrs)

		final ObjectName	objectName	=
				getOldThreadPoolsConfigMBean().createThreadPool( translatedAttrs );
		
		return( objectName );
	
protected java.util.SetgetLegalOptionalCreateKeys()

	
	     
	
	
		return( LEGAL_OPTIONAL_KEYS );
	
private com.sun.enterprise.management.support.oldconfig.OldThreadPoolsConfigMBeangetOldThreadPoolsConfigMBean()

		return getOldConfigProxies().getOldThreadPoolsConfigMBean( getConfigName() );
	
protected java.util.MapgetParamNameOverrides()

		return( MapUtil.newMap( CONFIG_NAME_KEY, "thread-pool-id" ) );
	
public voidinternalRemove(javax.management.ObjectName objectName)

		final String	name	= Util.getName( objectName );
		
		getOldThreadPoolsConfigMBean().removeThreadPoolByThreadPoolId( name );