use of com.sequenceiq.cloudbreak.domain.StorageLocations in project cloudbreak by hortonworks.
the class FileSystemConfigurationsViewProvider method getLegacyStorageLocations.
private Set<StorageLocationView> getLegacyStorageLocations(FileSystem source) throws IOException {
Set<StorageLocationView> locations = new HashSet<>();
StorageLocations storageLocations = source.getLocations().get(StorageLocations.class);
if (storageLocations != null) {
for (StorageLocation location : storageLocations.getLocations()) {
locations.add(new StorageLocationView(location));
}
}
return locations;
}
Aggregations