Eli Mesika has uploaded a new change for review.

Change subject: [WIP] core: adding jobId and stepId to VdcAction..
......................................................................

[WIP] core: adding jobId and stepId to VdcAction..

core: adding jobId and stepId to VdcActionParametersBase

Change-Id: I66797a54605eac45eabd17e26c7826484725cc23
Signed-off-by: Eli Mesika <[email protected]>
Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=872719
---
M 
backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/action/VdcActionParametersBase.java
1 file changed, 33 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/22/15222/1

diff --git 
a/backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/action/VdcActionParametersBase.java
 
b/backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/action/VdcActionParametersBase.java
index 2d9f032..e89566b 100644
--- 
a/backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/action/VdcActionParametersBase.java
+++ 
b/backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/action/VdcActionParametersBase.java
@@ -10,6 +10,7 @@
 import org.ovirt.engine.core.common.utils.ValidationUtils;
 import org.ovirt.engine.core.common.validation.group.PreRun;
 import org.ovirt.engine.core.compat.Guid;
+import org.ovirt.engine.core.compat.NGuid;
 import org.ovirt.engine.core.compat.TransactionScopeOption;
 
 public class VdcActionParametersBase implements java.io.Serializable {
@@ -56,6 +57,9 @@
             groups = PreRun.class)
     @Size(min = 1, max = BusinessEntitiesDefinitions.CORRELATION_ID_SIZE, 
groups = PreRun.class)
     private String correlationId;
+
+    private NGuid jobId;
+    private NGuid stepId;
 
     public VdcActionParametersBase() {
         shouldbelogged = true;
@@ -215,6 +219,22 @@
         this.executionIndex = executionIndex;
     }
 
+    public NGuid getJobId() {
+        return jobId;
+    }
+
+    public void setJobId(NGuid jobId) {
+        this.jobId = jobId;
+    }
+
+    public NGuid getStepId() {
+        return stepId;
+    }
+
+    public void setStepId(NGuid stepId) {
+        this.stepId = stepId;
+    }
+
     public void incrementExecutionIndex() {
         executionIndex++;
     }
@@ -237,6 +257,8 @@
         result = prime * result + ((taskIds == null) ? 0 : taskIds.hashCode());
         result = prime * result + ((correlationId == null) ? 0 : 
correlationId.hashCode());
         result = prime * result + executionIndex;
+        result = prime * result + ((jobId == null) ? 0 : jobId.hashCode());
+        result = prime * result + ((stepId == null) ? 0 : stepId.hashCode());
         return result;
     }
 
@@ -284,6 +306,17 @@
             return false;
         if (executionIndex != other.executionIndex)
             return false;
+        if (jobId == null) {
+            if (other.jobId != null)
+                return false;
+        } else if (!jobId.equals(other.jobId))
+            return false;
+        if (stepId == null) {
+            if (other.stepId != null)
+                return false;
+        } else if (!stepId.equals(other.stepId))
+            return false;
+
         return true;
     }
 


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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I66797a54605eac45eabd17e26c7826484725cc23
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Eli Mesika <[email protected]>
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to