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 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;
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.String | dumpBeanNode()
StringBuffer str = new StringBuffer();
str.append("ClusterRef\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.LB_POLICY)) return "round-robin".trim();
return null;
|
public static java.lang.String | getDefaultLbPolicy()Get the default value of LbPolicy from dtd
return "round-robin".trim();
|
public HealthChecker | getHealthChecker()
return (HealthChecker)this.getValue(HEALTH_CHECKER);
|
public java.lang.String | getLbPolicy()Getter for LbPolicy of the Element cluster-ref
return getAttributeValue(ServerTags.LB_POLICY);
|
public java.lang.String | getLbPolicyModule()Getter for LbPolicyModule of the Element cluster-ref
return getAttributeValue(ServerTags.LB_POLICY_MODULE);
|
public java.lang.String | getRef()Getter for Ref of the Element cluster-ref
return getAttributeValue(ServerTags.REF);
|
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 = "cluster-ref" + (canHaveSiblings() ? "[@ref='" + getAttributeValue("ref") +"']" : "") ;
return (null != ret ? ret.trim() : null);
|
void | initialize(int options)
|
public HealthChecker | newHealthChecker()Create a new bean using it's default constructor.
This does not add it to any bean graph.
return new HealthChecker();
|
public static void | removeComparator(org.netbeans.modules.schema2beans.BeanComparator c)
comparators.remove(c);
|
public void | setHealthChecker(HealthChecker value)
this.setValue(HEALTH_CHECKER, value);
|
public void | setLbPolicy(java.lang.String v, boolean overwrite)Modify the LbPolicy of the Element cluster-ref
setAttributeValue(ServerTags.LB_POLICY, v, overwrite);
|
public void | setLbPolicy(java.lang.String v)Modify the LbPolicy of the Element cluster-ref
setAttributeValue(ServerTags.LB_POLICY, v);
|
public void | setLbPolicyModule(java.lang.String v, boolean overwrite)Modify the LbPolicyModule of the Element cluster-ref
setAttributeValue(ServerTags.LB_POLICY_MODULE, v, overwrite);
|
public void | setLbPolicyModule(java.lang.String v)Modify the LbPolicyModule of the Element cluster-ref
setAttributeValue(ServerTags.LB_POLICY_MODULE, v);
|
public void | setRef(java.lang.String v, boolean overwrite)Modify the Ref of the Element cluster-ref
setAttributeValue(ServerTags.REF, v, overwrite);
|
public void | setRef(java.lang.String v)Modify the Ref of the Element cluster-ref
setAttributeValue(ServerTags.REF, v);
|
public void | validate()
|