FileDocCategorySizeDatePackage
ThreadPool.javaAPI DocGlassfish v2 API8048Tue Feb 21 12:28:22 GMT 2006com.sun.enterprise.config.serverbeans

ThreadPool

public class ThreadPool extends com.sun.enterprise.config.ConfigBean implements Serializable
This generated bean class ThreadPool matches the DTD element thread-pool

Fields Summary
static Vector
comparators
private static final org.netbeans.modules.schema2beans.Version
runtimeVersion
Constructors Summary
public ThreadPool()



	  
		this(Common.USE_DEFAULT_VALUES);
	
public ThreadPool(int options)

		super(comparators, runtimeVersion);
		// Properties (see root bean comments for the bean graph)
		initPropertyTables(0);
		this.initialize(options);
	
Methods Summary
public static voidaddComparator(org.netbeans.modules.schema2beans.BeanComparator c)

		comparators.add(c);
	
public voiddump(java.lang.StringBuffer str, java.lang.String indent)

		String s;
		Object o;
		org.netbeans.modules.schema2beans.BaseBean n;
	
public java.lang.StringdumpBeanNode()

		StringBuffer str = new StringBuffer();
		str.append("ThreadPool\n");	// NOI18N
		this.dump(str, "\n  ");	// NOI18N
		return str.toString();
	
public static java.lang.StringgetDefaultAttributeValue(java.lang.String attr)

		if(attr == null) return null;
		attr = attr.trim();
		if(attr.equals(ServerTags.MIN_THREAD_POOL_SIZE)) return "0".trim();
		if(attr.equals(ServerTags.MAX_THREAD_POOL_SIZE)) return "200".trim();
		if(attr.equals(ServerTags.IDLE_THREAD_TIMEOUT_IN_SECONDS)) return "120".trim();
		if(attr.equals(ServerTags.NUM_WORK_QUEUES)) return "1".trim();
	return null;
	
public static java.lang.StringgetDefaultIdleThreadTimeoutInSeconds()
Get the default value of IdleThreadTimeoutInSeconds from dtd

		return "120".trim();
	
public static java.lang.StringgetDefaultMaxThreadPoolSize()
Get the default value of MaxThreadPoolSize from dtd

		return "200".trim();
	
public static java.lang.StringgetDefaultMinThreadPoolSize()
Get the default value of MinThreadPoolSize from dtd

		return "0".trim();
	
public static java.lang.StringgetDefaultNumWorkQueues()
Get the default value of NumWorkQueues from dtd

		return "1".trim();
	
public java.lang.StringgetIdleThreadTimeoutInSeconds()
Getter for IdleThreadTimeoutInSeconds of the Element thread-pool

return
the IdleThreadTimeoutInSeconds of the Element thread-pool

		return getAttributeValue(ServerTags.IDLE_THREAD_TIMEOUT_IN_SECONDS);
	
public java.lang.StringgetMaxThreadPoolSize()
Getter for MaxThreadPoolSize of the Element thread-pool

return
the MaxThreadPoolSize of the Element thread-pool

		return getAttributeValue(ServerTags.MAX_THREAD_POOL_SIZE);
	
public java.lang.StringgetMinThreadPoolSize()
Getter for MinThreadPoolSize of the Element thread-pool

return
the MinThreadPoolSize of the Element thread-pool

		return getAttributeValue(ServerTags.MIN_THREAD_POOL_SIZE);
	
public java.lang.StringgetNumWorkQueues()
Getter for NumWorkQueues of the Element thread-pool

return
the NumWorkQueues of the Element thread-pool

		return getAttributeValue(ServerTags.NUM_WORK_QUEUES);
	
protected java.lang.StringgetRelativeXPath()
get the xpath representation for this element returns something like abc[@name='value'] or abc depending on the type of the bean

	    String ret = null;
	    ret = "thread-pool" + (canHaveSiblings() ? "[@thread-pool-id='" + getAttributeValue("thread-pool-id") +"']" : "") ;
	    return (null != ret ? ret.trim() : null);
	
public java.lang.StringgetThreadPoolId()
Getter for ThreadPoolId of the Element thread-pool

return
the ThreadPoolId of the Element thread-pool

		return getAttributeValue(ServerTags.THREAD_POOL_ID);
	
voidinitialize(int options)


	
public static voidremoveComparator(org.netbeans.modules.schema2beans.BeanComparator c)

		comparators.remove(c);
	
public voidsetIdleThreadTimeoutInSeconds(java.lang.String v, boolean overwrite)
Modify the IdleThreadTimeoutInSeconds of the Element thread-pool

param
v the new value
throws
StaleWriteConfigException if overwrite is false and file changed on disk

		setAttributeValue(ServerTags.IDLE_THREAD_TIMEOUT_IN_SECONDS, v, overwrite);
	
public voidsetIdleThreadTimeoutInSeconds(java.lang.String v)
Modify the IdleThreadTimeoutInSeconds of the Element thread-pool

param
v the new value

		setAttributeValue(ServerTags.IDLE_THREAD_TIMEOUT_IN_SECONDS, v);
	
public voidsetMaxThreadPoolSize(java.lang.String v, boolean overwrite)
Modify the MaxThreadPoolSize of the Element thread-pool

param
v the new value
throws
StaleWriteConfigException if overwrite is false and file changed on disk

		setAttributeValue(ServerTags.MAX_THREAD_POOL_SIZE, v, overwrite);
	
public voidsetMaxThreadPoolSize(java.lang.String v)
Modify the MaxThreadPoolSize of the Element thread-pool

param
v the new value

		setAttributeValue(ServerTags.MAX_THREAD_POOL_SIZE, v);
	
public voidsetMinThreadPoolSize(java.lang.String v, boolean overwrite)
Modify the MinThreadPoolSize of the Element thread-pool

param
v the new value
throws
StaleWriteConfigException if overwrite is false and file changed on disk

		setAttributeValue(ServerTags.MIN_THREAD_POOL_SIZE, v, overwrite);
	
public voidsetMinThreadPoolSize(java.lang.String v)
Modify the MinThreadPoolSize of the Element thread-pool

param
v the new value

		setAttributeValue(ServerTags.MIN_THREAD_POOL_SIZE, v);
	
public voidsetNumWorkQueues(java.lang.String v, boolean overwrite)
Modify the NumWorkQueues of the Element thread-pool

param
v the new value
throws
StaleWriteConfigException if overwrite is false and file changed on disk

		setAttributeValue(ServerTags.NUM_WORK_QUEUES, v, overwrite);
	
public voidsetNumWorkQueues(java.lang.String v)
Modify the NumWorkQueues of the Element thread-pool

param
v the new value

		setAttributeValue(ServerTags.NUM_WORK_QUEUES, v);
	
public voidsetThreadPoolId(java.lang.String v, boolean overwrite)
Modify the ThreadPoolId of the Element thread-pool

param
v the new value
throws
StaleWriteConfigException if overwrite is false and file changed on disk

		setAttributeValue(ServerTags.THREAD_POOL_ID, v, overwrite);
	
public voidsetThreadPoolId(java.lang.String v)
Modify the ThreadPoolId of the Element thread-pool

param
v the new value

		setAttributeValue(ServerTags.THREAD_POOL_ID, v);
	
public voidvalidate()