FileDocCategorySizeDatePackage
InstanceStats.javaAPI DocGlassfish v2 API32510Thu May 17 16:13:38 BST 2007com.sun.enterprise.admin.monitor.stats.lb

InstanceStats

public class InstanceStats extends Object implements com.sun.enterprise.admin.monitor.stats.lb.CommonBean, com.sun.enterprise.admin.monitor.stats.lb.InstanceStatsInterface
This generated bean class InstanceStats matches the schema element 'instance-stats'. Generated on Fri Aug 19 00:43:43 IST 2005

Fields Summary
private String
_Id
private String
_Health
private String
_NumTotalRequests
private String
_NumActiveRequests
private List
_ApplicationStats
private String
_ApplicationStatsId
private String
_ApplicationStatsAverageResponseTime
private String
_ApplicationStatsMinResponseTime
private String
_ApplicationStatsMaxResponseTime
private String
_ApplicationStatsNumFailoverRequests
private String
_ApplicationStatsNumErrorRequests
private String
_ApplicationStatsNumActiveRequests
private String
_ApplicationStatsNumIdempotentUrlRequests
private String
_ApplicationStatsNumTotalRequests
Constructors Summary
public InstanceStats()


	  
		_Id = "";
		_Health = "";
		_NumTotalRequests = "";
		_NumActiveRequests = "";
		_ApplicationStatsId = "";
		_ApplicationStatsAverageResponseTime = "";
		_ApplicationStatsMinResponseTime = "";
		_ApplicationStatsMaxResponseTime = "";
		_ApplicationStatsNumFailoverRequests = "";
		_ApplicationStatsNumErrorRequests = "";
		_ApplicationStatsNumActiveRequests = "";
		_ApplicationStatsNumIdempotentUrlRequests = "";
		_ApplicationStatsNumTotalRequests = "";
	
public InstanceStats(InstanceStats source)

		_Id = source._Id;
		_Health = source._Health;
		_NumTotalRequests = source._NumTotalRequests;
		_NumActiveRequests = source._NumActiveRequests;
		for (java.util.Iterator it = source._ApplicationStats.iterator(); 
			it.hasNext(); ) {
			_ApplicationStats.add(it.next());
		}
		_ApplicationStatsId = source._ApplicationStatsId;
		_ApplicationStatsAverageResponseTime = source._ApplicationStatsAverageResponseTime;
		_ApplicationStatsMinResponseTime = source._ApplicationStatsMinResponseTime;
		_ApplicationStatsMaxResponseTime = source._ApplicationStatsMaxResponseTime;
		_ApplicationStatsNumFailoverRequests = source._ApplicationStatsNumFailoverRequests;
		_ApplicationStatsNumErrorRequests = source._ApplicationStatsNumErrorRequests;
		_ApplicationStatsNumActiveRequests = source._ApplicationStatsNumActiveRequests;
		_ApplicationStatsNumIdempotentUrlRequests = source._ApplicationStatsNumIdempotentUrlRequests;
		_ApplicationStatsNumTotalRequests = source._ApplicationStatsNumTotalRequests;
	
Methods Summary
public intaddApplicationStats(boolean value)

		_ApplicationStats.add((value ? java.lang.Boolean.TRUE : java.lang.Boolean.FALSE));
		return _ApplicationStats.size()-1;
	
public voidchangePropertyByName(java.lang.String nameIn, java.lang.Object value)

		if (nameIn == null) return;
        
        /** The '==' comparisons below are correct;
            see the javadoc for String.intern().
          */
		final String name = nameIn.intern();
		if (name == "id")
			setId((java.lang.String)value);
		else if (name == "health")
			setHealth((java.lang.String)value);
		else if (name == "numTotalRequests")
			setNumTotalRequests((java.lang.String)value);
		else if (name == "numActiveRequests")
			setNumActiveRequests((java.lang.String)value);
		else if (name == "applicationStats")
			addApplicationStats(((java.lang.Boolean)value).booleanValue());
		else if (name == "applicationStats[]")
			setApplicationStats((boolean[]) value);
		else if (name == "applicationStatsId")
			setApplicationStatsId((java.lang.String)value);
		else if (name == "applicationStatsAverageResponseTime")
			setApplicationStatsAverageResponseTime((java.lang.String)value);
		else if (name == "applicationStatsMinResponseTime")
			setApplicationStatsMinResponseTime((java.lang.String)value);
		else if (name == "applicationStatsMaxResponseTime")
			setApplicationStatsMaxResponseTime((java.lang.String)value);
		else if (name == "applicationStatsNumFailoverRequests")
			setApplicationStatsNumFailoverRequests((java.lang.String)value);
		else if (name == "applicationStatsNumErrorRequests")
			setApplicationStatsNumErrorRequests((java.lang.String)value);
		else if (name == "applicationStatsNumActiveRequests")
			setApplicationStatsNumActiveRequests((java.lang.String)value);
		else if (name == "applicationStatsNumIdempotentUrlRequests")
			setApplicationStatsNumIdempotentUrlRequests((java.lang.String)value);
		else if (name == "applicationStatsNumTotalRequests")
			setApplicationStatsNumTotalRequests((java.lang.String)value);
		else
			throw new IllegalArgumentException(name+" is not a valid property name for InstanceStats");
	
public com.sun.enterprise.admin.monitor.stats.lb.CommonBean[]childBeans(boolean recursive)

		java.util.List children = new java.util.LinkedList();
		childBeans(recursive, children);
		com.sun.enterprise.admin.monitor.stats.lb.CommonBean[] result = new com.sun.enterprise.admin.monitor.stats.lb.CommonBean[children.size()];
		return (com.sun.enterprise.admin.monitor.stats.lb.CommonBean[]) children.toArray(result);
	
public voidchildBeans(boolean recursive, java.util.List beans)

	
public booleanequals(java.lang.Object o)

		if (o == this)
			return true;
		if (!(o instanceof com.sun.enterprise.admin.monitor.stats.lb.InstanceStats))
			return false;
		com.sun.enterprise.admin.monitor.stats.lb.InstanceStats inst = (com.sun.enterprise.admin.monitor.stats.lb.InstanceStats) o;
		if (!(_Id == null ? inst._Id == null : _Id.equals(inst._Id)))
			return false;
		if (!(_Health == null ? inst._Health == null : _Health.equals(inst._Health)))
			return false;
		if (!(_NumTotalRequests == null ? inst._NumTotalRequests == null : _NumTotalRequests.equals(inst._NumTotalRequests)))
			return false;
		if (!(_NumActiveRequests == null ? inst._NumActiveRequests == null : _NumActiveRequests.equals(inst._NumActiveRequests)))
			return false;
		if (sizeApplicationStats() != inst.sizeApplicationStats())
			return false;
		// Compare every element.
		for (java.util.Iterator it = _ApplicationStats.iterator(), it2 = inst._ApplicationStats.iterator(); 
			it.hasNext() && it2.hasNext(); ) {
			boolean element = ((java.lang.Boolean)it.next()).booleanValue();
			boolean element2 = ((java.lang.Boolean)it2.next()).booleanValue();
			if (!(element == element2))
				return false;
		}
		if (!(_ApplicationStatsId == null ? inst._ApplicationStatsId == null : _ApplicationStatsId.equals(inst._ApplicationStatsId)))
			return false;
		if (!(_ApplicationStatsAverageResponseTime == null ? inst._ApplicationStatsAverageResponseTime == null : _ApplicationStatsAverageResponseTime.equals(inst._ApplicationStatsAverageResponseTime)))
			return false;
		if (!(_ApplicationStatsMinResponseTime == null ? inst._ApplicationStatsMinResponseTime == null : _ApplicationStatsMinResponseTime.equals(inst._ApplicationStatsMinResponseTime)))
			return false;
		if (!(_ApplicationStatsMaxResponseTime == null ? inst._ApplicationStatsMaxResponseTime == null : _ApplicationStatsMaxResponseTime.equals(inst._ApplicationStatsMaxResponseTime)))
			return false;
		if (!(_ApplicationStatsNumFailoverRequests == null ? inst._ApplicationStatsNumFailoverRequests == null : _ApplicationStatsNumFailoverRequests.equals(inst._ApplicationStatsNumFailoverRequests)))
			return false;
		if (!(_ApplicationStatsNumErrorRequests == null ? inst._ApplicationStatsNumErrorRequests == null : _ApplicationStatsNumErrorRequests.equals(inst._ApplicationStatsNumErrorRequests)))
			return false;
		if (!(_ApplicationStatsNumActiveRequests == null ? inst._ApplicationStatsNumActiveRequests == null : _ApplicationStatsNumActiveRequests.equals(inst._ApplicationStatsNumActiveRequests)))
			return false;
		if (!(_ApplicationStatsNumIdempotentUrlRequests == null ? inst._ApplicationStatsNumIdempotentUrlRequests == null : _ApplicationStatsNumIdempotentUrlRequests.equals(inst._ApplicationStatsNumIdempotentUrlRequests)))
			return false;
		if (!(_ApplicationStatsNumTotalRequests == null ? inst._ApplicationStatsNumTotalRequests == null : _ApplicationStatsNumTotalRequests.equals(inst._ApplicationStatsNumTotalRequests)))
			return false;
		return true;
	
public java.util.ListfetchApplicationStatsList()

		return _ApplicationStats;
	
public java.lang.ObjectfetchPropertyByName(java.lang.String nameIn)

        if ( nameIn == null ) {
            throw new IllegalArgumentException();
        }
        /** The '==' comparisons below are correct;
            see the javadoc for String.intern().
          */
        final String name = nameIn.intern();

		if (name == "id")
			return getId();
		if (name == "health")
			return getHealth();
		if (name == "numTotalRequests")
			return getNumTotalRequests();
		if (name == "numActiveRequests")
			return getNumActiveRequests();
		if (name == "applicationStats[]")
			return getApplicationStats();
		if (name == "applicationStatsId")
			return getApplicationStatsId();
		if (name == "applicationStatsAverageResponseTime")
			return getApplicationStatsAverageResponseTime();
		if (name == "applicationStatsMinResponseTime")
			return getApplicationStatsMinResponseTime();
		if (name == "applicationStatsMaxResponseTime")
			return getApplicationStatsMaxResponseTime();
		if (name == "applicationStatsNumFailoverRequests")
			return getApplicationStatsNumFailoverRequests();
		if (name == "applicationStatsNumErrorRequests")
			return getApplicationStatsNumErrorRequests();
		if (name == "applicationStatsNumActiveRequests")
			return getApplicationStatsNumActiveRequests();
		if (name == "applicationStatsNumIdempotentUrlRequests")
			return getApplicationStatsNumIdempotentUrlRequests();
		if (name == "applicationStatsNumTotalRequests")
			return getApplicationStatsNumTotalRequests();
		throw new IllegalArgumentException(name+" is not a valid property name for InstanceStats");
	
public boolean[]getApplicationStats()

		boolean[] arr = new boolean[_ApplicationStats.size()];
		for (int i = 0; i < arr.length; ++i) {
			arr[i] = ((java.lang.Boolean)_ApplicationStats.get(i)).booleanValue();
		}
		return arr;
	
public java.lang.StringgetApplicationStatsAverageResponseTime()

		return _ApplicationStatsAverageResponseTime;
	
public java.lang.StringgetApplicationStatsId()

		return _ApplicationStatsId;
	
public java.lang.StringgetApplicationStatsMaxResponseTime()

		return _ApplicationStatsMaxResponseTime;
	
public java.lang.StringgetApplicationStatsMinResponseTime()

		return _ApplicationStatsMinResponseTime;
	
public java.lang.StringgetApplicationStatsNumActiveRequests()

		return _ApplicationStatsNumActiveRequests;
	
public java.lang.StringgetApplicationStatsNumErrorRequests()

		return _ApplicationStatsNumErrorRequests;
	
public java.lang.StringgetApplicationStatsNumFailoverRequests()

		return _ApplicationStatsNumFailoverRequests;
	
public java.lang.StringgetApplicationStatsNumIdempotentUrlRequests()

		return _ApplicationStatsNumIdempotentUrlRequests;
	
public java.lang.StringgetApplicationStatsNumTotalRequests()

		return _ApplicationStatsNumTotalRequests;
	
public java.lang.StringgetHealth()

		return _Health;
	
public java.lang.StringgetId()

		return _Id;
	
public java.lang.StringgetNumActiveRequests()

		return _NumActiveRequests;
	
public java.lang.StringgetNumTotalRequests()

		return _NumTotalRequests;
	
public inthashCode()

		int result = 17;
		result = 37*result + (_Id == null ? 0 : _Id.hashCode());
		result = 37*result + (_Health == null ? 0 : _Health.hashCode());
		result = 37*result + (_NumTotalRequests == null ? 0 : _NumTotalRequests.hashCode());
		result = 37*result + (_NumActiveRequests == null ? 0 : _NumActiveRequests.hashCode());
		result = 37*result + ((_ApplicationStats).hashCode());
		result = 37*result + (_ApplicationStatsId == null ? 0 : _ApplicationStatsId.hashCode());
		result = 37*result + (_ApplicationStatsAverageResponseTime == null ? 0 : _ApplicationStatsAverageResponseTime.hashCode());
		result = 37*result + (_ApplicationStatsMinResponseTime == null ? 0 : _ApplicationStatsMinResponseTime.hashCode());
		result = 37*result + (_ApplicationStatsMaxResponseTime == null ? 0 : _ApplicationStatsMaxResponseTime.hashCode());
		result = 37*result + (_ApplicationStatsNumFailoverRequests == null ? 0 : _ApplicationStatsNumFailoverRequests.hashCode());
		result = 37*result + (_ApplicationStatsNumErrorRequests == null ? 0 : _ApplicationStatsNumErrorRequests.hashCode());
		result = 37*result + (_ApplicationStatsNumActiveRequests == null ? 0 : _ApplicationStatsNumActiveRequests.hashCode());
		result = 37*result + (_ApplicationStatsNumIdempotentUrlRequests == null ? 0 : _ApplicationStatsNumIdempotentUrlRequests.hashCode());
		result = 37*result + (_ApplicationStatsNumTotalRequests == null ? 0 : _ApplicationStatsNumTotalRequests.hashCode());
		return result;
	
public booleanisApplicationStats(int index)

		return ((java.lang.Boolean)_ApplicationStats.get(index)).booleanValue();
	
public voidreadNode(org.w3c.dom.Node node)

		if (node.hasAttributes()) {
			org.w3c.dom.NamedNodeMap attrs = node.getAttributes();
			org.w3c.dom.Attr attr;
			attr = (org.w3c.dom.Attr) attrs.getNamedItem("id");
			if (attr != null) {
				_Id = attr.getValue();
			}
			attr = (org.w3c.dom.Attr) attrs.getNamedItem("health");
			if (attr != null) {
				_Health = attr.getValue();
			}
			attr = (org.w3c.dom.Attr) attrs.getNamedItem("num-total-requests");
			if (attr != null) {
				_NumTotalRequests = attr.getValue();
			}
			attr = (org.w3c.dom.Attr) attrs.getNamedItem("num-active-requests");
			if (attr != null) {
				_NumActiveRequests = attr.getValue();
			}
		}
		org.w3c.dom.NodeList children = node.getChildNodes();
		int lastElementType = 0;
		for (int i = 0, size = children.getLength(); i < size; ++i) {
			org.w3c.dom.Node childNode = children.item(i);
			String childNodeName = (childNode.getLocalName() == null ? childNode.getNodeName().intern() : childNode.getLocalName().intern());
			String childNodeValue = "";
			if (childNode.getFirstChild() != null) {
				childNodeValue = childNode.getFirstChild().getNodeValue();
			}
			if (childNodeName == "application-stats") {
				boolean aApplicationStats;
				if (childNode.getFirstChild() == null)
					aApplicationStats = true;
				else
					aApplicationStats = java.lang.Boolean.valueOf(childNodeValue).booleanValue();
				if (childNode.hasAttributes()) {
					org.w3c.dom.NamedNodeMap attrs = childNode.getAttributes();
					org.w3c.dom.Attr attr;
					attr = (org.w3c.dom.Attr) attrs.getNamedItem("id");
					if (attr != null) {
						_ApplicationStatsId = attr.getValue();
					}
					attr = (org.w3c.dom.Attr) attrs.getNamedItem("average-response-time");
					if (attr != null) {
						_ApplicationStatsAverageResponseTime = attr.getValue();
					}
					attr = (org.w3c.dom.Attr) attrs.getNamedItem("min-response-time");
					if (attr != null) {
						_ApplicationStatsMinResponseTime = attr.getValue();
					}
					attr = (org.w3c.dom.Attr) attrs.getNamedItem("max-response-time");
					if (attr != null) {
						_ApplicationStatsMaxResponseTime = attr.getValue();
					}
					attr = (org.w3c.dom.Attr) attrs.getNamedItem("num-failover-requests");
					if (attr != null) {
						_ApplicationStatsNumFailoverRequests = attr.getValue();
					}
					attr = (org.w3c.dom.Attr) attrs.getNamedItem("num-error-requests");
					if (attr != null) {
						_ApplicationStatsNumErrorRequests = attr.getValue();
					}
					attr = (org.w3c.dom.Attr) attrs.getNamedItem("num-active-requests");
					if (attr != null) {
						_ApplicationStatsNumActiveRequests = attr.getValue();
					}
					attr = (org.w3c.dom.Attr) attrs.getNamedItem("num-idempotent-url-requests");
					if (attr != null) {
						_ApplicationStatsNumIdempotentUrlRequests = attr.getValue();
					}
					attr = (org.w3c.dom.Attr) attrs.getNamedItem("num-total-requests");
					if (attr != null) {
						_ApplicationStatsNumTotalRequests = attr.getValue();
					}
				}
				_ApplicationStats.add((aApplicationStats ? java.lang.Boolean.TRUE : java.lang.Boolean.FALSE));
				lastElementType = 4;
			}
			else {
				// Found extra unrecognized childNode
			}
		}
	
public intremoveApplicationStats(boolean value)

		int pos = _ApplicationStats.indexOf((value ? java.lang.Boolean.TRUE : java.lang.Boolean.FALSE));
		if (pos >= 0) {
			_ApplicationStats.remove(pos);
		}
		return pos;
	
public voidsetApplicationStats(boolean[] value)

		if (value == null)
			value = new boolean[0];
		_ApplicationStats.clear();
		for (int i = 0; i < value.length; ++i) {
			_ApplicationStats.add((value[i] ? java.lang.Boolean.TRUE : java.lang.Boolean.FALSE));
		}
	
public voidsetApplicationStats(int index, boolean value)

		_ApplicationStats.set(index, (value ? java.lang.Boolean.TRUE : java.lang.Boolean.FALSE));
	
public voidsetApplicationStatsAverageResponseTime(java.lang.String value)

		_ApplicationStatsAverageResponseTime = value;
	
public voidsetApplicationStatsId(java.lang.String value)

		_ApplicationStatsId = value;
	
public voidsetApplicationStatsMaxResponseTime(java.lang.String value)

		_ApplicationStatsMaxResponseTime = value;
	
public voidsetApplicationStatsMinResponseTime(java.lang.String value)

		_ApplicationStatsMinResponseTime = value;
	
public voidsetApplicationStatsNumActiveRequests(java.lang.String value)

		_ApplicationStatsNumActiveRequests = value;
	
public voidsetApplicationStatsNumErrorRequests(java.lang.String value)

		_ApplicationStatsNumErrorRequests = value;
	
public voidsetApplicationStatsNumFailoverRequests(java.lang.String value)

		_ApplicationStatsNumFailoverRequests = value;
	
public voidsetApplicationStatsNumIdempotentUrlRequests(java.lang.String value)

		_ApplicationStatsNumIdempotentUrlRequests = value;
	
public voidsetApplicationStatsNumTotalRequests(java.lang.String value)

		_ApplicationStatsNumTotalRequests = value;
	
public voidsetHealth(java.lang.String value)

		_Health = value;
	
public voidsetId(java.lang.String value)

		_Id = value;
	
public voidsetNumActiveRequests(java.lang.String value)

		_NumActiveRequests = value;
	
public voidsetNumTotalRequests(java.lang.String value)

		_NumTotalRequests = value;
	
public intsizeApplicationStats()

		return _ApplicationStats.size();
	
public java.lang.StringtoString()

		java.io.StringWriter sw = new java.io.StringWriter();
		try {
			writeNode(sw, "InstanceStats", "");
		} catch (java.io.IOException e) {
			// How can we actually get an IOException on a StringWriter?
			// We'll just ignore it.
		}
		return sw.toString();
	
public voidvalidate()

		boolean restrictionFailure = false;
		// Validating property id
		if (getId() == null) {
			throw new com.sun.enterprise.admin.monitor.stats.lb.LoadBalancerStats.ValidateException("getId() == null", "id", this);	// NOI18N
		}
		// Validating property health
		if (getHealth() == null) {
			throw new com.sun.enterprise.admin.monitor.stats.lb.LoadBalancerStats.ValidateException("getHealth() == null", "health", this);	// NOI18N
		}
		// Validating property numTotalRequests
		if (getNumTotalRequests() == null) {
			throw new com.sun.enterprise.admin.monitor.stats.lb.LoadBalancerStats.ValidateException("getNumTotalRequests() == null", "numTotalRequests", this);	// NOI18N
		}
		// Validating property numActiveRequests
		if (getNumActiveRequests() == null) {
			throw new com.sun.enterprise.admin.monitor.stats.lb.LoadBalancerStats.ValidateException("getNumActiveRequests() == null", "numActiveRequests", this);	// NOI18N
		}
		// Validating property applicationStats
		for (int _index = 0; _index < sizeApplicationStats(); ++_index) {
			boolean element = isApplicationStats(_index);
		}
		// Validating property applicationStatsId
		if (getApplicationStatsId() == null) {
			throw new com.sun.enterprise.admin.monitor.stats.lb.LoadBalancerStats.ValidateException("getApplicationStatsId() == null", "applicationStatsId", this);	// NOI18N
		}
		// Validating property applicationStatsAverageResponseTime
		if (getApplicationStatsAverageResponseTime() == null) {
			throw new com.sun.enterprise.admin.monitor.stats.lb.LoadBalancerStats.ValidateException("getApplicationStatsAverageResponseTime() == null", "applicationStatsAverageResponseTime", this);	// NOI18N
		}
		// Validating property applicationStatsMinResponseTime
		if (getApplicationStatsMinResponseTime() == null) {
			throw new com.sun.enterprise.admin.monitor.stats.lb.LoadBalancerStats.ValidateException("getApplicationStatsMinResponseTime() == null", "applicationStatsMinResponseTime", this);	// NOI18N
		}
		// Validating property applicationStatsMaxResponseTime
		if (getApplicationStatsMaxResponseTime() == null) {
			throw new com.sun.enterprise.admin.monitor.stats.lb.LoadBalancerStats.ValidateException("getApplicationStatsMaxResponseTime() == null", "applicationStatsMaxResponseTime", this);	// NOI18N
		}
		// Validating property applicationStatsNumFailoverRequests
		if (getApplicationStatsNumFailoverRequests() == null) {
			throw new com.sun.enterprise.admin.monitor.stats.lb.LoadBalancerStats.ValidateException("getApplicationStatsNumFailoverRequests() == null", "applicationStatsNumFailoverRequests", this);	// NOI18N
		}
		// Validating property applicationStatsNumErrorRequests
		if (getApplicationStatsNumErrorRequests() == null) {
			throw new com.sun.enterprise.admin.monitor.stats.lb.LoadBalancerStats.ValidateException("getApplicationStatsNumErrorRequests() == null", "applicationStatsNumErrorRequests", this);	// NOI18N
		}
		// Validating property applicationStatsNumActiveRequests
		if (getApplicationStatsNumActiveRequests() == null) {
			throw new com.sun.enterprise.admin.monitor.stats.lb.LoadBalancerStats.ValidateException("getApplicationStatsNumActiveRequests() == null", "applicationStatsNumActiveRequests", this);	// NOI18N
		}
		// Validating property applicationStatsNumIdempotentUrlRequests
		if (getApplicationStatsNumIdempotentUrlRequests() == null) {
			throw new com.sun.enterprise.admin.monitor.stats.lb.LoadBalancerStats.ValidateException("getApplicationStatsNumIdempotentUrlRequests() == null", "applicationStatsNumIdempotentUrlRequests", this);	// NOI18N
		}
		// Validating property applicationStatsNumTotalRequests
		if (getApplicationStatsNumTotalRequests() == null) {
			throw new com.sun.enterprise.admin.monitor.stats.lb.LoadBalancerStats.ValidateException("getApplicationStatsNumTotalRequests() == null", "applicationStatsNumTotalRequests", this);	// NOI18N
		}
	
public voidwriteNode(java.io.Writer out, java.lang.String nodeName, java.lang.String indent)

		out.write(indent);
		out.write("<");
		out.write(nodeName);
		// id is an attribute
		if (_Id != null) {
			out.write(" id");	// NOI18N
			out.write("='");	// NOI18N
			com.sun.enterprise.admin.monitor.stats.lb.LoadBalancerStats.writeXML(out, _Id, true);
			out.write("'");	// NOI18N
		}
		// health is an attribute
		if (_Health != null) {
			out.write(" health");	// NOI18N
			out.write("='");	// NOI18N
			com.sun.enterprise.admin.monitor.stats.lb.LoadBalancerStats.writeXML(out, _Health, true);
			out.write("'");	// NOI18N
		}
		// num-total-requests is an attribute
		if (_NumTotalRequests != null) {
			out.write(" num-total-requests");	// NOI18N
			out.write("='");	// NOI18N
			com.sun.enterprise.admin.monitor.stats.lb.LoadBalancerStats.writeXML(out, _NumTotalRequests, true);
			out.write("'");	// NOI18N
		}
		// num-active-requests is an attribute
		if (_NumActiveRequests != null) {
			out.write(" num-active-requests");	// NOI18N
			out.write("='");	// NOI18N
			com.sun.enterprise.admin.monitor.stats.lb.LoadBalancerStats.writeXML(out, _NumActiveRequests, true);
			out.write("'");	// NOI18N
		}
		out.write(">\n");
		String nextIndent = indent + "	";
		for (java.util.Iterator it = _ApplicationStats.iterator(); 
			it.hasNext(); ) {
			boolean element = ((java.lang.Boolean)it.next()).booleanValue();
			if (element) {
				out.write(nextIndent);
				out.write("<application-stats");	// NOI18N
				// id is an attribute
				if (_ApplicationStatsId != null) {
					out.write(" id");	// NOI18N
					out.write("='");	// NOI18N
					com.sun.enterprise.admin.monitor.stats.lb.LoadBalancerStats.writeXML(out, _ApplicationStatsId, true);
					out.write("'");	// NOI18N
				}
				// average-response-time is an attribute
				if (_ApplicationStatsAverageResponseTime != null) {
					out.write(" average-response-time");	// NOI18N
					out.write("='");	// NOI18N
					com.sun.enterprise.admin.monitor.stats.lb.LoadBalancerStats.writeXML(out, _ApplicationStatsAverageResponseTime, true);
					out.write("'");	// NOI18N
				}
				// min-response-time is an attribute
				if (_ApplicationStatsMinResponseTime != null) {
					out.write(" min-response-time");	// NOI18N
					out.write("='");	// NOI18N
					com.sun.enterprise.admin.monitor.stats.lb.LoadBalancerStats.writeXML(out, _ApplicationStatsMinResponseTime, true);
					out.write("'");	// NOI18N
				}
				// max-response-time is an attribute
				if (_ApplicationStatsMaxResponseTime != null) {
					out.write(" max-response-time");	// NOI18N
					out.write("='");	// NOI18N
					com.sun.enterprise.admin.monitor.stats.lb.LoadBalancerStats.writeXML(out, _ApplicationStatsMaxResponseTime, true);
					out.write("'");	// NOI18N
				}
				// num-failover-requests is an attribute
				if (_ApplicationStatsNumFailoverRequests != null) {
					out.write(" num-failover-requests");	// NOI18N
					out.write("='");	// NOI18N
					com.sun.enterprise.admin.monitor.stats.lb.LoadBalancerStats.writeXML(out, _ApplicationStatsNumFailoverRequests, true);
					out.write("'");	// NOI18N
				}
				// num-error-requests is an attribute
				if (_ApplicationStatsNumErrorRequests != null) {
					out.write(" num-error-requests");	// NOI18N
					out.write("='");	// NOI18N
					com.sun.enterprise.admin.monitor.stats.lb.LoadBalancerStats.writeXML(out, _ApplicationStatsNumErrorRequests, true);
					out.write("'");	// NOI18N
				}
				// num-active-requests is an attribute
				if (_ApplicationStatsNumActiveRequests != null) {
					out.write(" num-active-requests");	// NOI18N
					out.write("='");	// NOI18N
					com.sun.enterprise.admin.monitor.stats.lb.LoadBalancerStats.writeXML(out, _ApplicationStatsNumActiveRequests, true);
					out.write("'");	// NOI18N
				}
				// num-idempotent-url-requests is an attribute
				if (_ApplicationStatsNumIdempotentUrlRequests != null) {
					out.write(" num-idempotent-url-requests");	// NOI18N
					out.write("='");	// NOI18N
					com.sun.enterprise.admin.monitor.stats.lb.LoadBalancerStats.writeXML(out, _ApplicationStatsNumIdempotentUrlRequests, true);
					out.write("'");	// NOI18N
				}
				// num-total-requests is an attribute
				if (_ApplicationStatsNumTotalRequests != null) {
					out.write(" num-total-requests");	// NOI18N
					out.write("='");	// NOI18N
					com.sun.enterprise.admin.monitor.stats.lb.LoadBalancerStats.writeXML(out, _ApplicationStatsNumTotalRequests, true);
					out.write("'");	// NOI18N
				}
				out.write("/>\n");	// NOI18N
			}
		}
		out.write(indent);
		out.write("</"+nodeName+">\n");