FileDocCategorySizeDatePackage
IASEJBCTimes.javaAPI DocGlassfish v2 API3643Fri May 04 22:32:58 BST 2007com.sun.ejb.codegen

IASEJBCTimes

public class IASEJBCTimes extends Object
This class gathers timing information for the sub-tasks of IASEJBC

Fields Summary
long
cmpGeneratorTime
long
javaCompileTime
long
RMICompileTime
long
jaxrpcGenerationTime
long
totalTime
Constructors Summary
public IASEJBCTimes()

	
Methods Summary
public longgetTotalTime()

		return totalTime;
	
private java.lang.StringmakeEntry(java.lang.String title, long time)

		return title + ": " + time + " msec (" + percent(time) + "), ";
	
private java.lang.Stringpercent(long time)

		if(totalTime <= 0)
			return "0%";
		
		return "" + ((time * 100) / totalTime) + "%";
	
public java.lang.StringtoString()

		StringBuffer sb = new StringBuffer();
		sb.append("Total Time for EJBC: " + totalTime + " msec, ");
		sb.append(makeEntry("CMP Generation",	cmpGeneratorTime)); 
		sb.append(makeEntry("Java Compilation", javaCompileTime)); 
		sb.append(makeEntry("RMI Compilation",	RMICompileTime)); 
                sb.append(makeEntry("JAX-RPC Generation", jaxrpcGenerationTime));
		sb.append("\n");
		return sb.toString();