class VSensorLoader extends Thread {

	public void stopLoading ( ) {
		this.isActive = false;
		this.interrupt ( );
		for ( String configFile : Mappings.getAllKnownFileName ( ) ) {
			VirtualSensor sensorInstance = Mappings.getVSensorInstanceByFileName ( configFile );
			removeAllVSResources ( sensorInstance );
			logger.info( "Removing the resources associated with : " + sensorInstance.getConfig ( ).getFileName ( ) + " [done]." );
		}
		try {
			Main.getWindowStorage().shutdown( );
            Iterator<VSensorConfig> iter = Mappings.getAllVSensorConfigs();
            while (iter.hasNext()) {
                Main.getStorage(iter.next()).shutdown();
            }
		} catch ( SQLException e ) {
			logger.error(e.getMessage(),e);
		}
	}

	public  VSensorLoader();
	public  VSensorLoader( String pluginsPath );

}