Search in sources :

Example 66 with CIMProperty

use of javax.cim.CIMProperty in project coprhd-controller by CoprHD.

the class CIMObjectPathCreatorFactory method getStorageSynchronized.

@Override
public CIMObjectPath getStorageSynchronized(StorageSystem sourceSystem, BlockObject source, StorageSystem targetSystem, BlockObject target) {
    CIMObjectPath sourcePath = cimAdapter.getBlockObjectPath(sourceSystem, sourceSystem, source);
    CIMObjectPath targetPath = cimAdapter.getBlockObjectPath(sourceSystem, targetSystem, target);
    CIMProperty[] propKeys = { cimPropertyFactory.string(CP_SYNCED_ELEMENT, targetPath.toString()), cimPropertyFactory.string(CP_SYSTEM_ELEMENT, sourcePath.toString()) };
    String protocol = sourceSystem.getSmisUseSSL() ? CimConstants.SECURE_PROTOCOL : CimConstants.DEFAULT_PROTOCOL;
    return CimObjectPathCreator.createInstance(SE_STORAGE_SYNCHRONIZED_SV_SV, getCimConnectionFactory().getNamespace(sourceSystem), propKeys);
}
Also used : CIMProperty(javax.cim.CIMProperty) CIMObjectPath(javax.cim.CIMObjectPath)

Example 67 with CIMProperty

use of javax.cim.CIMProperty in project coprhd-controller by CoprHD.

the class CIMObjectPathCreatorFactory method getInitiatorPaths.

@Override
public CIMObjectPath[] getInitiatorPaths(StorageSystem storageDevice, String[] initiatorNames) throws Exception {
    CIMObjectPath[] initiatorPortPaths = {};
    ArrayList<CIMObjectPath> list = new ArrayList<CIMObjectPath>();
    for (String initiatorName : initiatorNames) {
        CIMProperty[] initiatorKeys = { cimPropertyFactory.string(CP_INSTANCE_ID, initiatorName) };
        CIMObjectPath initiatorPortPath = CimObjectPathCreator.createInstance(CP_SE_STORAGE_HARDWARE_ID, cimConnectionFactory.getNamespace(storageDevice), initiatorKeys);
        list.add(initiatorPortPath);
    }
    initiatorPortPaths = list.toArray(initiatorPortPaths);
    return initiatorPortPaths;
}
Also used : CIMProperty(javax.cim.CIMProperty) CIMObjectPath(javax.cim.CIMObjectPath) ArrayList(java.util.ArrayList)

Example 68 with CIMProperty

use of javax.cim.CIMProperty in project coprhd-controller by CoprHD.

the class CIMObjectPathCreatorFactory method getGroupSynchronizedSettingsPath.

@Override
public CIMObjectPath getGroupSynchronizedSettingsPath(StorageSystem storage, String groupName, String settingsInstance) {
    CIMObjectPath group = cimAdapter.getReplicationGroupPath(storage, groupName);
    CIMObjectPath syncAspect = cimAdapter.getSyncAspectForSourceGroupPath(storage, settingsInstance);
    CIMProperty[] settingsKeys = { cimPropertyFactory.reference(CP_MANAGED_ELEMENT, group), cimPropertyFactory.reference(CP_SETTING_DATA, syncAspect) };
    return CimObjectPathCreator.createInstance(storage.checkIfVmax3() ? SYMM_SETTINGS_DEFINE_STATE_RG_SAFS : CLAR_SETTINGS_DEFINE_STATE_RG_SAFS, cimConnectionFactory.getNamespace(storage), settingsKeys);
}
Also used : CIMProperty(javax.cim.CIMProperty) CIMObjectPath(javax.cim.CIMObjectPath)

Example 69 with CIMProperty

use of javax.cim.CIMProperty in project coprhd-controller by CoprHD.

the class CIMObjectPathCreatorFactory method getGroupSynchronizedPath.

@Override
public CIMObjectPath getGroupSynchronizedPath(StorageSystem storage, String consistencyGroupName, String snapGroupName) {
    CIMObjectPath snapGroup = cimAdapter.getReplicationGroupPath(storage, snapGroupName);
    CIMObjectPath consistencyGroup = cimAdapter.getReplicationGroupPath(storage, consistencyGroupName);
    CIMProperty[] groupSynchronizedKeys = { cimPropertyFactory.reference(CP_SYNCED_ELEMENT, snapGroup), cimPropertyFactory.reference(CP_SYSTEM_ELEMENT, consistencyGroup) };
    return CimObjectPathCreator.createInstance(SE_GROUP_SYNCHRONIZED_RG_RG, cimConnectionFactory.getNamespace(storage), groupSynchronizedKeys);
}
Also used : CIMProperty(javax.cim.CIMProperty) CIMObjectPath(javax.cim.CIMObjectPath)

Example 70 with CIMProperty

use of javax.cim.CIMProperty in project coprhd-controller by CoprHD.

the class CIMObjectPathCreatorFactory method getSyncSettingsPath.

@Override
public CIMObjectPath getSyncSettingsPath(StorageSystem storage, CIMObjectPath volumePath, String aspectInstanceId) {
    CIMObjectPath syncAspectPath = cimAdapter.getSyncAspectPath(storage, aspectInstanceId);
    CIMProperty[] settingsKeys = { cimPropertyFactory.reference(CP_MANAGED_ELEMENT, volumePath), cimPropertyFactory.reference(CP_SETTING_DATA, syncAspectPath) };
    return CimObjectPathCreator.createInstance(storage.checkIfVmax3() ? SYMM_SETTINGS_DEFINE_STATE_SV_SAFS : CLAR_SETTINGS_DEFINE_STATE_SV_SAFS, cimConnectionFactory.getNamespace(storage), settingsKeys);
}
Also used : CIMProperty(javax.cim.CIMProperty) CIMObjectPath(javax.cim.CIMObjectPath)

Aggregations

CIMProperty (javax.cim.CIMProperty)74 CIMObjectPath (javax.cim.CIMObjectPath)57 CIMInstance (javax.cim.CIMInstance)37 ArrayList (java.util.ArrayList)26 WBEMException (javax.wbem.WBEMException)25 DeviceControllerException (com.emc.storageos.exceptions.DeviceControllerException)18 CIMArgument (javax.cim.CIMArgument)16 WBEMClient (javax.wbem.client.WBEMClient)14 IOException (java.io.IOException)11 Volume (com.emc.storageos.db.client.model.Volume)10 DatabaseException (com.emc.storageos.db.exceptions.DatabaseException)10 URI (java.net.URI)9 ServiceCodeException (com.emc.storageos.svcs.errorhandling.resources.ServiceCodeException)8 UnsignedInteger16 (javax.cim.UnsignedInteger16)8 DbClient (com.emc.storageos.db.client.DbClient)7 SmisException (com.emc.storageos.volumecontroller.impl.smis.SmisException)7 AlternateIdConstraint (com.emc.storageos.db.client.constraint.AlternateIdConstraint)6 HashMap (java.util.HashMap)6 ExportMask (com.emc.storageos.db.client.model.ExportMask)5 Initiator (com.emc.storageos.db.client.model.Initiator)5