use of com.emc.storageos.model.dr.SiteRestRep in project coprhd-controller by CoprHD.
the class Upgrade method downloadProgress.
public static void downloadProgress() {
Map<String, Map<String, DownloadStatus>> siteProgress = Maps.newLinkedHashMap();
SiteRestRep activeSite = DisasterRecoveryUtils.getActiveSite();
DownloadProgress downloadProgress = getSysClient().upgrade().getDownloadProgress();
siteProgress.put(activeSite.getName(), calculateDownloadStatus(downloadProgress));
for (SiteRestRep standby : DisasterRecoveryUtils.getStandbySites()) {
downloadProgress = getSysClient().upgrade().getDownloadProgress(standby.getUuid());
siteProgress.put(standby.getName(), calculateDownloadStatus(downloadProgress));
}
renderJSON(siteProgress);
}
Aggregations