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.warn ( "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);
        }finally {
            System.exit(0);
        }
    }

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

}