anmolbabu has posted comments on this change.

Change subject: engine: Bll to resume geo-rep session
......................................................................


Patch Set 4:

(4 comments)

http://gerrit.ovirt.org/#/c/32935/4/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/gluster/ResumeGeoRepGlusterVolumeCommand.java
File 
backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/gluster/ResumeGeoRepGlusterVolumeCommand.java:

Line 16:     @Override
Line 17:     protected void setActionMessageParameters() {
Line 18:         
addCanDoActionMessage(VdcBllMessages.VAR_ACTION_GEO_REP_RESUME);
Line 19:         
addCanDoActionMessage(VdcBllMessages.VAR__TYPE__GLUSTER_VOLUME);
Line 20:     }
> Add canDoAction to verify that the session is in paused state. You can only
Done
Line 21: 
Line 22: 
Line 23:     @Override
Line 24:     protected void executeCommand() {


Line 23:     @Override
Line 24:     protected void executeCommand() {
Line 25:         ResumeGeoRepGlusterVolumeParameters parameters = 
getParameters();
Line 26:         setGlusterVolumeId(parameters.getVolumeId());
Line 27:         VDSReturnValue returnValue = 
runVdsCommand(VDSCommandType.ResumeGeoRepGlusterVolume, new 
GlusterVolumeResumeGeoRepVDSParameters(upServer.getId(), 
getGlusterVolumeName(), parameters.getSlaveHostName(), 
parameters.getSlaveVolumeName(), parameters.isForce()));
> To resume a session, you would be passing a geo-rep session Id. The volumeN
Done
Line 28:         setSucceeded(returnValue.getSucceeded());
Line 29:         if(!getSucceeded()) {
Line 30:             
handleVdsError(AuditLogType.GLUSTER_VOLUME_GEO_REP_RESUME_FAILED, 
returnValue.getVdsError().getMessage());
Line 31:             return;


Line 24:     protected void executeCommand() {
Line 25:         ResumeGeoRepGlusterVolumeParameters parameters = 
getParameters();
Line 26:         setGlusterVolumeId(parameters.getVolumeId());
Line 27:         VDSReturnValue returnValue = 
runVdsCommand(VDSCommandType.ResumeGeoRepGlusterVolume, new 
GlusterVolumeResumeGeoRepVDSParameters(upServer.getId(), 
getGlusterVolumeName(), parameters.getSlaveHostName(), 
parameters.getSlaveVolumeName(), parameters.isForce()));
Line 28:         setSucceeded(returnValue.getSucceeded());
> Update session's state once succeeded.
Done
Line 29:         if(!getSucceeded()) {
Line 30:             
handleVdsError(AuditLogType.GLUSTER_VOLUME_GEO_REP_RESUME_FAILED, 
returnValue.getVdsError().getMessage());
Line 31:             return;
Line 32:         }


http://gerrit.ovirt.org/#/c/32935/4/backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/action/gluster/ResumeGeoRepGlusterVolumeParameters.java
File 
backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/action/gluster/ResumeGeoRepGlusterVolumeParameters.java:

Line 1: package org.ovirt.engine.core.common.action.gluster;
Line 2: 
Line 3: import org.ovirt.engine.core.compat.Guid;
Line 4: 
Line 5: public class ResumeGeoRepGlusterVolumeParameters extends 
GlusterVolumeParameters {
> I feel this parameter class is defined as part of http://gerrit.ovirt.org/#
Done
Line 6: 
Line 7:     private static final long serialVersionUID = 1L;
Line 8: 
Line 9:     private String slaveHostName;


-- 
To view, visit http://gerrit.ovirt.org/32935
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: comment
Gerrit-Change-Id: I4c8a94c84758d89096c8726b9c11d5d0990a7002
Gerrit-PatchSet: 4
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: anmolbabu <[email protected]>
Gerrit-Reviewer: Kanagaraj M <[email protected]>
Gerrit-Reviewer: Ramesh N <[email protected]>
Gerrit-Reviewer: Sahina Bose <[email protected]>
Gerrit-Reviewer: Shubhendu Tripathi <[email protected]>
Gerrit-Reviewer: anmolbabu <[email protected]>
Gerrit-Reviewer: [email protected]
Gerrit-Reviewer: oVirt Jenkins CI Server
Gerrit-HasComments: Yes
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to