* @return ConcreteElement
*/
public ConcreteElement getContent( RunData rundata ) {
ElementContainer ec = new ElementContainer();
this.createCategory( ec, "Memory" );
ec.addElement( this.getEntry( "Free Memory (K)",
Long.toString( Runtime.getRuntime().freeMemory()/1024 ) ) );
ec.addElement( this.getEntry( "Total Memory (K)",
Long.toString( Runtime.getRuntime().totalMemory()/1024 ) ) );
JetspeedThreadPoolService service =
( JetspeedThreadPoolService ) TurbineServices
.getInstance()
.getService( ThreadPoolService.SERVICE_NAME );
this.createCategory( ec, "Thread Pool" );
ec.addElement( this.getEntry( "Available threads: ",
service.getAvailableThreadCount() ) );
ec.addElement( this.getEntry( "Total threads: ",
service.getThreadCount() ) );
ec.addElement( this.getEntry( "Runnable queue length: ",
service.getQueueLength() ) );
ec.addElement( this.getEntry( "Processed thread count: ",
service.getThreadProcessedCount() ) );
this.createCategory( ec, "PortletRegistry" );
ec.addElement( this.getEntry( "Number of entries: ",
Registry.get(Registry.PORTLET).getEntryCount() ) );
this.createCategory( ec, "Resource Manager" );
ec.addElement( this.getEntry( "Entries in Manager",
URLManager.list( URLManagerService.STATUS_ANY ).size() ) );
ec.addElement( this.getEntry( "Bad Entries",
URLManager.list( URLManagerService.STATUS_BAD ).size() ) );
ec.addElement( this.getEntry( "URLs Loading/Refreshing",
URLFetcher.getRealtimeURLs().size() ) );
this.createCategory( ec, "Global Memory Cache" );
ec.addElement( this.getEntry( "Objects in Cache",
GlobalCache.getNumberOfObjects()));
return ec;
}