FileDocCategorySizeDatePackage
GlobalManagerStatsWriter.javaAPI DocAzureus 3.0.3.41872Tue Jan 16 08:14:22 GMT 2007org.gudy.azureus2.core3.global.impl

GlobalManagerStatsWriter

public class GlobalManagerStatsWriter extends Object
author
parg

Fields Summary
protected StatsWriterPeriodic
stats_writer
Constructors Summary
protected GlobalManagerStatsWriter(com.aelitis.azureus.core.AzureusCore core)

	    StatsFactory.initialize( core );
		
	    stats_writer = StatsWriterFactory.createPeriodicDumper( core );
	    
	    core.addLifecycleListener(
	    	new AzureusCoreLifecycleAdapter()
	    	{
	    		public void
	    		started(
	    			AzureusCore		core )
	    		{
	    			stats_writer.start();
	    			
	    			core.removeLifecycleListener( this );
	    		}
	    	});
	
Methods Summary
protected voiddestroy()

		if ( stats_writer != null ){
	     
			stats_writer.stop();
		}