BeanPoolpublic 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 void | addComparator(org.netbeans.modules.schema2beans.BeanComparator c)
comparators.add(c);
| public void | dump(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.String | dumpBeanNode()
StringBuffer str = new StringBuffer();
str.append("BeanPool\n"); // NOI18N
this.dump(str, "\n "); // NOI18N
return str.toString();
| public java.lang.String | getMaxPoolSize()
return (String)this.getValue(MAX_POOL_SIZE);
| public java.lang.String | getMaxWaitTimeInMillis()
return (String)this.getValue(MAX_WAIT_TIME_IN_MILLIS);
| public java.lang.String | getPoolIdleTimeoutInSeconds()
return (String)this.getValue(POOL_IDLE_TIMEOUT_IN_SECONDS);
| public java.lang.String | getResizeQuantity()
return (String)this.getValue(RESIZE_QUANTITY);
| public java.lang.String | getSteadyPoolSize()
return (String)this.getValue(STEADY_POOL_SIZE);
| void | initialize(int options)
| public static void | removeComparator(org.netbeans.modules.schema2beans.BeanComparator c)
comparators.remove(c);
| public void | setMaxPoolSize(java.lang.String value)
this.setValue(MAX_POOL_SIZE, value);
| public void | setMaxWaitTimeInMillis(java.lang.String value)
this.setValue(MAX_WAIT_TIME_IN_MILLIS, value);
| public void | setPoolIdleTimeoutInSeconds(java.lang.String value)
this.setValue(POOL_IDLE_TIMEOUT_IN_SECONDS, value);
| public void | setResizeQuantity(java.lang.String value)
this.setValue(RESIZE_QUANTITY, value);
| public void | setSteadyPoolSize(java.lang.String value)
this.setValue(STEADY_POOL_SIZE, value);
| public void | validate()
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) {
}
|
|