brooklyn-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From henev...@apache.org
Subject [11/50] brooklyn-library git commit: Convert MonitoredCassandraClusterExample to java
Date Mon, 01 Feb 2016 17:46:29 GMT
Convert MonitoredCassandraClusterExample to java


Project: http://git-wip-us.apache.org/repos/asf/brooklyn-library/repo
Commit: http://git-wip-us.apache.org/repos/asf/brooklyn-library/commit/8990ab7c
Tree: http://git-wip-us.apache.org/repos/asf/brooklyn-library/tree/8990ab7c
Diff: http://git-wip-us.apache.org/repos/asf/brooklyn-library/diff/8990ab7c

Branch: refs/heads/0.5.0
Commit: 8990ab7c3cffc8edb37cd7156f3a313a897c5a0a
Parents: bccb14f
Author: Aled Sage <aled.sage@gmail.com>
Authored: Thu Mar 28 16:44:07 2013 +0000
Committer: Alex Heneveld <alex.heneveld@cloudsoftcorp.com>
Committed: Mon Apr 1 12:41:40 2013 +0100

----------------------------------------------------------------------
 .../MonitoredCassandraClusterExample.groovy     | 22 --------------------
 .../demo/MonitoredCassandraClusterExample.java  | 20 ++++++++++++++++++
 2 files changed, 20 insertions(+), 22 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/brooklyn-library/blob/8990ab7c/examples/monitored-cassandra-cluster/src/main/java/brooklyn/demo/MonitoredCassandraClusterExample.groovy
----------------------------------------------------------------------
diff --git a/examples/monitored-cassandra-cluster/src/main/java/brooklyn/demo/MonitoredCassandraClusterExample.groovy
b/examples/monitored-cassandra-cluster/src/main/java/brooklyn/demo/MonitoredCassandraClusterExample.groovy
deleted file mode 100644
index f20be57..0000000
--- a/examples/monitored-cassandra-cluster/src/main/java/brooklyn/demo/MonitoredCassandraClusterExample.groovy
+++ /dev/null
@@ -1,22 +0,0 @@
-package brooklyn.demo
-
-import brooklyn.entity.basic.ApplicationBuilder
-import brooklyn.entity.nosql.cassandra.CassandraCluster
-import brooklyn.entity.proxying.EntitySpecs
-
-/** Cassandra Application */
-public class MonitoredCassandraClusterExample extends ApplicationBuilder {
-
-    /**
-     * For overriding, to create and wire together entities.
-     */
-    protected void doBuild() {
-        addChild(EntitySpecs.spec(CassandraCluster.class)
-                .configure("initialSize", "2")
-                .configure("clusterName", "CassandraDemo")
-                .configure("jmxPort", "11099+")
-                .configure("rmiServerPort", "9001+")
-                .configure("thriftPort", "9160+"));
-    }
-
-}

http://git-wip-us.apache.org/repos/asf/brooklyn-library/blob/8990ab7c/examples/monitored-cassandra-cluster/src/main/java/brooklyn/demo/MonitoredCassandraClusterExample.java
----------------------------------------------------------------------
diff --git a/examples/monitored-cassandra-cluster/src/main/java/brooklyn/demo/MonitoredCassandraClusterExample.java
b/examples/monitored-cassandra-cluster/src/main/java/brooklyn/demo/MonitoredCassandraClusterExample.java
new file mode 100644
index 0000000..3c1a05f
--- /dev/null
+++ b/examples/monitored-cassandra-cluster/src/main/java/brooklyn/demo/MonitoredCassandraClusterExample.java
@@ -0,0 +1,20 @@
+package brooklyn.demo;
+
+import brooklyn.entity.basic.ApplicationBuilder;
+import brooklyn.entity.nosql.cassandra.CassandraCluster;
+import brooklyn.entity.proxying.EntitySpecs;
+
+/** Cassandra Application */
+public class MonitoredCassandraClusterExample extends ApplicationBuilder {
+
+    @Override
+    protected void doBuild() {
+        addChild(EntitySpecs.spec(CassandraCluster.class)
+                .configure("initialSize", "2")
+                .configure("clusterName", "CassandraDemo")
+                .configure("jmxPort", "11099+")
+                .configure("rmiServerPort", "9001+")
+                .configure("thriftPort", "9160+"));
+    }
+
+}


Mime
View raw message