Package com.emc.storageos.model.block.VolumeRestRep

Examples of com.emc.storageos.model.block.VolumeRestRep.SRDFRestRep


*/
public class SRDFTargetFilter extends DefaultResourceFilter<VolumeRestRep> {
    @Override
    public boolean accept(VolumeRestRep item) {
        if ((item.getProtection() != null) && (item.getProtection().getSrdfRep() != null)) {
            SRDFRestRep srdf = item.getProtection().getSrdfRep();
            return srdf.getAssociatedSourceVolume() != null;
        }
        else {
            return false;
        }
    }
View Full Code Here


*/
public class SRDFSourceFilter extends DefaultResourceFilter<VolumeRestRep> {
    @Override
    public boolean accept(VolumeRestRep item) {
        if ((item.getProtection() != null) && (item.getProtection().getSrdfRep() != null)) {
            SRDFRestRep srdf = item.getProtection().getSrdfRep();
            return (srdf.getSRDFTargetVolumes() != null) && (srdf.getSRDFTargetVolumes().size() > 0);
        }
        else {
            return false;
        }
    }
View Full Code Here

TOP

Related Classes of com.emc.storageos.model.block.VolumeRestRep.SRDFRestRep

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.