public void emit ( ) { requestLogger . setAndDisplay ( frontier . fetchedResources . get ( ) + frontier . fetchedRobots . get ( ) ) ; final long duplicates = frontier . duplicates . get ( ) ; final long archetypes = frontier . archetypes ( ) ; resourceLogger . setAndDisplay ( archetypes + duplicates ) ; transferredBytesLogger . setAndDisplay ( frontier . transferredBytes . get ( ) ) ; receivedURLsLogger . setAndDisplay ( frontier . numberOfReceivedURLs . get ( ) ) ; LOGGER . info ( "Duplicates: " + Util . format ( duplicates ) + " (" + Util . format ( 100.0 * duplicates / ( duplicates + archetypes ) ) + "%)" ) ; LOGGER . info ( "Archetypes 1XX/2XX/3XX/4XX/5XX/Other: " + Util . format ( frontier . archetypesStatus [ 1 ] . get ( ) ) + "/" + Util . format ( frontier . archetypesStatus [ 2 ] . get ( ) ) + "/" + Util . format ( frontier . archetypesStatus [ 3 ] . get ( ) ) + "/" + Util . format ( frontier . archetypesStatus [ 4 ] . get ( ) ) + "/" + Util . format ( frontier . archetypesStatus [ 5 ] . get ( ) ) + "/" + Util . format ( frontier . archetypesStatus [ 0 ] . get ( ) ) ) ; LOGGER . info ( "Outdegree stats: " + frontier . outdegree . toString ( ) ) ; LOGGER . info ( "External outdegree stats: " + frontier . externalOutdegree . toString ( ) ) ; LOGGER . info ( "Archetype content-length stats: " + frontier . contentLength . toString ( ) ) ; LOGGER . info ( "Archetypes text/image/application/other: " + Util . format ( frontier . contentTypeText . get ( ) ) + "/" + Util . format ( frontier . contentTypeImage . get ( ) ) + "/" + Util . format ( frontier . contentTypeApplication . get ( ) ) + "/" + Util . format ( frontier . contentTypeOthers . get ( ) ) ) ; LOGGER . info ( "Ready URLs: " + Util . format ( frontier . readyURLs . size64 ( ) ) ) ; LOGGER . info ( "FetchingThread waits: " + frontier . fetchingThreadWaits . get ( ) + "; total wait time: " + frontier . fetchingThreadWaitingTimeSum . get ( ) ) ; frontier . resetFetchingThreadsWaitingStats ( ) ; }
Emits the statistics .