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;
|
public java.lang.String | dumpBeanNode()
StringBuffer str = new StringBuffer();
str.append("ThreadPool\n"); // NOI18N
this.dump(str, "\n "); // NOI18N
return str.toString();
|
public static java.lang.String | getDefaultAttributeValue(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.String | getDefaultIdleThreadTimeoutInSeconds()Get the default value of IdleThreadTimeoutInSeconds from dtd
return "120".trim();
|
public static java.lang.String | getDefaultMaxThreadPoolSize()Get the default value of MaxThreadPoolSize from dtd
return "200".trim();
|
public static java.lang.String | getDefaultMinThreadPoolSize()Get the default value of MinThreadPoolSize from dtd
return "0".trim();
|
public static java.lang.String | getDefaultNumWorkQueues()Get the default value of NumWorkQueues from dtd
return "1".trim();
|
public java.lang.String | getIdleThreadTimeoutInSeconds()Getter for IdleThreadTimeoutInSeconds of the Element thread-pool
return getAttributeValue(ServerTags.IDLE_THREAD_TIMEOUT_IN_SECONDS);
|
public java.lang.String | getMaxThreadPoolSize()Getter for MaxThreadPoolSize of the Element thread-pool
return getAttributeValue(ServerTags.MAX_THREAD_POOL_SIZE);
|
public java.lang.String | getMinThreadPoolSize()Getter for MinThreadPoolSize of the Element thread-pool
return getAttributeValue(ServerTags.MIN_THREAD_POOL_SIZE);
|
public java.lang.String | getNumWorkQueues()Getter for NumWorkQueues of the Element thread-pool
return getAttributeValue(ServerTags.NUM_WORK_QUEUES);
|
protected java.lang.String | getRelativeXPath()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.String | getThreadPoolId()Getter for ThreadPoolId of the Element thread-pool
return getAttributeValue(ServerTags.THREAD_POOL_ID);
|
void | initialize(int options)
|
public static void | removeComparator(org.netbeans.modules.schema2beans.BeanComparator c)
comparators.remove(c);
|
public void | setIdleThreadTimeoutInSeconds(java.lang.String v, boolean overwrite)Modify the IdleThreadTimeoutInSeconds of the Element thread-pool
setAttributeValue(ServerTags.IDLE_THREAD_TIMEOUT_IN_SECONDS, v, overwrite);
|
public void | setIdleThreadTimeoutInSeconds(java.lang.String v)Modify the IdleThreadTimeoutInSeconds of the Element thread-pool
setAttributeValue(ServerTags.IDLE_THREAD_TIMEOUT_IN_SECONDS, v);
|
public void | setMaxThreadPoolSize(java.lang.String v, boolean overwrite)Modify the MaxThreadPoolSize of the Element thread-pool
setAttributeValue(ServerTags.MAX_THREAD_POOL_SIZE, v, overwrite);
|
public void | setMaxThreadPoolSize(java.lang.String v)Modify the MaxThreadPoolSize of the Element thread-pool
setAttributeValue(ServerTags.MAX_THREAD_POOL_SIZE, v);
|
public void | setMinThreadPoolSize(java.lang.String v, boolean overwrite)Modify the MinThreadPoolSize of the Element thread-pool
setAttributeValue(ServerTags.MIN_THREAD_POOL_SIZE, v, overwrite);
|
public void | setMinThreadPoolSize(java.lang.String v)Modify the MinThreadPoolSize of the Element thread-pool
setAttributeValue(ServerTags.MIN_THREAD_POOL_SIZE, v);
|
public void | setNumWorkQueues(java.lang.String v, boolean overwrite)Modify the NumWorkQueues of the Element thread-pool
setAttributeValue(ServerTags.NUM_WORK_QUEUES, v, overwrite);
|
public void | setNumWorkQueues(java.lang.String v)Modify the NumWorkQueues of the Element thread-pool
setAttributeValue(ServerTags.NUM_WORK_QUEUES, v);
|
public void | setThreadPoolId(java.lang.String v, boolean overwrite)Modify the ThreadPoolId of the Element thread-pool
setAttributeValue(ServerTags.THREAD_POOL_ID, v, overwrite);
|
public void | setThreadPoolId(java.lang.String v)Modify the ThreadPoolId of the Element thread-pool
setAttributeValue(ServerTags.THREAD_POOL_ID, v);
|
public void | validate()
|