public synchronized void stop() {

        _coreMonitor.unregister();

        for (ServiceReg<FileMonitor> reg : _monitors.values()) {
            reg.unregister();
        }

        _monitors.clear();

        // Tidy up old location if we built it
        tidyUpMonitoredDirectory(createdMonitoredDir.get(), monitoredDirectory.get());
    }
public synchronized void stop ( ) { _coreMonitor . unregister ( ) ; for ( ServiceReg < FileMonitor > reg : _monitors . values ( ) ) { reg . unregister ( ) ; } _monitors . clear ( ) ; tidyUpMonitoredDirectory ( createdMonitoredDir . get ( ) , monitoredDirectory . get ( ) ) ; }
Stops the service and all applications started by it