FileDocCategorySizeDatePackage
BeanPool.javaAPI DocGlassfish v2 API34529Fri May 04 22:34:40 BST 2007com.sun.enterprise.tools.common.dd.ejb

BeanPool

public class BeanPool extends com.sun.enterprise.tools.common.dd.SunBaseBean
This generated bean class BeanPool matches the schema element bean-pool Generated on Wed Aug 13 10:43:32 PDT 2003

Fields Summary
static Vector
comparators
public static final String
STEADY_POOL_SIZE
public static final String
RESIZE_QUANTITY
public static final String
MAX_POOL_SIZE
public static final String
POOL_IDLE_TIMEOUT_IN_SECONDS
public static final String
MAX_WAIT_TIME_IN_MILLIS
Constructors Summary
public BeanPool()

	// NOI18N

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

		super(comparators, new org.netbeans.modules.schema2beans.Version(1, 2, 0));
		// Properties (see root bean comments for the bean graph)
		this.createProperty("steady-pool-size", 	// NOI18N
			STEADY_POOL_SIZE, 
			Common.TYPE_0_1 | Common.TYPE_STRING | Common.TYPE_KEY, 
			String.class);
		this.createProperty("resize-quantity", 	// NOI18N
			RESIZE_QUANTITY, 
			Common.TYPE_0_1 | Common.TYPE_STRING | Common.TYPE_KEY, 
			String.class);
		this.createProperty("max-pool-size", 	// NOI18N
			MAX_POOL_SIZE, 
			Common.TYPE_0_1 | Common.TYPE_STRING | Common.TYPE_KEY, 
			String.class);
		this.createProperty("pool-idle-timeout-in-seconds", 	// NOI18N
			POOL_IDLE_TIMEOUT_IN_SECONDS, 
			Common.TYPE_0_1 | Common.TYPE_STRING | Common.TYPE_KEY, 
			String.class);
		this.createProperty("max-wait-time-in-millis", 	// NOI18N
			MAX_WAIT_TIME_IN_MILLIS, 
			Common.TYPE_0_1 | Common.TYPE_STRING | Common.TYPE_KEY, 
			String.class);
		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;
		str.append(indent);
		str.append("SteadyPoolSize");	// NOI18N
		str.append(indent+"\t");	// NOI18N
		str.append("<");	// NOI18N
		s = this.getSteadyPoolSize();
		str.append((s==null?"null":s.trim()));	// NOI18N
		str.append(">\n");	// NOI18N
		this.dumpAttributes(STEADY_POOL_SIZE, 0, str, indent);

		str.append(indent);
		str.append("ResizeQuantity");	// NOI18N
		str.append(indent+"\t");	// NOI18N
		str.append("<");	// NOI18N
		s = this.getResizeQuantity();
		str.append((s==null?"null":s.trim()));	// NOI18N
		str.append(">\n");	// NOI18N
		this.dumpAttributes(RESIZE_QUANTITY, 0, str, indent);

		str.append(indent);
		str.append("MaxPoolSize");	// NOI18N
		str.append(indent+"\t");	// NOI18N
		str.append("<");	// NOI18N
		s = this.getMaxPoolSize();
		str.append((s==null?"null":s.trim()));	// NOI18N
		str.append(">\n");	// NOI18N
		this.dumpAttributes(MAX_POOL_SIZE, 0, str, indent);

		str.append(indent);
		str.append("PoolIdleTimeoutInSeconds");	// NOI18N
		str.append(indent+"\t");	// NOI18N
		str.append("<");	// NOI18N
		s = this.getPoolIdleTimeoutInSeconds();
		str.append((s==null?"null":s.trim()));	// NOI18N
		str.append(">\n");	// NOI18N
		this.dumpAttributes(POOL_IDLE_TIMEOUT_IN_SECONDS, 0, str, indent);

		str.append(indent);
		str.append("MaxWaitTimeInMillis");	// NOI18N
		str.append(indent+"\t");	// NOI18N
		str.append("<");	// NOI18N
		s = this.getMaxWaitTimeInMillis();
		str.append((s==null?"null":s.trim()));	// NOI18N
		str.append(">\n");	// NOI18N
		this.dumpAttributes(MAX_WAIT_TIME_IN_MILLIS, 0, str, indent);

	
public java.lang.StringdumpBeanNode()

		StringBuffer str = new StringBuffer();
		str.append("BeanPool\n");	// NOI18N
		this.dump(str, "\n  ");	// NOI18N
		return str.toString();
	
public java.lang.StringgetMaxPoolSize()

		return (String)this.getValue(MAX_POOL_SIZE);
	
public java.lang.StringgetMaxWaitTimeInMillis()

		return (String)this.getValue(MAX_WAIT_TIME_IN_MILLIS);
	
public java.lang.StringgetPoolIdleTimeoutInSeconds()

		return (String)this.getValue(POOL_IDLE_TIMEOUT_IN_SECONDS);
	
public java.lang.StringgetResizeQuantity()

		return (String)this.getValue(RESIZE_QUANTITY);
	
public java.lang.StringgetSteadyPoolSize()

		return (String)this.getValue(STEADY_POOL_SIZE);
	
voidinitialize(int options)

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

		comparators.remove(c);
	
public voidsetMaxPoolSize(java.lang.String value)

		this.setValue(MAX_POOL_SIZE, value);
	
public voidsetMaxWaitTimeInMillis(java.lang.String value)

		this.setValue(MAX_WAIT_TIME_IN_MILLIS, value);
	
public voidsetPoolIdleTimeoutInSeconds(java.lang.String value)

		this.setValue(POOL_IDLE_TIMEOUT_IN_SECONDS, value);
	
public voidsetResizeQuantity(java.lang.String value)

		this.setValue(RESIZE_QUANTITY, value);
	
public voidsetSteadyPoolSize(java.lang.String value)

		this.setValue(STEADY_POOL_SIZE, value);
	
public voidvalidate()

		boolean restrictionFailure = false;
		// Validating property steadyPoolSize
		if (getSteadyPoolSize() != null) {
		}
		// Validating property resizeQuantity
		if (getResizeQuantity() != null) {
		}
		// Validating property maxPoolSize
		if (getMaxPoolSize() != null) {
		}
		// Validating property poolIdleTimeoutInSeconds
		if (getPoolIdleTimeoutInSeconds() != null) {
		}
		// Validating property maxWaitTimeInMillis
		if (getMaxWaitTimeInMillis() != null) {
		}