Example usage for org.apache.commons.vfs2 FileSystem getFileSystemOptions

List of usage examples for org.apache.commons.vfs2 FileSystem getFileSystemOptions

Introduction

In this page you can find the example usage for org.apache.commons.vfs2 FileSystem getFileSystemOptions.

Prototype

FileSystemOptions getFileSystemOptions();

Source Link

Document

Returns the FileSystemOptions used to instantiate this filesystem.

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 w  ww.  j  a v  a2 s .co  m
    fsSet.add(fs);
}