Sahina Bose has uploaded a new change for review. Change subject: engine: Added hostId to task status return ......................................................................
engine: Added hostId to task status return Added hostId to task status return as this is needed to build the host href links in REST API Change-Id: I89beb74dc5b7b8aa73ee99d811540d21bbe3eb3f Signed-off-by: Sahina Bose <[email protected]> --- M backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/gluster/GetGlusterVolumeRebalanceStatusQuery.java M backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/businessentities/gluster/GlusterVolumeTaskStatusForHost.java 2 files changed, 12 insertions(+), 0 deletions(-) git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/03/20403/1 diff --git a/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/gluster/GetGlusterVolumeRebalanceStatusQuery.java b/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/gluster/GetGlusterVolumeRebalanceStatusQuery.java index 7e9fabf..9452285 100644 --- a/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/gluster/GetGlusterVolumeRebalanceStatusQuery.java +++ b/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/gluster/GetGlusterVolumeRebalanceStatusQuery.java @@ -76,6 +76,7 @@ VDS host = getVdsDao().get(glusterServer.getId()); if (host != null) { hostStatus.setHostName(host.getName()); + hostStatus.setHostId(host.getId()); } } } diff --git a/backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/businessentities/gluster/GlusterVolumeTaskStatusForHost.java b/backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/businessentities/gluster/GlusterVolumeTaskStatusForHost.java index e36892c..a0e63b5 100644 --- a/backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/businessentities/gluster/GlusterVolumeTaskStatusForHost.java +++ b/backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/businessentities/gluster/GlusterVolumeTaskStatusForHost.java @@ -8,6 +8,7 @@ private String hostName; private Guid hostUuid; + private Guid hostId; public GlusterVolumeTaskStatusForHost() { } @@ -18,10 +19,20 @@ public void setHostName(String hostName) { this.hostName = hostName; } + public Guid getHostUuid() { return this.hostUuid; } public void setHostUuid(Guid id) { this.hostUuid = id; } + + public Guid getHostId() { + return hostId; + } + + public void setHostId(Guid hostId) { + this.hostId = hostId; + } + } -- To view, visit http://gerrit.ovirt.org/20403 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I89beb74dc5b7b8aa73ee99d811540d21bbe3eb3f Gerrit-PatchSet: 1 Gerrit-Project: ovirt-engine Gerrit-Branch: master Gerrit-Owner: Sahina Bose <[email protected]> _______________________________________________ Engine-patches mailing list [email protected] http://lists.ovirt.org/mailman/listinfo/engine-patches
