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

ClusterRef

public class ClusterRef extends com.sun.enterprise.config.ConfigBean implements Serializable
This generated bean class ClusterRef matches the DTD element cluster-ref

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


	  
		this(Common.USE_DEFAULT_VALUES);
	
public ClusterRef(int options)

		super(comparators, runtimeVersion);
		// Properties (see root bean comments for the bean graph)
		initPropertyTables(1);
		this.createProperty("health-checker", HEALTH_CHECKER, 
			Common.TYPE_0_1 | Common.TYPE_BEAN | Common.TYPE_KEY, 
			HealthChecker.class);
		this.createAttribute(HEALTH_CHECKER, "url", "Url", 
						AttrProp.CDATA,
						null, "/");
		this.createAttribute(HEALTH_CHECKER, "interval-in-seconds", "IntervalInSeconds", 
						AttrProp.CDATA,
						null, "30");
		this.createAttribute(HEALTH_CHECKER, "timeout-in-seconds", "TimeoutInSeconds", 
						AttrProp.CDATA,
						null, "10");
		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;
		str.append(indent);
		str.append("HealthChecker");	// NOI18N
		n = (org.netbeans.modules.schema2beans.BaseBean) this.getHealthChecker();
		if (n != null)
			n.dump(str, indent + "\t");	// NOI18N
		else
			str.append(indent+"\tnull");	// NOI18N
		this.dumpAttributes(HEALTH_CHECKER, 0, str, indent);

	
public java.lang.StringdumpBeanNode()

		StringBuffer str = new StringBuffer();
		str.append("ClusterRef\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.LB_POLICY)) return "round-robin".trim();
	return null;
	
public static java.lang.StringgetDefaultLbPolicy()
Get the default value of LbPolicy from dtd

		return "round-robin".trim();
	
public HealthCheckergetHealthChecker()

		return (HealthChecker)this.getValue(HEALTH_CHECKER);
	
public java.lang.StringgetLbPolicy()
Getter for LbPolicy of the Element cluster-ref

return
the LbPolicy of the Element cluster-ref

		return getAttributeValue(ServerTags.LB_POLICY);
	
public java.lang.StringgetLbPolicyModule()
Getter for LbPolicyModule of the Element cluster-ref

return
the LbPolicyModule of the Element cluster-ref

			return getAttributeValue(ServerTags.LB_POLICY_MODULE);
	
public java.lang.StringgetRef()
Getter for Ref of the Element cluster-ref

return
the Ref of the Element cluster-ref

		return getAttributeValue(ServerTags.REF);
	
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 = "cluster-ref" + (canHaveSiblings() ? "[@ref='" + getAttributeValue("ref") +"']" : "") ;
	    return (null != ret ? ret.trim() : null);
	
voidinitialize(int options)


	
public HealthCheckernewHealthChecker()
Create a new bean using it's default constructor. This does not add it to any bean graph.

		return new HealthChecker();
	
public static voidremoveComparator(org.netbeans.modules.schema2beans.BeanComparator c)

		comparators.remove(c);
	
public voidsetHealthChecker(HealthChecker value)

		this.setValue(HEALTH_CHECKER, value);
	
public voidsetLbPolicy(java.lang.String v, boolean overwrite)
Modify the LbPolicy of the Element cluster-ref

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

		setAttributeValue(ServerTags.LB_POLICY, v, overwrite);
	
public voidsetLbPolicy(java.lang.String v)
Modify the LbPolicy of the Element cluster-ref

param
v the new value

		setAttributeValue(ServerTags.LB_POLICY, v);
	
public voidsetLbPolicyModule(java.lang.String v, boolean overwrite)
Modify the LbPolicyModule of the Element cluster-ref

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

		setAttributeValue(ServerTags.LB_POLICY_MODULE, v, overwrite);
	
public voidsetLbPolicyModule(java.lang.String v)
Modify the LbPolicyModule of the Element cluster-ref

param
v the new value

		setAttributeValue(ServerTags.LB_POLICY_MODULE, v);
	
public voidsetRef(java.lang.String v, boolean overwrite)
Modify the Ref of the Element cluster-ref

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

		setAttributeValue(ServerTags.REF, v, overwrite);
	
public voidsetRef(java.lang.String v)
Modify the Ref of the Element cluster-ref

param
v the new value

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