Search in sources :

Example 1 with DiscoverUnmanagedFilesystems

use of com.emc.sa.service.vipr.file.tasks.DiscoverUnmanagedFilesystems in project coprhd-controller by CoprHD.

the class DiscoverUnmanagedFilesystemsService method execute.

@Override
public void execute() throws Exception {
    List<URI> uris = uris(storageSystems);
    List<StorageSystemRestRep> systemRestReps = execute(new GetStorageSystems(uris));
    for (StorageSystemRestRep storageSystem : systemRestReps) {
        logInfo("discover.unmanaged.filesystem.service.discovering", storageSystem.getName());
        execute(new DiscoverUnmanagedFilesystems(storageSystem.getId().toString()));
        int postCount = countUnmanagedFileSystems(storageSystem.getId().toString());
        logInfo("discover.unmanaged.filesystem.service.discovered", postCount, storageSystem.getName());
    }
}
Also used : StorageSystemRestRep(com.emc.storageos.model.systems.StorageSystemRestRep) GetStorageSystems(com.emc.sa.service.vipr.tasks.GetStorageSystems) DiscoverUnmanagedFilesystems(com.emc.sa.service.vipr.file.tasks.DiscoverUnmanagedFilesystems) URI(java.net.URI)

Aggregations

DiscoverUnmanagedFilesystems (com.emc.sa.service.vipr.file.tasks.DiscoverUnmanagedFilesystems)1 GetStorageSystems (com.emc.sa.service.vipr.tasks.GetStorageSystems)1 StorageSystemRestRep (com.emc.storageos.model.systems.StorageSystemRestRep)1 URI (java.net.URI)1