brooklyn-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <>
Subject [jira] [Commented] (BROOKLYN-49) Catalogue should be persisted and used when rebinding
Date Fri, 19 Sep 2014 16:25:33 GMT


ASF GitHub Bot commented on BROOKLYN-49:

Github user sjcorbett commented on a diff in the pull request:
    --- Diff: api/src/main/java/brooklyn/catalog/ ---
    @@ -19,17 +19,20 @@
     package brooklyn.catalog;
     import java.util.List;
     import javax.annotation.Nonnull;
     import javax.annotation.Nullable;
    +import brooklyn.basic.BrooklynObject;
    +import brooklyn.entity.rebind.RebindSupport;
    +import brooklyn.entity.rebind.Rebindable;
    +import brooklyn.mementos.CatalogItemMemento;
    -public interface CatalogItem<T,SpecT> {
    +public interface CatalogItem<T,SpecT> extends BrooklynObject, Rebindable {
         public static enum CatalogItemType {
    --- End diff --
    Templates are intended to denote applications. You're right that it determines what's
presented where in the web ui. Agreed enricher should be added. I think configuration has
been wrong the entire time it's there - CatalogResource as had `// FIXME configurations/ not
supported` as long as I can remember.

> Catalogue should be persisted and used when rebinding
> -----------------------------------------------------
>                 Key: BROOKLYN-49
>                 URL:
>             Project: Brooklyn
>          Issue Type: Improvement
>            Reporter: Sam Corbett
>            Assignee: Sam Corbett
> Proposal:
> The catalogue, consisting of application templates, entities, policies and 'configuration'
(whose purpose is unknown to me and is unused in general), will be persisted to a `catalog`
directory alongside enrichers, entities, locations, nodes, plane and policies. Location definitions
(that are conceptually linked but are unrelated in code) will be stored too.
> Modes of operation:
> * If persistence if disabled load the default catalogue;
> * If persistence is enabled but there is no persisted catalogue (i.e. the server is running
for the first time) then load the default catalogue;
> * Otherwise load the persisted catalogue. Do _not_ load the default catalogue. 

This message was sent by Atlassian JIRA

View raw message