use of com.emc.storageos.model.block.CopiesParam in project coprhd-controller by CoprHD.
the class CreateContinuousCopy method doExecute.
@Override
protected Tasks<VolumeRestRep> doExecute() throws Exception {
Copy copy = new Copy();
if (name != null) {
copy.setName(name);
}
copy.setName(name);
copy.setCount(count);
copy.setType(type);
if (copyId != null) {
copy.setCopyID(copyId);
}
CopiesParam param = new CopiesParam();
param.getCopies().add(copy);
return getClient().blockVolumes().startContinuousCopies(volumeId, param);
}
use of com.emc.storageos.model.block.CopiesParam in project coprhd-controller by CoprHD.
the class FailoverBlockConsistencyGroup method doExecute.
@Override
protected Tasks<BlockConsistencyGroupRestRep> doExecute() throws Exception {
Copy copy = new Copy();
copy.setType(type);
copy.setCopyID(failoverTarget);
if (pointInTime != null) {
copy.setPointInTime(pointInTime);
}
CopiesParam param = new CopiesParam();
param.getCopies().add(copy);
return getClient().blockConsistencyGroups().failover(consistencyGroupId, param);
}
use of com.emc.storageos.model.block.CopiesParam in project coprhd-controller by CoprHD.
the class PauseContinuousCopy method doExecute.
@Override
protected Tasks<VolumeRestRep> doExecute() throws Exception {
Copy copy = new Copy();
copy.setCopyID(continuousCopyId);
copy.setType(type);
CopiesParam param = new CopiesParam();
param.getCopies().add(copy);
return getClient().blockVolumes().pauseContinuousCopies(volumeId, param);
}
use of com.emc.storageos.model.block.CopiesParam in project coprhd-controller by CoprHD.
the class ResumeContinuousCopy method doExecute.
@Override
protected Tasks<VolumeRestRep> doExecute() throws Exception {
Copy copy = new Copy();
copy.setCopyID(continuousCopyId);
copy.setType(type);
CopiesParam param = new CopiesParam();
param.getCopies().add(copy);
return getClient().blockVolumes().resumeContinuousCopies(volumeId, param);
}
use of com.emc.storageos.model.block.CopiesParam in project coprhd-controller by CoprHD.
the class SwapCGContinuousCopies method doExecute.
@Override
protected Tasks<BlockConsistencyGroupRestRep> doExecute() throws Exception {
Copy copy = new Copy();
copy.setType(type);
copy.setCopyID(failoverTarget);
CopiesParam param = new CopiesParam();
param.getCopies().add(copy);
return getClient().blockConsistencyGroups().swap(consistencyGroupId, param);
}
Aggregations