FileDocCategorySizeDatePackage
GroupManagementService.javaAPI DocGlassfish v2 API13494Fri May 26 10:47:06 BST 2006com.sun.enterprise.config.serverbeans

GroupManagementService

public class GroupManagementService extends com.sun.enterprise.config.ConfigBean implements Serializable
This generated bean class GroupManagementService matches the DTD element group-management-service

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


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

		super(comparators, runtimeVersion);
		// Properties (see root bean comments for the bean graph)
		initPropertyTables(1);
		this.createProperty("property", ELEMENT_PROPERTY, 
			Common.TYPE_0_N | Common.TYPE_BEAN | Common.TYPE_KEY, 
			ElementProperty.class);
		this.createAttribute(ELEMENT_PROPERTY, "name", "Name", 
						AttrProp.CDATA | AttrProp.REQUIRED,
						null, null);
		this.createAttribute(ELEMENT_PROPERTY, "value", "Value", 
						AttrProp.CDATA | AttrProp.REQUIRED,
						null, null);
		this.initialize(options);
	
Methods Summary
public static voidaddComparator(org.netbeans.modules.schema2beans.BeanComparator c)

		comparators.add(c);
	
public intaddElementProperty(ElementProperty value)

		return addElementProperty(value, true);
	
public intaddElementProperty(ElementProperty value, boolean overwrite)

		ElementProperty old = getElementPropertyByName(value.getName());
		if(old != null) {
			throw new ConfigException(StringManager.getManager(GroupManagementService.class).getString("cannotAddDuplicate",  "ElementProperty"));
		}
		return this.addValue(ELEMENT_PROPERTY, value, overwrite);
	
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("ElementProperty["+this.sizeElementProperty()+"]");	// NOI18N
		for(int i=0; i<this.sizeElementProperty(); i++)
		{
			str.append(indent+"\t");
			str.append("#"+i+":");
			n = (org.netbeans.modules.schema2beans.BaseBean) this.getElementProperty(i);
			if (n != null)
				n.dump(str, indent + "\t");	// NOI18N
			else
				str.append(indent+"\tnull");	// NOI18N
			this.dumpAttributes(ELEMENT_PROPERTY, i, str, indent);
		}

	
public java.lang.StringdumpBeanNode()

		StringBuffer str = new StringBuffer();
		str.append("GroupManagementService\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.FD_PROTOCOL_MAX_TRIES)) return "3".trim();
		if(attr.equals(ServerTags.FD_PROTOCOL_TIMEOUT_IN_MILLIS)) return "2000".trim();
		if(attr.equals(ServerTags.MERGE_PROTOCOL_MAX_INTERVAL_IN_MILLIS)) return "10000".trim();
		if(attr.equals(ServerTags.MERGE_PROTOCOL_MIN_INTERVAL_IN_MILLIS)) return "5000".trim();
		if(attr.equals(ServerTags.PING_PROTOCOL_TIMEOUT_IN_MILLIS)) return "2000".trim();
		if(attr.equals(ServerTags.VS_PROTOCOL_TIMEOUT_IN_MILLIS)) return "1500".trim();
	return null;
	
public static java.lang.StringgetDefaultFdProtocolMaxTries()
Get the default value of FdProtocolMaxTries from dtd

		return "3".trim();
	
public static java.lang.StringgetDefaultFdProtocolTimeoutInMillis()
Get the default value of FdProtocolTimeoutInMillis from dtd

		return "2000".trim();
	
public static java.lang.StringgetDefaultMergeProtocolMaxIntervalInMillis()
Get the default value of MergeProtocolMaxIntervalInMillis from dtd

		return "10000".trim();
	
public static java.lang.StringgetDefaultMergeProtocolMinIntervalInMillis()
Get the default value of MergeProtocolMinIntervalInMillis from dtd

		return "5000".trim();
	
public static java.lang.StringgetDefaultPingProtocolTimeoutInMillis()
Get the default value of PingProtocolTimeoutInMillis from dtd

		return "2000".trim();
	
public static java.lang.StringgetDefaultVsProtocolTimeoutInMillis()
Get the default value of VsProtocolTimeoutInMillis from dtd

		return "1500".trim();
	
public ElementPropertygetElementProperty(int index)

		return (ElementProperty)this.getValue(ELEMENT_PROPERTY, index);
	
public ElementProperty[]getElementProperty()

		return (ElementProperty[])this.getValues(ELEMENT_PROPERTY);
	
public ElementPropertygetElementPropertyByName(java.lang.String id)

	 if (null != id) { id = id.trim(); }
	ElementProperty[] o = getElementProperty();
	 if (o == null) return null;

	 for (int i=0; i < o.length; i++) {
	     if(o[i].getAttributeValue(Common.convertName(ServerTags.NAME)).equals(id)) {
	         return o[i];
	     }
	 }

		return null;
		
	
public java.lang.StringgetFdProtocolMaxTries()
Getter for FdProtocolMaxTries of the Element group-management-service

return
the FdProtocolMaxTries of the Element group-management-service

		return getAttributeValue(ServerTags.FD_PROTOCOL_MAX_TRIES);
	
public java.lang.StringgetFdProtocolTimeoutInMillis()
Getter for FdProtocolTimeoutInMillis of the Element group-management-service

return
the FdProtocolTimeoutInMillis of the Element group-management-service

		return getAttributeValue(ServerTags.FD_PROTOCOL_TIMEOUT_IN_MILLIS);
	
public java.lang.StringgetMergeProtocolMaxIntervalInMillis()
Getter for MergeProtocolMaxIntervalInMillis of the Element group-management-service

return
the MergeProtocolMaxIntervalInMillis of the Element group-management-service

		return getAttributeValue(ServerTags.MERGE_PROTOCOL_MAX_INTERVAL_IN_MILLIS);
	
public java.lang.StringgetMergeProtocolMinIntervalInMillis()
Getter for MergeProtocolMinIntervalInMillis of the Element group-management-service

return
the MergeProtocolMinIntervalInMillis of the Element group-management-service

		return getAttributeValue(ServerTags.MERGE_PROTOCOL_MIN_INTERVAL_IN_MILLIS);
	
public java.lang.StringgetPingProtocolTimeoutInMillis()
Getter for PingProtocolTimeoutInMillis of the Element group-management-service

return
the PingProtocolTimeoutInMillis of the Element group-management-service

		return getAttributeValue(ServerTags.PING_PROTOCOL_TIMEOUT_IN_MILLIS);
	
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 = "group-management-service";
	    return (null != ret ? ret.trim() : null);
	
public java.lang.StringgetVsProtocolTimeoutInMillis()
Getter for VsProtocolTimeoutInMillis of the Element group-management-service

return
the VsProtocolTimeoutInMillis of the Element group-management-service

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


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

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

		comparators.remove(c);
	
public intremoveElementProperty(ElementProperty value)

		return this.removeValue(ELEMENT_PROPERTY, value);
	
public intremoveElementProperty(ElementProperty value, boolean overwrite)

		return this.removeValue(ELEMENT_PROPERTY, value, overwrite);
	
public voidsetElementProperty(ElementProperty[] value)

		this.setValue(ELEMENT_PROPERTY, value);
	
public voidsetFdProtocolMaxTries(java.lang.String v, boolean overwrite)
Modify the FdProtocolMaxTries of the Element group-management-service

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

		setAttributeValue(ServerTags.FD_PROTOCOL_MAX_TRIES, v, overwrite);
	
public voidsetFdProtocolMaxTries(java.lang.String v)
Modify the FdProtocolMaxTries of the Element group-management-service

param
v the new value

		setAttributeValue(ServerTags.FD_PROTOCOL_MAX_TRIES, v);
	
public voidsetFdProtocolTimeoutInMillis(java.lang.String v, boolean overwrite)
Modify the FdProtocolTimeoutInMillis of the Element group-management-service

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

		setAttributeValue(ServerTags.FD_PROTOCOL_TIMEOUT_IN_MILLIS, v, overwrite);
	
public voidsetFdProtocolTimeoutInMillis(java.lang.String v)
Modify the FdProtocolTimeoutInMillis of the Element group-management-service

param
v the new value

		setAttributeValue(ServerTags.FD_PROTOCOL_TIMEOUT_IN_MILLIS, v);
	
public voidsetMergeProtocolMaxIntervalInMillis(java.lang.String v, boolean overwrite)
Modify the MergeProtocolMaxIntervalInMillis of the Element group-management-service

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

		setAttributeValue(ServerTags.MERGE_PROTOCOL_MAX_INTERVAL_IN_MILLIS, v, overwrite);
	
public voidsetMergeProtocolMaxIntervalInMillis(java.lang.String v)
Modify the MergeProtocolMaxIntervalInMillis of the Element group-management-service

param
v the new value

		setAttributeValue(ServerTags.MERGE_PROTOCOL_MAX_INTERVAL_IN_MILLIS, v);
	
public voidsetMergeProtocolMinIntervalInMillis(java.lang.String v, boolean overwrite)
Modify the MergeProtocolMinIntervalInMillis of the Element group-management-service

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

		setAttributeValue(ServerTags.MERGE_PROTOCOL_MIN_INTERVAL_IN_MILLIS, v, overwrite);
	
public voidsetMergeProtocolMinIntervalInMillis(java.lang.String v)
Modify the MergeProtocolMinIntervalInMillis of the Element group-management-service

param
v the new value

		setAttributeValue(ServerTags.MERGE_PROTOCOL_MIN_INTERVAL_IN_MILLIS, v);
	
public voidsetPingProtocolTimeoutInMillis(java.lang.String v, boolean overwrite)
Modify the PingProtocolTimeoutInMillis of the Element group-management-service

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

		setAttributeValue(ServerTags.PING_PROTOCOL_TIMEOUT_IN_MILLIS, v, overwrite);
	
public voidsetPingProtocolTimeoutInMillis(java.lang.String v)
Modify the PingProtocolTimeoutInMillis of the Element group-management-service

param
v the new value

		setAttributeValue(ServerTags.PING_PROTOCOL_TIMEOUT_IN_MILLIS, v);
	
public voidsetVsProtocolTimeoutInMillis(java.lang.String v, boolean overwrite)
Modify the VsProtocolTimeoutInMillis of the Element group-management-service

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

		setAttributeValue(ServerTags.VS_PROTOCOL_TIMEOUT_IN_MILLIS, v, overwrite);
	
public voidsetVsProtocolTimeoutInMillis(java.lang.String v)
Modify the VsProtocolTimeoutInMillis of the Element group-management-service

param
v the new value

		setAttributeValue(ServerTags.VS_PROTOCOL_TIMEOUT_IN_MILLIS, v);
	
public intsizeElementProperty()

		return this.size(ELEMENT_PROPERTY);
	
public voidvalidate()