You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@unomi.apache.org by sh...@apache.org on 2017/01/27 10:18:48 UTC

incubator-unomi git commit: Remove unused hostName field.

Repository: incubator-unomi
Updated Branches:
  refs/heads/master f40a24eef -> 81d5e3afa


Remove unused hostName field.

Signed-off-by: Serge Huber <sh...@apache.org>


Project: http://git-wip-us.apache.org/repos/asf/incubator-unomi/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-unomi/commit/81d5e3af
Tree: http://git-wip-us.apache.org/repos/asf/incubator-unomi/tree/81d5e3af
Diff: http://git-wip-us.apache.org/repos/asf/incubator-unomi/diff/81d5e3af

Branch: refs/heads/master
Commit: 81d5e3afaabd7ff4e3a04008e599b0cb20cbf324
Parents: f40a24e
Author: Serge Huber <sh...@apache.org>
Authored: Fri Jan 27 11:18:41 2017 +0100
Committer: Serge Huber <sh...@apache.org>
Committed: Fri Jan 27 11:18:41 2017 +0100

----------------------------------------------------------------------
 .../java/org/apache/unomi/api/ClusterNode.java   | 19 -------------------
 .../services/services/ClusterServiceImpl.java    |  1 -
 2 files changed, 20 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-unomi/blob/81d5e3af/api/src/main/java/org/apache/unomi/api/ClusterNode.java
----------------------------------------------------------------------
diff --git a/api/src/main/java/org/apache/unomi/api/ClusterNode.java b/api/src/main/java/org/apache/unomi/api/ClusterNode.java
index 0917008..ba4d579 100644
--- a/api/src/main/java/org/apache/unomi/api/ClusterNode.java
+++ b/api/src/main/java/org/apache/unomi/api/ClusterNode.java
@@ -28,7 +28,6 @@ public class ClusterNode implements Serializable {
 
     private double cpuLoad;
     private double[] loadAverage;
-    private String hostName;
     private String hostAddress;
     private int publicPort;
     private String secureHostAddress;
@@ -62,24 +61,6 @@ public class ClusterNode implements Serializable {
     }
 
     /**
-     * Retrieves the host name.
-     *
-     * @return the host name
-     */
-    public String getHostName() {
-        return hostName;
-    }
-
-    /**
-     * Sets the host name.
-     *
-     * @param hostName the host name
-     */
-    public void setHostName(String hostName) {
-        this.hostName = hostName;
-    }
-
-    /**
      * Retrieves the host address.
      *
      * @return the host address

http://git-wip-us.apache.org/repos/asf/incubator-unomi/blob/81d5e3af/services/src/main/java/org/apache/unomi/services/services/ClusterServiceImpl.java
----------------------------------------------------------------------
diff --git a/services/src/main/java/org/apache/unomi/services/services/ClusterServiceImpl.java b/services/src/main/java/org/apache/unomi/services/services/ClusterServiceImpl.java
index eabe48b..0e9744c 100644
--- a/services/src/main/java/org/apache/unomi/services/services/ClusterServiceImpl.java
+++ b/services/src/main/java/org/apache/unomi/services/services/ClusterServiceImpl.java
@@ -199,7 +199,6 @@ public class ClusterServiceImpl implements ClusterService {
         }
         for (org.apache.karaf.cellar.core.Node karafCellarNode : karafCellarNodes) {
             ClusterNode clusterNode = new ClusterNode();
-            clusterNode.setHostName(karafCellarNode.getHost());
             String publicEndpoint = publicNodeEndpoints.get(karafCellarNode.getId());
             if (publicEndpoint != null) {
                 String[] publicEndpointParts = publicEndpoint.split(":");