synchronized void deactivateProbe ( ProbeImpl probe ) { listenersByProbe . remove ( probe ) ; activeProbesById . remove ( probe . getIdentifier ( ) ) ; Class < ? > clazz = probe . getSourceClass ( ) ; Map < String , ProbeImpl > classProbesByKey = probesByKey . get ( clazz ) ; classProbesByKey . remove ( probe . getName ( ) ) ; if ( classProbesByKey . isEmpty ( ) ) { probesByKey . remove ( clazz ) ; } }
Deactivate the specified probe and remove all data associated with the probe .