Search in sources :

Example 1 with SRDFMetroMatcher

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;
}
Also used : VpoolRemoteCopyProtectionSettings(com.emc.storageos.db.client.model.VpoolRemoteCopyProtectionSettings) ObjectLocalCache(com.emc.storageos.volumecontroller.impl.utils.ObjectLocalCache) SRDFMetroMatcher(com.emc.storageos.volumecontroller.impl.utils.attrmatchers.SRDFMetroMatcher) URI(java.net.URI)

Aggregations

VpoolRemoteCopyProtectionSettings (com.emc.storageos.db.client.model.VpoolRemoteCopyProtectionSettings)1 ObjectLocalCache (com.emc.storageos.volumecontroller.impl.utils.ObjectLocalCache)1 SRDFMetroMatcher (com.emc.storageos.volumecontroller.impl.utils.attrmatchers.SRDFMetroMatcher)1 URI (java.net.URI)1