brooklyn-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From neykov <...@git.apache.org>
Subject [GitHub] incubator-brooklyn pull request: Allow sensors to be aggregated us...
Date Mon, 05 Oct 2015 13:57:28 GMT
Github user neykov commented on a diff in the pull request:

    https://github.com/apache/incubator-brooklyn/pull/919#discussion_r41145950
  
    --- Diff: core/src/main/java/org/apache/brooklyn/enricher/stock/Enrichers.java ---
    @@ -171,6 +173,9 @@ public PropagatorBuilder propagatingAllBut(Iterable<? extends Sensor<?>>
vals) {
             public JoinerBuilder joining(AttributeSensor<?> source) {
                 return new JoinerBuilder(source);
             }
    +        public <S, T> ReducerBuilder<S, T> reducing(Class<? extends Reducer<S,
T>> clazz, List<AttributeSensor<S>> sourceSensors) {
    --- End diff --
    
    Would be nice to have an additional method factory which just uses the generic `Reducer`
implementation, working with `Function<List<?>, ?>` params - which I guess would
be the main way it's used in java land.


---
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