FileDocCategorySizeDatePackage
ConnectionPool.javaAPI DocGlassfish v2 API7375Tue Feb 21 12:28:16 GMT 2006com.sun.enterprise.config.serverbeans

ConnectionPool

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

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



	  
		this(Common.USE_DEFAULT_VALUES);
	
public ConnectionPool(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("ConnectionPool\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.QUEUE_SIZE_IN_BYTES)) return "4096".trim();
		if(attr.equals(ServerTags.MAX_PENDING_COUNT)) return "4096".trim();
		if(attr.equals(ServerTags.RECEIVE_BUFFER_SIZE_IN_BYTES)) return "4096".trim();
		if(attr.equals(ServerTags.SEND_BUFFER_SIZE_IN_BYTES)) return "8192".trim();
	return null;
	
public static java.lang.StringgetDefaultMaxPendingCount()
Get the default value of MaxPendingCount from dtd

		return "4096".trim();
	
public static java.lang.StringgetDefaultQueueSizeInBytes()
Get the default value of QueueSizeInBytes from dtd

		return "4096".trim();
	
public static java.lang.StringgetDefaultReceiveBufferSizeInBytes()
Get the default value of ReceiveBufferSizeInBytes from dtd

		return "4096".trim();
	
public static java.lang.StringgetDefaultSendBufferSizeInBytes()
Get the default value of SendBufferSizeInBytes from dtd

		return "8192".trim();
	
public java.lang.StringgetMaxPendingCount()
Getter for MaxPendingCount of the Element connection-pool

return
the MaxPendingCount of the Element connection-pool

		return getAttributeValue(ServerTags.MAX_PENDING_COUNT);
	
public java.lang.StringgetQueueSizeInBytes()
Getter for QueueSizeInBytes of the Element connection-pool

return
the QueueSizeInBytes of the Element connection-pool

		return getAttributeValue(ServerTags.QUEUE_SIZE_IN_BYTES);
	
public java.lang.StringgetReceiveBufferSizeInBytes()
Getter for ReceiveBufferSizeInBytes of the Element connection-pool

return
the ReceiveBufferSizeInBytes of the Element connection-pool

		return getAttributeValue(ServerTags.RECEIVE_BUFFER_SIZE_IN_BYTES);
	
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 = "connection-pool";
	    return (null != ret ? ret.trim() : null);
	
public java.lang.StringgetSendBufferSizeInBytes()
Getter for SendBufferSizeInBytes of the Element connection-pool

return
the SendBufferSizeInBytes of the Element connection-pool

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


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

		comparators.remove(c);
	
public voidsetMaxPendingCount(java.lang.String v)
Modify the MaxPendingCount of the Element connection-pool

param
v the new value

		setAttributeValue(ServerTags.MAX_PENDING_COUNT, v);
	
public voidsetMaxPendingCount(java.lang.String v, boolean overwrite)
Modify the MaxPendingCount of the Element connection-pool

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

		setAttributeValue(ServerTags.MAX_PENDING_COUNT, v, overwrite);
	
public voidsetQueueSizeInBytes(java.lang.String v, boolean overwrite)
Modify the QueueSizeInBytes of the Element connection-pool

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

		setAttributeValue(ServerTags.QUEUE_SIZE_IN_BYTES, v, overwrite);
	
public voidsetQueueSizeInBytes(java.lang.String v)
Modify the QueueSizeInBytes of the Element connection-pool

param
v the new value

		setAttributeValue(ServerTags.QUEUE_SIZE_IN_BYTES, v);
	
public voidsetReceiveBufferSizeInBytes(java.lang.String v, boolean overwrite)
Modify the ReceiveBufferSizeInBytes of the Element connection-pool

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

		setAttributeValue(ServerTags.RECEIVE_BUFFER_SIZE_IN_BYTES, v, overwrite);
	
public voidsetReceiveBufferSizeInBytes(java.lang.String v)
Modify the ReceiveBufferSizeInBytes of the Element connection-pool

param
v the new value

		setAttributeValue(ServerTags.RECEIVE_BUFFER_SIZE_IN_BYTES, v);
	
public voidsetSendBufferSizeInBytes(java.lang.String v, boolean overwrite)
Modify the SendBufferSizeInBytes of the Element connection-pool

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

		setAttributeValue(ServerTags.SEND_BUFFER_SIZE_IN_BYTES, v, overwrite);
	
public voidsetSendBufferSizeInBytes(java.lang.String v)
Modify the SendBufferSizeInBytes of the Element connection-pool

param
v the new value

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