Search in sources :

Example 1 with StorageLocations

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;
}
Also used : StorageLocation(com.sequenceiq.cloudbreak.domain.StorageLocation) StorageLocations(com.sequenceiq.cloudbreak.domain.StorageLocations) HashSet(java.util.HashSet)

Aggregations

StorageLocation (com.sequenceiq.cloudbreak.domain.StorageLocation)1 StorageLocations (com.sequenceiq.cloudbreak.domain.StorageLocations)1 HashSet (java.util.HashSet)1