brooklyn-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rich...@apache.org
Subject [19/21] git commit: Update RiakClusterExample.java
Date Wed, 28 May 2014 16:05:35 GMT
Update RiakClusterExample.java


Project: http://git-wip-us.apache.org/repos/asf/incubator-brooklyn/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-brooklyn/commit/5257cc7e
Tree: http://git-wip-us.apache.org/repos/asf/incubator-brooklyn/tree/5257cc7e
Diff: http://git-wip-us.apache.org/repos/asf/incubator-brooklyn/diff/5257cc7e

Branch: refs/heads/master
Commit: 5257cc7e08c89e7f6f72f2905eaa06d85a1c1b89
Parents: 66461f6
Author: Zaid <zaid.mohsin@cloudsoftcorp.com>
Authored: Thu May 22 18:09:29 2014 +0100
Committer: Andrew Kennedy <andrew.kennedy@cloudsoftcorp.com>
Committed: Wed May 28 16:48:25 2014 +0100

----------------------------------------------------------------------
 .../src/main/java/brooklyn/demo/RiakClusterExample.java           | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-brooklyn/blob/5257cc7e/examples/simple-nosql-cluster/src/main/java/brooklyn/demo/RiakClusterExample.java
----------------------------------------------------------------------
diff --git a/examples/simple-nosql-cluster/src/main/java/brooklyn/demo/RiakClusterExample.java
b/examples/simple-nosql-cluster/src/main/java/brooklyn/demo/RiakClusterExample.java
index d332a95..519d673 100644
--- a/examples/simple-nosql-cluster/src/main/java/brooklyn/demo/RiakClusterExample.java
+++ b/examples/simple-nosql-cluster/src/main/java/brooklyn/demo/RiakClusterExample.java
@@ -12,7 +12,6 @@ import brooklyn.entity.basic.AbstractApplication;
 import brooklyn.entity.basic.ConfigKeys;
 import brooklyn.entity.basic.Entities;
 import brooklyn.entity.basic.StartableApplication;
-import brooklyn.entity.nosql.cassandra.CassandraDatacenter;
 import brooklyn.entity.nosql.riak.RiakCluster;
 import brooklyn.entity.nosql.riak.RiakNode;
 import brooklyn.entity.proxying.EntitySpec;
@@ -49,7 +48,7 @@ public class RiakClusterExample extends AbstractApplication {
     public void init() {
         addChild(EntitySpec.create(RiakCluster.class)
                 .configure(RiakCluster.INITIAL_SIZE, getConfig(RIAK_RING_SIZE))
-                .configure(CassandraDatacenter.MEMBER_SPEC, EntitySpec.create(RiakNode.class)
+                .configure(RiakCluster.MEMBER_SPEC, EntitySpec.create(RiakNode.class)
                         .policy(PolicySpec.create(ServiceFailureDetector.class))
                         .policy(PolicySpec.create(ServiceRestarter.class)
                                 .configure(ServiceRestarter.FAILURE_SENSOR_TO_MONITOR, ServiceFailureDetector.ENTITY_FAILED))));


Mime
View raw message