FileDocCategorySizeDatePackage
StatsToString.javaAPI DocGlassfish v2 API3108Fri May 04 22:25:52 BST 2007com.sun.enterprise.admin.monitor.util

StatsToString

public class StatsToString extends Object
Returns String implementation of all the statistics within the {@link Stats} instance passed in with one statistic per line.
author
Kedar Mhaswade
since
__PRODUCT__
version
$Revision: 1.3 $

Fields Summary
private final javax.management.j2ee.statistics.Stats
stats
private final String
NL
Constructors Summary
StatsToString(javax.management.j2ee.statistics.Stats stats)
Creates a new instance of StatsToString

	       
	  
		this.stats = stats;
	
Methods Summary
public java.lang.StringtoString()

		final StringBuffer s = new StringBuffer(stats.getClass().getName()).append(NL);
		final Statistic[] ss = stats.getStatistics();
		for(int i = 0 ; i < ss.length ; i++) {
			s.append(ss[i].toString()).append(NL);
		}
		return s.toString();