brooklyn-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aledsage <>
Subject [GitHub] incubator-brooklyn pull request: Allow a UsageListener (i.e. for m...
Date Mon, 10 Nov 2014 11:30:51 GMT
Github user aledsage commented on a diff in the pull request:
    --- Diff: core/src/main/java/brooklyn/management/internal/ ---
    @@ -18,20 +18,47 @@
    +import java.util.List;
    +import java.util.Map;
     import java.util.Set;
    +import brooklyn.config.ConfigKey;
     import brooklyn.entity.Application;
    +import brooklyn.entity.basic.ConfigKeys;
     import brooklyn.entity.basic.Lifecycle;
     import brooklyn.location.Location;
     public interface UsageManager {
    +    @SuppressWarnings("serial")
    +    public static final ConfigKey<List<UsageListener>> USAGE_LISTENERS =
    +            new TypeToken<List<UsageListener>>() {},
    +            "brooklyn.usageManager.listeners", "Optional usage listeners (i.e. for metering)",
    +            ImmutableList.<UsageListener>of());
    +    public static interface UsageListener {
    --- End diff --
    Given it's in `UsageManager` then I'm ok with the name `UsageListener` rather than `ManagementEventListener`
(the latter might suggest a wider range of events).

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 or file a JIRA ticket
with INFRA.

View raw message