brooklyn-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From geomacy <...@git.apache.org>
Subject [GitHub] brooklyn-server pull request #443: Adds maxConcurrentChildCommands paramter ...
Date Fri, 18 Nov 2016 17:25:05 GMT
Github user geomacy commented on a diff in the pull request:

    https://github.com/apache/brooklyn-server/pull/443#discussion_r88693348
  
    --- Diff: core/src/main/java/org/apache/brooklyn/entity/group/DynamicClusterImpl.java
---
    @@ -551,8 +577,9 @@ public void restart() {
                     Iterables.filter(getChildren(), Predicates.and(Predicates.instanceOf(Startable.class),
EntityPredicates.isManaged()))));
             } else if ("parallel".equalsIgnoreCase(mode)) {
                 ServiceStateLogic.setExpectedState(this, Lifecycle.STARTING);
    -            DynamicTasks.queue(Effectors.invocationParallel(Startable.RESTART, null,

    -                Iterables.filter(getChildren(), Predicates.and(Predicates.instanceOf(Startable.class),
EntityPredicates.isManaged()))));
    +            for (Entity member : Iterables.filter(getChildren(), Predicates.and(Predicates.instanceOf(Startable.class),
EntityPredicates.isManaged()))) {
    --- End diff --
    
    worth a few static imports for readability?
    ```
                for (Entity member : filter(getChildren(), and(instanceOf(Startable.class),
isManaged()))) {
    ```


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

Mime
View raw message