use of org.apache.hyracks.storage.common.file.TransientLocalResourceRepositoryFactory in project asterixdb by apache.
the class TestStorageManagerComponentHolder method getLocalResourceRepository.
public static synchronized ILocalResourceRepository getLocalResourceRepository() {
if (localResourceRepository == null) {
try {
ILocalResourceRepositoryFactory localResourceRepositoryFactory = new TransientLocalResourceRepositoryFactory();
localResourceRepository = localResourceRepositoryFactory.createRepository();
} catch (HyracksException e) {
//In order not to change the IStorageManagerInterface due to the test code, throw runtime exception.
throw new IllegalArgumentException();
}
}
return localResourceRepository;
}
Aggregations