brooklyn-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ahgittin <...@git.apache.org>
Subject [GitHub] brooklyn-server pull request #819: Improve config key descriptions
Date Thu, 14 Sep 2017 07:43:45 GMT
Github user ahgittin commented on a diff in the pull request:

    https://github.com/apache/brooklyn-server/pull/819#discussion_r138818743
  
    --- Diff: core/src/main/java/org/apache/brooklyn/enricher/stock/Joiner.java ---
    @@ -47,31 +47,42 @@
         private static final Logger LOG = LoggerFactory.getLogger(Joiner.class);
     
         public static final ConfigKey<Entity> PRODUCER = ConfigKeys.newConfigKey(Entity.class,
    -            "enricher.producer");
    +            "enricher.producer",
    +            "The entity that has the source sensors (defaults to the entity that the
enricher is attached to)");
    +    
         public static final ConfigKey<Sensor<?>> SOURCE_SENSOR = ConfigKeys.newConfigKey(new
TypeToken<Sensor<?>>() {},
    -            "enricher.sourceSensor");
    +            "enricher.sourceSensor",
    +            "The sensor (expected to be of type Map or Iterable) whose change triggers
re-evaluation of the target value");
    +    
         public static final ConfigKey<Sensor<?>> TARGET_SENSOR = ConfigKeys.newConfigKey(new
TypeToken<Sensor<?>>() {},
    -            "enricher.targetSensor");
    +            "enricher.targetSensor",
    +            "The sensor that will be set on the associated entity, with the target value");
    --- End diff --
    
    `The sensor to be set on the associated entity with the value computed here` ?


---

Mime
View raw message