use of org.apache.flink.core.fs.FileSystemFactory in project flink by apache.
the class HadoopS3FileSystemsSchemesTest method testFactory.
private static void testFactory(String scheme) {
ServiceLoader<FileSystemFactory> serviceLoader = ServiceLoader.load(FileSystemFactory.class);
for (FileSystemFactory fs : serviceLoader) {
if (scheme.equals(fs.getScheme())) {
// found the matching scheme
return;
}
}
fail("No factory available for scheme " + scheme);
}
Aggregations