mooli tayer has uploaded a new change for review.

Change subject: [core] rename VdsStatic hostname to hostName.
......................................................................

[core] rename VdsStatic hostname to hostName.

Change field name to match setters and getters.

in UpdateVdsCommand changed attribute names are derived
from  getters/setters while the list of changeable fields
are derived from the field name (see vdsHandler.Init())

Change-Id: Ie6461e1ed17506f7ea2a8897ad2a3847d466268f
Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=1003282
Signed-off-by: Mooli Tayer <[email protected]>
---
M 
backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/businessentities/VdsStatic.java
1 file changed, 6 insertions(+), 6 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/32/19932/1

diff --git 
a/backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/businessentities/VdsStatic.java
 
b/backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/businessentities/VdsStatic.java
index 7d6e5fd..9f82ad9 100644
--- 
a/backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/businessentities/VdsStatic.java
+++ 
b/backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/businessentities/VdsStatic.java
@@ -55,7 +55,7 @@
             groups = { CreateEntity.class, UpdateEntity.class })
     @NotNull(groups = { CreateEntity.class, UpdateEntity.class })
     @Size(max = BusinessEntitiesDefinitions.HOST_HOSTNAME_SIZE)
-    private String hostname;
+    private String hostName;
 
     @EditableField
     @Range(min = BusinessEntitiesDefinitions.NETWORK_MIN_LEGAL_PORT,
@@ -182,7 +182,7 @@
     public VdsStatic(String host_name, String ip, String uniqueId, int port, 
int ssh_port, String ssh_username, Guid vds_group_id, Guid vds_id,
             String vds_name, boolean server_SSL_enabled, VDSType vds_type) {
         this();
-        this.hostname = host_name;
+        this.hostName = host_name;
         this.managementIp = ip;
         this.uniqueId = uniqueId;
         this.port = port;
@@ -208,11 +208,11 @@
     }
 
     public String getHostName() {
-        return this.hostname;
+        return this.hostName;
     }
 
     public void setHostName(String value) {
-        this.hostname = value;
+        this.hostName = value;
     }
 
     public String getComment() {
@@ -527,7 +527,7 @@
         final int prime = 31;
         int result = 1;
         result = prime * result + ((id == null) ? 0 : id.hashCode());
-        result = prime * result + ((hostname == null) ? 0 : 
hostname.hashCode());
+        result = prime * result + ((hostName == null) ? 0 : 
hostName.hashCode());
         result = prime * result + ((consoleAddress == null) ? 0 : 
consoleAddress.hashCode());
         result = prime * result + ((managementIp == null) ? 0 : 
managementIp.hashCode());
         result = prime * result + ((name == null) ? 0 : name.hashCode());
@@ -571,7 +571,7 @@
         }
         VdsStatic other = (VdsStatic) obj;
         return (ObjectUtils.objectsEqual(id, other.id)
-                && ObjectUtils.objectsEqual(hostname, other.hostname)
+                && ObjectUtils.objectsEqual(hostName, other.hostName)
                 && ObjectUtils.objectsEqual(consoleAddress, 
other.consoleAddress)
                 && ObjectUtils.objectsEqual(managementIp, other.managementIp)
                 && ObjectUtils.objectsEqual(name, other.name)


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

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

Reply via email to