FileDocCategorySizeDatePackage
KeepAlive.javaAPI DocGlassfish v2 API5994Tue Feb 21 12:28:18 GMT 2006com.sun.enterprise.config.serverbeans

KeepAlive

public class KeepAlive extends com.sun.enterprise.config.ConfigBean implements Serializable
This generated bean class KeepAlive matches the DTD element keep-alive

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



	  
		this(Common.USE_DEFAULT_VALUES);
	
public KeepAlive(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("KeepAlive\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.THREAD_COUNT)) return "1".trim();
		if(attr.equals(ServerTags.MAX_CONNECTIONS)) return "256".trim();
		if(attr.equals(ServerTags.TIMEOUT_IN_SECONDS)) return "30".trim();
	return null;
	
public static java.lang.StringgetDefaultMaxConnections()
Get the default value of MaxConnections from dtd

		return "256".trim();
	
public static java.lang.StringgetDefaultThreadCount()
Get the default value of ThreadCount from dtd

		return "1".trim();
	
public static java.lang.StringgetDefaultTimeoutInSeconds()
Get the default value of TimeoutInSeconds from dtd

		return "30".trim();
	
public java.lang.StringgetMaxConnections()
Getter for MaxConnections of the Element keep-alive

return
the MaxConnections of the Element keep-alive

		return getAttributeValue(ServerTags.MAX_CONNECTIONS);
	
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 = "keep-alive";
	    return (null != ret ? ret.trim() : null);
	
public java.lang.StringgetThreadCount()
Getter for ThreadCount of the Element keep-alive

return
the ThreadCount of the Element keep-alive

		return getAttributeValue(ServerTags.THREAD_COUNT);
	
public java.lang.StringgetTimeoutInSeconds()
Getter for TimeoutInSeconds of the Element keep-alive

return
the TimeoutInSeconds of the Element keep-alive

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


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

		comparators.remove(c);
	
public voidsetMaxConnections(java.lang.String v)
Modify the MaxConnections of the Element keep-alive

param
v the new value

		setAttributeValue(ServerTags.MAX_CONNECTIONS, v);
	
public voidsetMaxConnections(java.lang.String v, boolean overwrite)
Modify the MaxConnections of the Element keep-alive

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

		setAttributeValue(ServerTags.MAX_CONNECTIONS, v, overwrite);
	
public voidsetThreadCount(java.lang.String v, boolean overwrite)
Modify the ThreadCount of the Element keep-alive

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

		setAttributeValue(ServerTags.THREAD_COUNT, v, overwrite);
	
public voidsetThreadCount(java.lang.String v)
Modify the ThreadCount of the Element keep-alive

param
v the new value

		setAttributeValue(ServerTags.THREAD_COUNT, v);
	
public voidsetTimeoutInSeconds(java.lang.String v, boolean overwrite)
Modify the TimeoutInSeconds of the Element keep-alive

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

		setAttributeValue(ServerTags.TIMEOUT_IN_SECONDS, v, overwrite);
	
public voidsetTimeoutInSeconds(java.lang.String v)
Modify the TimeoutInSeconds of the Element keep-alive

param
v the new value

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