public static List < UnderFileSystemFactory > findAll ( String path , UnderFileSystemConfiguration ufsConf , AlluxioConfiguration alluxioConf ) { List < UnderFileSystemFactory > eligibleFactories = sRegistryInstance . findAll ( path , ufsConf , alluxioConf ) ; if ( eligibleFactories . isEmpty ( ) && ufsConf != null ) { // Check if any versioned factory supports the default configuration List < UnderFileSystemFactory > factories = sRegistryInstance . findAll ( path , null , alluxioConf ) ; List < String > supportedVersions = new java . util . ArrayList <> ( ) ; for ( UnderFileSystemFactory factory : factories ) { if ( ! factory . getVersion ( ) . isEmpty ( ) ) { supportedVersions . add ( factory . getVersion ( ) ) ; } } if ( ! supportedVersions . isEmpty ( ) ) { String configuredVersion = ufsConf . get ( PropertyKey . UNDERFS_VERSION ) ; LOG . warn ( "Versions [{}] are supported for path {} but you have configured version: {}" , StringUtils . join ( supportedVersions , "," ) , path , configuredVersion ) ; } } return eligibleFactories ; }
Finds all the Under File System factories that support the given path .