Example usage for org.apache.commons.vfs2 FileName toString

List of usage examples for org.apache.commons.vfs2 FileName toString

Introduction

In this page you can find the example usage for org.apache.commons.vfs2 FileName toString.

Prototype

public String toString() 

Source Link

Document

Returns a string representation of the object.

Usage

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);
}