brooklyn-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From henev...@apache.org
Subject [15/39] brooklyn-server git commit: Add searchPath to Entities.dumpInfo.
Date Fri, 21 Apr 2017 22:55:34 GMT
Add searchPath to Entities.dumpInfo.


Project: http://git-wip-us.apache.org/repos/asf/brooklyn-server/repo
Commit: http://git-wip-us.apache.org/repos/asf/brooklyn-server/commit/63beadae
Tree: http://git-wip-us.apache.org/repos/asf/brooklyn-server/tree/63beadae
Diff: http://git-wip-us.apache.org/repos/asf/brooklyn-server/diff/63beadae

Branch: refs/heads/master
Commit: 63beadae3ae7cfd42afca7352d4700b324c54a50
Parents: b4e56a5
Author: Geoff Macartney <geoff.macartney@cloudsoftcorp.com>
Authored: Tue Mar 21 12:04:59 2017 +0000
Committer: Geoff Macartney <geoff.macartney@cloudsoftcorp.com>
Committed: Thu Apr 20 11:20:36 2017 +0100

----------------------------------------------------------------------
 .../main/java/org/apache/brooklyn/core/entity/Entities.java | 9 +++++++++
 1 file changed, 9 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/brooklyn-server/blob/63beadae/core/src/main/java/org/apache/brooklyn/core/entity/Entities.java
----------------------------------------------------------------------
diff --git a/core/src/main/java/org/apache/brooklyn/core/entity/Entities.java b/core/src/main/java/org/apache/brooklyn/core/entity/Entities.java
index 3f1857f..acad9d2 100644
--- a/core/src/main/java/org/apache/brooklyn/core/entity/Entities.java
+++ b/core/src/main/java/org/apache/brooklyn/core/entity/Entities.java
@@ -329,6 +329,15 @@ public class Entities {
         if (Strings.isNonBlank(e.getCatalogItemId())) {
             out.append(currentIndentation+tab+tab+"catalogItemId = "+e.getCatalogItemId()+"\n");
         }
+        final List<String> searchPath = e.getCatalogItemIdSearchPath();
+        if (!searchPath.isEmpty()) {
+            out.append(currentIndentation + tab + tab + "searchPath = [");
+            for (int i = 0 ; i < searchPath.size() ; i++) {
+                out.append(i > 0 ? ",\n" : "\n");
+                out.append(currentIndentation + tab + tab + searchPath.get(i));
+            }
+            out.append("\n" + currentIndentation + tab + tab + "]");
+        }
 
         out.append(currentIndentation+tab+tab+"locations = "+e.getLocations()+"\n");
 


Mime
View raw message