List of usage examples for org.apache.commons.vfs2 FileName toString
public String toString()
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 ww w . j av a2s. c o m*/ fsSet.add(fs); }