You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@brooklyn.apache.org by aledsage <gi...@git.apache.org> on 2015/01/09 10:48:07 UTC

[GitHub] incubator-brooklyn pull request: Add configuration to skip start i...

Github user aledsage commented on a diff in the pull request:

    https://github.com/apache/incubator-brooklyn/pull/364#discussion_r22707836
  
    --- Diff: core/src/main/java/brooklyn/entity/basic/BrooklynConfigKeys.java ---
    @@ -55,8 +57,36 @@
                 "this should include something readable, and must include a hash of all data which differentiates an installation " +
                 "(e.g. version, plugins, etc), but should be the same where install dirs can be shared to allow for re-use");
     
    -    public static final ConfigKey<Boolean> ENTITY_STARTED = newBooleanConfigKey("entity.started", "Skip the startup process entirely, for running services", Boolean.FALSE);
    -    public static final ConfigKey<Boolean> SKIP_INSTALLATION = newBooleanConfigKey("install.skip", "Skip the driver install commands entirely, for pre-installed software", Boolean.FALSE);
    +    /**
    +     * Set this configuration value to true if the entity installation, customization and launch process is to be skipped entirely.
    +     * <p>
    +     * This is usually because the process or service the entity represents is already present and started, as part of the image
    +     * being used. The {@link Startable#SERVICE_UP} attribute will be set in the usual manner.
    +     * <p>
    +     * If this key is set on a {@link Location} then all entities in that location will be treated in this way. This is useful
    +     * when the location is configured with a particular image containing installed and running services.
    +     *
    +     * @see #ENTITY_RUNNING
    +     */
    +    public static final ConfigKey<Boolean> ENTITY_STARTED = newBooleanConfigKey("entity.started", "Skip the startup process entirely, for running services");
    +
    +    /**
    +     * Set this configuration value to true to skip the entity startup process as with {@link #ENTITY_STARTED} if the process or
    +     * service represented by the entity is already running, otherwise proceed normally. This is determined using the driver's
    +     * {@code isRunning()} method.
    +     * <p>
    +     * If this key is set on a {@link Location} then all entities in that location will be treated in this way, again as with {@link #ENTITY_STARTED}.
    +     *
    +     * @see #ENTITY_STARTED
    +     */
    +    public static final ConfigKey<Boolean> ENTITY_RUNNING = newBooleanConfigKey("entity.running", "Skip the startup process entirely, if service already running");
    +
    +    /**
    +     * Set this configuration value to true if the entity installation, customization and launch process is to be skipped entirely.
    --- End diff --
    
    Incorrect javadoc - should be"if the entity installation process is to be skipped entirely."


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