brooklyn-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From grkvlt <...@git.apache.org>
Subject [GitHub] incubator-brooklyn pull request: Lifecycle Enhancements
Date Fri, 29 Aug 2014 16:28:52 GMT
Github user grkvlt commented on a diff in the pull request:

    https://github.com/apache/incubator-brooklyn/pull/133#discussion_r16906981
  
    --- Diff: core/src/main/java/brooklyn/entity/group/DynamicCluster.java ---
    @@ -166,6 +166,18 @@
                 new TypeToken<Set<Location>>() {},
                 "dynamiccluster.failedSubLocations", "Sub locations that seem to have failed");
     
    +    AttributeSensor<Boolean> CLUSTER_MEMBER = Sensors.newBooleanSensor(
    +            "cluster.member", "Set on an entity if it is a member of a cluster");
    +
    +    AttributeSensor<Boolean> FIRST_MEMBER = Sensors.newBooleanSensor(
    --- End diff --
    
    ```
    if (getConfig(FIRST_MEMBER)) {
        // create database structure
    }
    if (getConfig(CLUSTER_MEMBER)) {
        // setup session cache
    }
    // start web application
    ```


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