List of usage examples for org.apache.commons.vfs2 FileSystem getFileSystemOptions
FileSystemOptions getFileSystemOptions();
From source file:org.pentaho.big.data.impl.vfs.hdfs.nc.NamedClusterProvider.java
private void addCacheEntry(FileName rootName, FileSystem fs) throws FileSystemException { addFileSystem(getFileSystemKey(rootName.toString(), fs.getFileSystemOptions()), fs); String embeddedMetastoreKey = getEmbeddedMetastoreKey(fs.getFileSystemOptions()); Set<FileSystem> fsSet = cacheEntries.get(embeddedMetastoreKey); if (fsSet == null) { fsSet = Collections.synchronizedSet(new HashSet<FileSystem>()); cacheEntries.put(embeddedMetastoreKey, fsSet); }//from w ww. j a v a2 s .co m fsSet.add(fs); }