Fixed a couple of typos, use ConfigKeys.newBooleanConfigKey
Project: http://git-wip-us.apache.org/repos/asf/brooklyn-library/repo Commit: http://git-wip-us.apache.org/repos/asf/brooklyn-library/commit/490fa1da Tree: http://git-wip-us.apache.org/repos/asf/brooklyn-library/tree/490fa1da Diff: http://git-wip-us.apache.org/repos/asf/brooklyn-library/diff/490fa1da Branch: refs/heads/0.6.0 Commit: 490fa1dac3956e4799d9f33dfa2f2dafb3818589 Parents: 5403640 Author: Martin Harris <[email protected]> Authored: Fri Nov 15 17:22:15 2013 +0000 Committer: Martin Harris <[email protected]> Committed: Fri Nov 15 17:22:15 2013 +0000 ---------------------------------------------------------------------- .../brooklyn/entity/database/postgresql/PostgreSqlNode.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/brooklyn-library/blob/490fa1da/software/database/src/main/java/brooklyn/entity/database/postgresql/PostgreSqlNode.java ---------------------------------------------------------------------- diff --git a/software/database/src/main/java/brooklyn/entity/database/postgresql/PostgreSqlNode.java b/software/database/src/main/java/brooklyn/entity/database/postgresql/PostgreSqlNode.java index b092b5a..9c73d82 100644 --- a/software/database/src/main/java/brooklyn/entity/database/postgresql/PostgreSqlNode.java +++ b/software/database/src/main/java/brooklyn/entity/database/postgresql/PostgreSqlNode.java @@ -2,6 +2,7 @@ package brooklyn.entity.database.postgresql; import brooklyn.catalog.Catalog; import brooklyn.config.ConfigKey; +import brooklyn.entity.basic.ConfigKeys; import brooklyn.entity.database.DatabaseNode; import brooklyn.entity.proxying.ImplementedBy; import brooklyn.event.basic.BasicConfigKey; @@ -33,8 +34,8 @@ public interface PostgreSqlNode extends DatabaseNode { public static final PortAttributeSensorAndConfigKey POSTGRESQL_PORT = new PortAttributeSensorAndConfigKey("postgresql.port", "PostgreSQL port", PortRanges.fromString("5432+")); - @SetFromFlag("disconnetOnStop") + @SetFromFlag("disconnectOnStop") public static final ConfigKey<Boolean> DISCONNECT_ON_STOP = - new BasicConfigKey<Boolean>(Boolean.class, "postgresql.disconnecto.on.stop", "If true, PostgreSQL will immediately disconnet (pg_ctl -m immediate stop) all current connections when the node is stopped", true); + ConfigKeys.newBooleanConfigKey("postgresql.disconnect.on.stop", "If true, PostgreSQL will immediately disconnet (pg_ctl -m immediate stop) all current connections when the node is stopped", true); }
