use of com.emc.storageos.volumecontroller.impl.utils.attrmatchers.SRDFMetroMatcher in project coprhd-controller by CoprHD.
the class SRDFScheduler method filterPoolsForSupportedActiveModeProvider.
private List<StoragePool> filterPoolsForSupportedActiveModeProvider(List<StoragePool> candidatePools, VirtualPool vpool) {
Map<URI, VpoolRemoteCopyProtectionSettings> remoteProtectionSettings = vpool.getRemoteProtectionSettings(vpool, _dbClient);
if (remoteProtectionSettings != null) {
for (URI varrayURI : remoteProtectionSettings.keySet()) {
VpoolRemoteCopyProtectionSettings remoteCopyProtectionSettings = remoteProtectionSettings.get(varrayURI);
String copyMode = remoteCopyProtectionSettings.getCopyMode();
if (copyMode.equals(SupportedCopyModes.ACTIVE.toString())) {
SRDFMetroMatcher srdfMetroMatcher = new SRDFMetroMatcher();
srdfMetroMatcher.setCoordinatorClient(_coordinator);
srdfMetroMatcher.setObjectCache(new ObjectLocalCache(_dbClient, false));
return srdfMetroMatcher.filterPoolsForSRDFActiveMode(candidatePools);
}
}
}
return candidatePools;
}
Aggregations