You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@brooklyn.apache.org by he...@apache.org on 2015/09/08 15:59:17 UTC
[2/5] incubator-brooklyn git commit: Update example app instructions
to use org.apache packages.
Update example app instructions to use org.apache packages.
Project: http://git-wip-us.apache.org/repos/asf/incubator-brooklyn/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-brooklyn/commit/28060091
Tree: http://git-wip-us.apache.org/repos/asf/incubator-brooklyn/tree/28060091
Diff: http://git-wip-us.apache.org/repos/asf/incubator-brooklyn/diff/28060091
Branch: refs/heads/master
Commit: 28060091045d3c9515015728594cddb30ae0e58b
Parents: 2993633
Author: Sam Corbett <sa...@cloudsoftcorp.com>
Authored: Tue Sep 8 12:33:54 2015 +0100
Committer: Sam Corbett <sa...@cloudsoftcorp.com>
Committed: Tue Sep 8 12:38:01 2015 +0100
----------------------------------------------------------------------
examples/global-web-fabric/README.txt | 6 +++++-
examples/simple-messaging-pubsub/README.txt | 10 +++++-----
examples/simple-nosql-cluster/README.md | 10 +++++-----
examples/simple-web-cluster/README.txt | 12 +++++-------
4 files changed, 20 insertions(+), 18 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-brooklyn/blob/28060091/examples/global-web-fabric/README.txt
----------------------------------------------------------------------
diff --git a/examples/global-web-fabric/README.txt b/examples/global-web-fabric/README.txt
index 81f8f9e..0d3ee8b 100644
--- a/examples/global-web-fabric/README.txt
+++ b/examples/global-web-fabric/README.txt
@@ -7,7 +7,7 @@ and you are in this directory. Adjust to taste for other configurations.
export BROOKLYN_CLASSPATH=$(pwd)/target/classes
# Launch the app in aws-ec2 regions eu-west-1 and us-east-1
- brooklyn launch --app brooklyn.demo.GlobalWebFabricExample --location "aws-ec2:eu-west-1,aws-ec2:us-east-1"
+ brooklyn launch --app org.apache.brooklyn.demo.GlobalWebFabricExample --location "aws-ec2:eu-west-1,aws-ec2:us-east-1"
---
@@ -19,6 +19,10 @@ This file should contain something like:
Brooklyn defaults to using ~/.ssh/id_rsa and ~/.ssh/id_rsa.pub.
+---
+
+For more information please visit https://brooklyn.incubator.apache.org/.
+
----
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
http://git-wip-us.apache.org/repos/asf/incubator-brooklyn/blob/28060091/examples/simple-messaging-pubsub/README.txt
----------------------------------------------------------------------
diff --git a/examples/simple-messaging-pubsub/README.txt b/examples/simple-messaging-pubsub/README.txt
index 5b14552..299695f 100644
--- a/examples/simple-messaging-pubsub/README.txt
+++ b/examples/simple-messaging-pubsub/README.txt
@@ -7,26 +7,26 @@ The commands below assume that the `brooklyn` script is already on your $PATH, a
export BROOKLYN_CLASSPATH=$(pwd)/target/classes
# Launches a qpid broker on localhost
- brooklyn -v launch --app brooklyn.demo.StandaloneQpidBrokerExample --location localhost
+ brooklyn -v launch --app org.apache.brooklyn.demo.StandaloneQpidBrokerExample --location localhost
# You can get the broker's URL from the brooklyn web-console at http://localhost:8081
# by looking at the broker entity's sensors or from the verbose output from the application startup
URL="amqp://guest:guest@/localhost?brokerlist='tcp://localhost:5672'"
# Test subscribing, to receive a message from the broker
- java -cp "./resources/lib/*:./target/classes" brooklyn.demo.Subscribe ${URL}
+ java -cp "./resources/lib/*:./target/classes" org.apache.brooklyn.demo.Subscribe ${URL}
# Test publishing a message to the broker
- java -cp "./resources/lib/*:./target/classes" brooklyn.demo.Publish ${URL}
+ java -cp "./resources/lib/*:./target/classes" org.apache.brooklyn.demo.Publish ${URL}
To test a Kafka distributed messaging cluster example, use the following command:
# Launches a Kafka cluster on AWS EC2 with two brokers
- brooklyn -v launch --app brooklyn.demo.KafkaClusterExample --location aws-ec2:eu-west-1
+ brooklyn -v launch --app org.apache.brooklyn.demo.KafkaClusterExample --location aws-ec2:eu-west-1
---
-For more information, please visit: http://brooklyncentral.github.com/use/examples/messaging/
+For more information please visit https://brooklyn.incubator.apache.org/.
----
Licensed to the Apache Software Foundation (ASF) under one
http://git-wip-us.apache.org/repos/asf/incubator-brooklyn/blob/28060091/examples/simple-nosql-cluster/README.md
----------------------------------------------------------------------
diff --git a/examples/simple-nosql-cluster/README.md b/examples/simple-nosql-cluster/README.md
index a932807..55659da 100644
--- a/examples/simple-nosql-cluster/README.md
+++ b/examples/simple-nosql-cluster/README.md
@@ -7,20 +7,20 @@ The commands below assume that the `brooklyn` script is already on your $PATH, a
export BROOKLYN_CLASSPATH=$(pwd)/target/classes
# Launches a Redis cluster on AWS EC2
- brooklyn -v launch --app brooklyn.demo.SimpleRedisCluster --location aws-ec2:eu-west-1
+ brooklyn -v launch --app org.apache.brooklyn.demo.SimpleRedisCluster --location aws-ec2:eu-west-1
# Launches a Cassandra cluster on AWS EC2
- brooklyn -v launch --app brooklyn.demo.SimpleCassandraCluster --location aws-ec2:eu-west-1
+ brooklyn -v launch --app org.apache.brooklyn.demo.SimpleCassandraCluster --location aws-ec2:eu-west-1
# Launches a CouchDB cluster on AWS EC2
- brooklyn -v launch --app brooklyn.demo.SimpleCouchDBCluster --location aws-ec2:eu-west-1
+ brooklyn -v launch --app org.apache.brooklyn.demo.SimpleCouchDBCluster --location aws-ec2:eu-west-1
# Launches a CumulusRDF application backed by a cassandra cluster on AWS EC2
- brooklyn -v launch --app brooklyn.demo.CumulusRDFApplication --location aws-ec2:eu-west-1
+ brooklyn -v launch --app org.apache.brooklyn.demo.CumulusRDFApplication --location aws-ec2:eu-west-1
--------
-For more information, please visit the (http://brooklyncentral.github.com/use/examples/nosql/)[NoSQL examples page]
+For more information please visit https://brooklyn.incubator.apache.org/.
----
Licensed to the Apache Software Foundation (ASF) under one
http://git-wip-us.apache.org/repos/asf/incubator-brooklyn/blob/28060091/examples/simple-web-cluster/README.txt
----------------------------------------------------------------------
diff --git a/examples/simple-web-cluster/README.txt b/examples/simple-web-cluster/README.txt
index 11c1588..598a4ce 100644
--- a/examples/simple-web-cluster/README.txt
+++ b/examples/simple-web-cluster/README.txt
@@ -7,7 +7,7 @@ and you are in this directory. Adjust to taste for other configurations.
export BROOKLYN_CLASSPATH=$(pwd)/target/classes
# Three-tier: auto-scaling app-server cluster fronted by nginx, MySql backend wired up, on localhost
- brooklyn launch --app brooklyn.demo.WebClusterDatabaseExample --location localhost
+ brooklyn launch --app org.apache.brooklyn.demo.WebClusterDatabaseExample --location localhost
The above requires passwordless `ssh localhost` and requires `gcc` to build `nginx`.
You could instead target your favourite cloud, where this has been tried and tested:
@@ -22,13 +22,13 @@ You could instead target your favourite cloud, where this has been tried and tes
Other examples:
# A very simple app: a single web-server
- brooklyn launch --app brooklyn.demo.SingleWebServerExample --location localhost
+ brooklyn launch --app org.apache.brooklyn.demo.SingleWebServerExample --location localhost
# A simple app: just load-balancer and appservers
- brooklyn launch --app brooklyn.demo.WebClusterExample --location localhost
+ brooklyn launch --app org.apache.brooklyn.demo.WebClusterExample --location localhost
# Three-tier example
- brooklyn launch --app brooklyn.demo.WebClusterDatabaseExample --location localhost
+ brooklyn launch --app org.apache.brooklyn.demo.WebClusterDatabaseExample --location localhost
Redistributable embedded example:
@@ -38,9 +38,7 @@ Redistributable embedded example:
# (the redistributable will be at: target/brooklyn-*-bin.tar.gz )
mvn clean assembly:assembly
-For more information, please visit:
-
- http://brooklyncentral.github.com/use/examples/webcluster/
+For more information please visit https://brooklyn.incubator.apache.org/.
----
Licensed to the Apache Software Foundation (ASF) under one