Allon Mureinik has posted comments on this change.
Change subject: core: [WIP] add memory snapshots capability to VdsBroker
......................................................................
Patch Set 7: I would prefer that you didn't submit this
(4 inline comments)
Minor issues
....................................................
File
backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/vdscommands/SnapshotVDSCommandParameters.java
Line 5: import org.ovirt.engine.core.common.businessentities.DiskImage;
Line 6: import org.ovirt.engine.core.compat.Guid;
Line 7:
Line 8: public class SnapshotVDSCommandParameters extends
VdsAndVmIDVDSParametersBase {
Line 9: /** Those are the disks images that snapshot should be taken for */
s/Those are//
Line 10: private List<DiskImage> images;
Line 11: /** String representation of the volume in which the memory will
be dump to */
Line 12: private String memoryVolume;
Line 13:
Line 15: super(vdsId, vmId);
Line 16: this.images = images;
Line 17: }
Line 18:
Line 19: public SnapshotVDSCommandParameters(Guid vdsId, Guid vmId,
List<DiskImage> images, String memoryVolume) {
Why do you still need this constructor?
Line 20: this(vdsId, vmId, images);
Line 21: this.memoryVolume = memoryVolume;
Line 22: }
Line 23:
....................................................
File
backend/manager/modules/vdsbroker/src/main/java/org/ovirt/engine/core/vdsbroker/vdsbroker/SnapshotVDSCommand.java
Line 41: Map<String, String> imageParams = new HashMap<String,
String>();
Line 42: imageParams.put("domainID",
image.getStorageIds().get(0).toString());
Line 43: imageParams.put("imageID",
image.getimage_group_id().toString());
Line 44: imageParams.put("baseVolumeID",
image.getParentId().toString());
Line 45: imageParams.put("volumeID",
image.getImageId().toString());
This will be removed by Eclipse auto-formatting next time someone touches this
file.
I propose to drop it in order to minimize the "noise" around this patch
Line 46: result[i] = imageParams;
Line 47: }
Line 48:
Line 49: return result;
....................................................
File
backend/manager/modules/vdsbroker/src/main/java/org/ovirt/engine/core/vdsbroker/vdsbroker/VdsServerWrapper.java
Line 843: return vdsServer.futurePing();
Line 844: }
Line 845:
Line 846: @Override
Line 847: public StatusOnlyReturnForXmlRpc snapshot(String vmId,
Map<String, String>[] disks) {
why not just return snapshot(vmId, Map<String, String>[] disks, null) ?
Line 848: try {
Line 849: Map<String, Object> xmlRpcReturnValue =
vdsServer.snapshot(vmId, disks);
Line 850: StatusOnlyReturnForXmlRpc wrapper = new
StatusOnlyReturnForXmlRpc(xmlRpcReturnValue);
Line 851: return wrapper;
--
To view, visit http://gerrit.ovirt.org/14201
To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: comment
Gerrit-Change-Id: Id928c76562d520acbf36ca01e074e51cbdcccaf9
Gerrit-PatchSet: 7
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Arik Hadas <[email protected]>
Gerrit-Reviewer: Allon Mureinik <[email protected]>
Gerrit-Reviewer: Arik Hadas <[email protected]>
Gerrit-Reviewer: Liron Ar <[email protected]>
Gerrit-Reviewer: Maor Lipchuk <[email protected]>
Gerrit-Reviewer: Omer Frenkel <[email protected]>
Gerrit-Reviewer: Roy Golan <[email protected]>
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches