Search in sources :

Example 1 with WeakRefFilesCache

use of org.apache.commons.vfs2.cache.WeakRefFilesCache in project pentaho-kettle by pentaho.

the class KettleVFS method reset.

public void reset() {
    defaultVariableSpace = new Variables();
    defaultVariableSpace.initializeVariablesFrom(null);
    fsm.close();
    try {
        fsm.setFilesCache(new WeakRefFilesCache());
        fsm.init();
    } catch (FileSystemException ignored) {
    }
}
Also used : Variables(org.pentaho.di.core.variables.Variables) FileSystemException(org.apache.commons.vfs2.FileSystemException) WeakRefFilesCache(org.apache.commons.vfs2.cache.WeakRefFilesCache)

Aggregations

FileSystemException (org.apache.commons.vfs2.FileSystemException)1 WeakRefFilesCache (org.apache.commons.vfs2.cache.WeakRefFilesCache)1 Variables (org.pentaho.di.core.variables.Variables)1