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

HealthChecker

public class HealthChecker extends com.sun.enterprise.config.ConfigBean implements Serializable
This generated bean class HealthChecker matches the DTD element health-checker

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



	  
		this(Common.USE_DEFAULT_VALUES);
	
public HealthChecker(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("HealthChecker\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.URL)) return "/".trim();
		if(attr.equals(ServerTags.INTERVAL_IN_SECONDS)) return "30".trim();
		if(attr.equals(ServerTags.TIMEOUT_IN_SECONDS)) return "10".trim();
	return null;
	
public static java.lang.StringgetDefaultIntervalInSeconds()
Get the default value of IntervalInSeconds from dtd

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

		return "10".trim();
	
public static java.lang.StringgetDefaultUrl()
Get the default value of Url from dtd

		return "/".trim();
	
public java.lang.StringgetIntervalInSeconds()
Getter for IntervalInSeconds of the Element health-checker

return
the IntervalInSeconds of the Element health-checker

		return getAttributeValue(ServerTags.INTERVAL_IN_SECONDS);
	
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 = "health-checker";
	    return (null != ret ? ret.trim() : null);
	
public java.lang.StringgetTimeoutInSeconds()
Getter for TimeoutInSeconds of the Element health-checker

return
the TimeoutInSeconds of the Element health-checker

		return getAttributeValue(ServerTags.TIMEOUT_IN_SECONDS);
	
public java.lang.StringgetUrl()
Getter for Url of the Element health-checker

return
the Url of the Element health-checker

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


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

		comparators.remove(c);
	
public voidsetIntervalInSeconds(java.lang.String v)
Modify the IntervalInSeconds of the Element health-checker

param
v the new value

		setAttributeValue(ServerTags.INTERVAL_IN_SECONDS, v);
	
public voidsetIntervalInSeconds(java.lang.String v, boolean overwrite)
Modify the IntervalInSeconds of the Element health-checker

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

		setAttributeValue(ServerTags.INTERVAL_IN_SECONDS, v, overwrite);
	
public voidsetTimeoutInSeconds(java.lang.String v, boolean overwrite)
Modify the TimeoutInSeconds of the Element health-checker

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 health-checker

param
v the new value

		setAttributeValue(ServerTags.TIMEOUT_IN_SECONDS, v);
	
public voidsetUrl(java.lang.String v, boolean overwrite)
Modify the Url of the Element health-checker

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

		setAttributeValue(ServerTags.URL, v, overwrite);
	
public voidsetUrl(java.lang.String v)
Modify the Url of the Element health-checker

param
v the new value

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