/** * Close the RAMFileSystem. */ @Override public void close() { this.cache.clear(); super.close(); } }
@Override public void close() { super.close(); junctions.clear(); } }
/** * Close the RAMFileSystem. */ @Override public void close() { this.cache.clear(); super.close(); } }
/** * Close the RAMFileSystem. */ @Override public void close() { this.cache.clear(); super.close(); } }
@Override public void close() { super.close(); junctions.clear(); } }
@Override public void close() { super.close(); junctions.clear(); } }
@Override public void close() { super.close(); junctions.clear(); } }
/** * Close the RAMFileSystem. */ @Override public void close() { this.cache.clear(); super.close(); } }
/** * @see org.apache.commons.vfs2.provider.AbstractFileSystem#close() */ @Override public void close() { try { if (null != fs) { fs.close(); } } catch (final IOException e) { throw new RuntimeException("Error closing HDFS client", e); } super.close(); }
/** * @see org.apache.commons.vfs2.provider.AbstractFileSystem#close() */ @Override public void close() { try { if (null != fs) { fs.close(); } } catch (final IOException e) { throw new RuntimeException("Error closing HDFS client", e); } super.close(); }
/** * @see org.apache.commons.vfs2.provider.AbstractFileSystem#close() */ @Override public void close() { try { if (null != fs) { fs.close(); } } catch (final IOException e) { throw new RuntimeException("Error closing HDFS client", e); } super.close(); }
/** * Close a VirtualFileSystem by removing it from the {@code #components} list of this provider. * <p> * This gets called from DefaultFileManager#_closeFileSystem. * * @param filesystem the file system remembered by this provider. */ void closeFileSystem(final FileSystem filesystem) { final AbstractFileSystem fs = (AbstractFileSystem) filesystem; removeComponent(fs); fs.close(); } }
/** * Close a VirtualFileSystem by removing it from the {@code #components} list of this provider. * <p> * This gets called from DefaultFileManager#_closeFileSystem. * * @param filesystem the file system remembered by this provider. */ void closeFileSystem(final FileSystem filesystem) { final AbstractFileSystem fs = (AbstractFileSystem) filesystem; removeComponent(fs); fs.close(); } }
/** * Close a VirtualFileSystem by removing it from the {@code #components} list of this provider. * <p> * This gets called from DefaultFileManager#_closeFileSystem. * * @param filesystem the file system remembered by this provider. */ void closeFileSystem(final FileSystem filesystem) { final AbstractFileSystem fs = (AbstractFileSystem) filesystem; removeComponent(fs); fs.close(); } }
/** * Close a VirtualFileSystem by removing it from the * {@code #components} list of this provider. * <p> * This gets called from DefaultFileManager#_closeFileSystem. * * @param filesystem the file system remembered by this provider. */ void closeFileSystem(final FileSystem filesystem) { final AbstractFileSystem fs = (AbstractFileSystem) filesystem; removeComponent(fs); fs.close(); } }
/** * Close the FileSystem. * * @param filesystem The FileSystem to close. */ public void closeFileSystem(final FileSystem filesystem) { final AbstractFileSystem fs = (AbstractFileSystem) filesystem; final FileSystemKey key = fs.getCacheKey(); if (key != null) { fileSystems.remove(key); } removeComponent(fs); fs.close(); }
/** * Close the FileSystem. * * @param filesystem The FileSystem to close. */ public void closeFileSystem(final FileSystem filesystem) { final AbstractFileSystem fs = (AbstractFileSystem) filesystem; final FileSystemKey key = fs.getCacheKey(); if (key != null) { synchronized (fileSystems) { fileSystems.remove(key); } } removeComponent(fs); fs.close(); }
/** * Close the FileSystem. * * @param filesystem The FileSystem to close. */ public void closeFileSystem(final FileSystem filesystem) { final AbstractFileSystem fs = (AbstractFileSystem) filesystem; final FileSystemKey key = fs.getCacheKey(); if (key != null) { synchronized (fileSystems) { fileSystems.remove(key); } } removeComponent(fs); fs.close(); }
/** * Close the FileSystem. * @param filesystem The FileSystem to close. */ public void closeFileSystem(final FileSystem filesystem) { final AbstractFileSystem fs = (AbstractFileSystem) filesystem; synchronized (myFileSystemsLock) { if (fs.getCacheKey() != null) { fileSystems.remove(fs.getCacheKey()); } } removeComponent(fs); fs.close(); }
/** * Adds a file system to those cached by this provider. The file system * may implement {@link VfsComponent}, in which case it is initialised. * * @return A FileSystem which was added, or which was already added if that key * already hade associated one */ protected FileSystem addFileSystem(final Comparable<?> key, final FileSystem fs) throws FileSystemException { final FileSystemKey treeKey = new FileSystemKey(key, fs.getFileSystemOptions()); ((AbstractFileSystem) fs).setCacheKey(treeKey); //[IntelliJ] WI-31041 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ FileSystem existingFileSystem; synchronized (myFileSystemsLock) { existingFileSystem = fileSystems.get(treeKey); if (existingFileSystem == null) { // Add to the cache addComponent(fs); fileSystems.put(treeKey, fs); return fs; } } ((AbstractFileSystem) fs).close(); return existingFileSystem; //[IntelliJ] WI-31041 ------------------------------------------------------------- }