public void statisticCreated ( SPIStatistic s ) { if ( com . ibm . websphere . ras . TraceComponent . isAnyTracingEnabled ( ) && logger . isLoggable ( Level . FINE ) ) logger . logp ( Level . FINE , CLASS_NAME , "statisticCreated" , "Servlet statistic created with id=" + s . getId ( ) ) ; if ( s . getId ( ) == LOADED_SERVLETS ) { sgLoadedServlets = ( SPICountStatistic ) s ; } else if ( s . getId ( ) == NUM_RELOADS ) { sgNumReloads = ( SPICountStatistic ) s ; } }
use ID defined in template to identify a statistic