Logo Search packages:      
Sourcecode: visualvm version File versions  Download package

void org::netbeans::lib::profiler::results::DataManager::fireDataReset (  )  [inline, protected, inherited]

Notifies all listeners about the reset of threads data.

Definition at line 106 of file DataManager.java.

References org::netbeans::lib::profiler::results::DataManagerListener::dataReset().

Referenced by reset().

                                   {
        if (listeners.isEmpty()) {
            return;
        }

        Set toNotify;

        synchronized (listeners) {
            toNotify = new HashSet(listeners);
        }

        final Set listenerSet = toNotify;

        Iterator iterator = toNotify.iterator();

        while (iterator.hasNext()) {
            final DataManagerListener listener = ((DataManagerListener) iterator.next());
            listener.dataReset();
        }
    }


Generated by  Doxygen 1.6.0   Back to index