use of alluxio.testutils.underfs.sleeping.SleepingUnderFileSystemOptions in project alluxio by Alluxio.
the class JournalShutdownIntegrationTest method mountUnmount.
/**
* @param fs Filesystem client
* @return a spied UFS factory mounted to and then unmounted from fs
*/
private UnderFileSystemFactory mountUnmount(FileSystem fs) throws Exception {
SleepingUnderFileSystem sleepingUfs = new SleepingUnderFileSystem(new AlluxioURI("sleep:///"), new SleepingUnderFileSystemOptions(), UnderFileSystemConfiguration.defaults(ServerConfiguration.global()));
SleepingUnderFileSystemFactory sleepingUfsFactory = new SleepingUnderFileSystemFactory(sleepingUfs);
UnderFileSystemFactoryRegistry.register(sleepingUfsFactory);
fs.mount(new AlluxioURI("/mnt"), new AlluxioURI("sleep:///"));
fs.unmount(new AlluxioURI("/mnt"));
return spy(sleepingUfsFactory);
}
Aggregations