- maven repo
- brooklyn repository (jboss, etc)
- git projects (anonymous http, with history; and showing URL - jclouds-examples, brooklyn, whirr)
- binaries
- whirr
- brooklyn
- this doc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
export DIRS="" | |
export ARGS="-o clean install -DskipTests" | |
if [[ -z $1 || $1 = "-h" || $1 == "--help" ]] ; then | |
echo | |
echo "MVNF: a simple script for building multiple maven directories" | |
echo | |
echo "usage: mvnf [ -x \"install -Dxxx\" ] dir1 [ dir2 [ ... ]]" | |
echo | |
echo "This will do a maven build in each directory specified, in order, " |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<app name="MyWebCluster"> | |
<entity type="ControlledDynamicWebAppCluster" name="web"> | |
<config name="war" value="classpath://hello-world-webapp.war"/> | |
<config name="httpPort" value="8080+"/> | |
<config name="jvmOpts" type="map"> | |
<field name="brooklyn.example.db.url"> | |
<source entity="mysql" sensor="url"/> | |
</field> | |
</config> | |
<policy type="Resizer"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ "app": { | |
"name": "MyWebCluster", | |
"entities": [ | |
{ "name": "web", | |
"type": "ControlledDynamicWebAppCluster", | |
"config": { | |
"war": "classpath://hello-world-webapp.war", | |
"httpPort": "8080+", | |
"jvmOpts": { | |
"brooklyn.example.db.url": { "source": { "entity": "mysql", "sensor": "url" } } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Test | |
public void createVm() { | |
String groupId = "mygroup-"+System.getProperty("user.name")+"-"+UUID.randomUUID().toString(); | |
Properties properties = new Properties(); | |
properties.setProperty(Constants.PROPERTY_PROVIDER, "aws-ec2"); | |
properties.setProperty(Constants.PROPERTY_IDENTITY, identity); | |
properties.setProperty(Constants.PROPERTY_CREDENTIAL, credential); | |
properties.setProperty(Constants.PROPERTY_TRUST_ALL_CERTS, Boolean.toString(true)); | |
properties.setProperty(Constants.PROPERTY_RELAX_HOSTNAME, Boolean.toString(true)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
new ComputeServiceContextFactory().createContext("hpcloud-compute", | |
keyId, credential). getComputeService(). listNodes(); | |
gives: | |
ERROR java.util.NoSuchElementException: | |
apiType compute not found in catalog [{type=identity, name=Identity, endpoints=[{versionId=2.0, region=region-a.geo-1, publicURL=https://region-a.geo-1.identity.hpcloudsvc.com:35357/v2.0/, internalURL=null, adminURL=null, tenantId=null, versionInfo=https://region-a.geo-1.identity.hpcloudsvc.com:35357/v2.0/, versionList=https://region-a.geo-1.identity.hpcloudsvc.com:35357}]}] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name":"web-and-db", | |
"entities":[{ | |
"type":"brooklyn.entity.webapp.ElasticJavaWebAppService", | |
"config":{ | |
"java.options":{ | |
"type":"Map", | |
"operation":"put", | |
"values":{ | |
"brooklyn.example.db.url":{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#/bin/bash | |
help() { | |
echo "pss [command [option]]+ -- quickly list, find and kill processes" | |
echo "commands:" | |
echo " h -- help" | |
echo " g X -- grep X" | |
echo " gi X -- grep -i X (ignore case)" | |
echo " gv X -- grep -v X (show non-matching)" | |
echo " g2 X Y -- grep for X or Y (also g3, g4)" | |
echo " k -- kill" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Rebindable (Entity) | |
- REBINDING_STATUS sensor -> empty (not rebinding), REBINDING, COMPLETED, FAILED | |
- getRebindLocationGenerator() -> returns a generator suitable for rebinding this entity | |
(where the generator produces a RebindLocation initially, but might also produce json/xml; | |
and allow interrogation about whether all descendents etc are rebindable) | |
RebindLocation { | |
/** takes no action but says whether it can rebind */ | |
boolean canRebind(Entity); | |
/** sets config & sensors on entity, returns the locations where the entity should proceed to start |