public void stop ( ) { if ( scheduler != null ) { scheduler . shutdown ( ) ; scheduler = null ; logger . info ( "flushing metrics before stopping the registry" ) ; collectData ( ) ; logger . info ( "stopped collecting metrics every {} reporting to {}" , frequency , uri ) ; } else { logger . warn ( "registry stopped, but was never started" ) ; } }
Stop the scheduler reporting data .