clearer semantics for cancel, and cancel dependent submitted tasks by default
authorAlex Heneveld <alex.heneveld@cloudsoftcorp.com>
Tue, 19 Jan 2016 12:48:15 +0000 (12:48 +0000)
committerAlex Heneveld <alex.heneveld@cloudsoftcorp.com>
Wed, 20 Jan 2016 16:19:53 +0000 (16:19 +0000)
commitaed078633aaf40a4a9da907469700808a245cc78
tree2ca7557e5211216029758a84072120fd92ee8ee8
parent2f3e465cdebd884cac0bef985f7f2ff96e221347
clearer semantics for cancel, and cancel dependent submitted tasks by default

prevents leaks where dependent tasks (eg resolveValue) are submitted in the background,
then the caller is cancelled; the interruption was not propagated.  now by default it is,
to children tasks and to submitted transients, with options for other (weaker and stronger) cancellations.
see TaskInternal.cancel(TaskCancellationOptions), and new tests for cancelling children in DynamicSequentialTaskTest.

also remove deprecated loose-typing ExecutionUtils.invoke,
more TRACE logging for activities,
and wrap batch config in a task so more resolutions are nested
20 files changed:
brooklyn-docs/guide/misc/release-notes.md
brooklyn-server/api/src/main/java/org/apache/brooklyn/api/mgmt/Task.java
brooklyn-server/camp/camp-brooklyn/src/main/java/org/apache/brooklyn/camp/brooklyn/spi/dsl/BrooklynDslDeferredSupplier.java
brooklyn-server/core/src/main/java/org/apache/brooklyn/core/objs/proxy/InternalEntityFactory.java
brooklyn-server/core/src/main/java/org/apache/brooklyn/core/sensor/DependentConfiguration.java
brooklyn-server/core/src/main/java/org/apache/brooklyn/util/core/task/BasicExecutionContext.java
brooklyn-server/core/src/main/java/org/apache/brooklyn/util/core/task/BasicExecutionManager.java
brooklyn-server/core/src/main/java/org/apache/brooklyn/util/core/task/BasicTask.java
brooklyn-server/core/src/main/java/org/apache/brooklyn/util/core/task/DynamicSequentialTask.java
brooklyn-server/core/src/main/java/org/apache/brooklyn/util/core/task/ExecutionUtils.java [deleted file]
brooklyn-server/core/src/main/java/org/apache/brooklyn/util/core/task/ListenableForwardingFuture.java
brooklyn-server/core/src/main/java/org/apache/brooklyn/util/core/task/ScheduledTask.java
brooklyn-server/core/src/main/java/org/apache/brooklyn/util/core/task/TaskInternal.java
brooklyn-server/core/src/main/java/org/apache/brooklyn/util/core/task/TaskPredicates.java
brooklyn-server/core/src/test/java/org/apache/brooklyn/util/core/task/BasicTaskExecutionPerformanceTest.java
brooklyn-server/core/src/test/java/org/apache/brooklyn/util/core/task/DynamicSequentialTaskTest.java
brooklyn-server/core/src/test/java/org/apache/brooklyn/util/core/task/NonBasicTaskExecutionTest.java
brooklyn-server/core/src/test/java/org/apache/brooklyn/util/core/task/ScheduledExecutionTest.java
brooklyn-server/core/src/test/java/org/apache/brooklyn/util/core/task/TaskPredicatesTest.java
brooklyn-server/rest/rest-server/src/main/java/org/apache/brooklyn/rest/resources/EntityConfigResource.java