knox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From m...@apache.org
Subject [06/25] knox git commit: KNOX-1049 - change BeancConverter for path element
Date Thu, 02 Nov 2017 18:48:10 GMT
KNOX-1049 - change BeancConverter for path element

Project: http://git-wip-us.apache.org/repos/asf/knox/repo
Commit: http://git-wip-us.apache.org/repos/asf/knox/commit/f5490414
Tree: http://git-wip-us.apache.org/repos/asf/knox/tree/f5490414
Diff: http://git-wip-us.apache.org/repos/asf/knox/diff/f5490414

Branch: refs/heads/KNOX-998-Package_Restructuring
Commit: f5490414dfb23a0d9a46e96aa904a1cc8c04f3e4
Parents: 3346d99
Author: Larry McCay <lmccay@hortonworks.com>
Authored: Thu Oct 26 10:21:39 2017 -0400
Committer: Larry McCay <lmccay@hortonworks.com>
Committed: Thu Oct 26 10:21:39 2017 -0400

----------------------------------------------------------------------
 .../apache/hadoop/gateway/service/admin/beans/BeanConverter.java | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/knox/blob/f5490414/gateway-service-admin/src/main/java/org/apache/hadoop/gateway/service/admin/beans/BeanConverter.java
----------------------------------------------------------------------
diff --git a/gateway-service-admin/src/main/java/org/apache/hadoop/gateway/service/admin/beans/BeanConverter.java
b/gateway-service-admin/src/main/java/org/apache/hadoop/gateway/service/admin/beans/BeanConverter.java
index ac3b19c..f94dcad 100644
--- a/gateway-service-admin/src/main/java/org/apache/hadoop/gateway/service/admin/beans/BeanConverter.java
+++ b/gateway-service-admin/src/main/java/org/apache/hadoop/gateway/service/admin/beans/BeanConverter.java
@@ -27,7 +27,7 @@ public class BeanConverter {
     Topology topologyResource = new Topology();
     topologyResource.setName(topology.getName());
     topologyResource.setTimestamp(topology.getTimestamp());
-    topologyResource.setDefaultService(topology.getDefaultServicePath());
+    topologyResource.setPath(topology.getDefaultServicePath());
     topologyResource.setUri(topology.getUri());
     for ( org.apache.hadoop.gateway.topology.Provider provider : topology.getProviders()
) {
       topologyResource.getProviders().add( getProvider(provider) );
@@ -45,7 +45,7 @@ public class BeanConverter {
     org.apache.hadoop.gateway.topology.Topology deploymentTopology = new org.apache.hadoop.gateway.topology.Topology();
     deploymentTopology.setName(topology.getName());
     deploymentTopology.setTimestamp(topology.getTimestamp());
-    deploymentTopology.setDefaultServicePath(topology.getDefaultService());
+    deploymentTopology.setDefaultServicePath(topology.getPath());
     deploymentTopology.setUri(topology.getUri());
     for ( Provider provider : topology.getProviders() ) {
       deploymentTopology.addProvider( getProvider(provider) );


Mime
View raw message