Search in sources :

Example 1 with SRDFOperationContextFactory80

use of com.emc.storageos.volumecontroller.impl.smis.srdf.SRDFOperationContextFactory80 in project coprhd-controller by CoprHD.

the class SRDFOperations method getContextFactory.

/**
 * Returns the appropriate factory based on the Provider version.
 *
 * @param system Local or remote system
 * @return Concrete factory of AbstractSRDFOperationContextFactory
 */
private AbstractSRDFOperationContextFactory getContextFactory(StorageSystem system) {
    AbstractSRDFOperationContextFactory factory = null;
    if (system.getUsingSmis80() != null && system.getUsingSmis80()) {
        factory = new SRDFOperationContextFactory80();
    } else {
        factory = new SRDFOperationContextFactory40();
    }
    factory.setDbClient(dbClient);
    factory.setHelper(helper);
    factory.setUtils(utils);
    return factory;
}
Also used : SRDFOperationContextFactory80(com.emc.storageos.volumecontroller.impl.smis.srdf.SRDFOperationContextFactory80) AbstractSRDFOperationContextFactory(com.emc.storageos.volumecontroller.impl.smis.srdf.AbstractSRDFOperationContextFactory) SRDFOperationContextFactory40(com.emc.storageos.volumecontroller.impl.smis.srdf.SRDFOperationContextFactory40)

Aggregations

AbstractSRDFOperationContextFactory (com.emc.storageos.volumecontroller.impl.smis.srdf.AbstractSRDFOperationContextFactory)1 SRDFOperationContextFactory40 (com.emc.storageos.volumecontroller.impl.smis.srdf.SRDFOperationContextFactory40)1 SRDFOperationContextFactory80 (com.emc.storageos.volumecontroller.impl.smis.srdf.SRDFOperationContextFactory80)1