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);
}
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;
}
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);
}
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);
}
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);
}
Aggregations