mark the batch config read as transient

otherwise it wipes out other things from activity history


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

Branch: refs/heads/master
Commit: ff1ed3cd66be2168f8386da163fb287b131bf54e
Parents: 4f607ec
Author: Alex Heneveld <alex.henev...@cloudsoftcorp.com>
Authored: Thu Nov 9 18:51:17 2017 +0000
Committer: Alex Heneveld <alex.henev...@cloudsoftcorp.com>
Committed: Thu Nov 9 18:53:14 2017 +0000

----------------------------------------------------------------------
 .../apache/brooklyn/rest/resources/EntityConfigResource.java   | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/brooklyn-server/blob/ff1ed3cd/rest/rest-resources/src/main/java/org/apache/brooklyn/rest/resources/EntityConfigResource.java
----------------------------------------------------------------------
diff --git 
a/rest/rest-resources/src/main/java/org/apache/brooklyn/rest/resources/EntityConfigResource.java
 
b/rest/rest-resources/src/main/java/org/apache/brooklyn/rest/resources/EntityConfigResource.java
index 3431b99..a3698b9 100644
--- 
a/rest/rest-resources/src/main/java/org/apache/brooklyn/rest/resources/EntityConfigResource.java
+++ 
b/rest/rest-resources/src/main/java/org/apache/brooklyn/rest/resources/EntityConfigResource.java
@@ -29,6 +29,8 @@ import org.apache.brooklyn.core.config.BasicConfigKey;
 import org.apache.brooklyn.core.entity.Entities;
 import org.apache.brooklyn.core.entity.EntityInternal;
 import org.apache.brooklyn.core.entity.internal.EntityConfigMap;
+import org.apache.brooklyn.core.mgmt.BrooklynTags;
+import org.apache.brooklyn.core.mgmt.BrooklynTaskTags;
 import org.apache.brooklyn.core.mgmt.entitlement.Entitlements;
 import org.apache.brooklyn.core.mgmt.entitlement.Entitlements.EntityAndItem;
 import org.apache.brooklyn.rest.api.EntityConfigApi;
@@ -88,7 +90,9 @@ public class EntityConfigResource extends 
AbstractBrooklynRestResource implement
         }
 
         // wrap in a task for better runtime view
-        return Entities.submit(entity, 
Tasks.<Map<String,Object>>builder().displayName("REST API batch config 
read").body(new BatchConfigRead(mgmt(), this, entity, 
raw)).build()).getUnchecked();
+        return Entities.submit(entity, 
Tasks.<Map<String,Object>>builder().displayName("REST API batch config read")
+            .tag(BrooklynTaskTags.TRANSIENT_TASK_TAG)
+            .body(new BatchConfigRead(mgmt(), this, entity, 
raw)).build()).getUnchecked();
     }
     
     private static class BatchConfigRead implements 
Callable<Map<String,Object>> {

Reply via email to