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