Brooklyn

brooklyn.extras.whirr.core
[Groovy] Class WhirrCluster

java.lang.Object
  groovy.lang.GroovyObjectSupport
      brooklyn.entity.basic.AbstractEntity
          brooklyn.extras.whirr.core.WhirrCluster
All Implemented Interfaces:
Startable

class WhirrCluster
extends AbstractEntity

Generic entity that can be used to deploy clusters that are managed by Apache Whirr.


Field Summary
static BasicAttributeSensor CLUSTER_NAME

static BasicConfigKey RECIPE

protected ClusterController _controller

protected Cluster cluster

protected ClusterSpec clusterSpec

protected Location location

static Logger log

 
Fields inherited from class AbstractEntity
LOG, SENSOR_ADDED, SENSOR_REMOVED, _subscriptionTracker, application, attributesInternal, configsInternal, execution, managementContext, managementData, subscription, tempWorkings
 
Constructor Summary
WhirrCluster(java.util.Map flags = [:], Entity owner = null)

General entity initialisation

 
Method Summary
protected void customizeClusterSpecConfiguration(JcloudsLocation location, PropertiesConfiguration config)

ClusterController getController()

void restart()

void start(java.util.Collection locations)

Apache Whirr can only start and manage a cluster in a single location

void startInLocation(LocalhostMachineProvisioningLocation location)

Start a cluster as specified in the recipe on localhost

void startInLocation(JcloudsLocation location)

Start a cluster as specified in the recipe in a given location

void startWithClusterSpec(ClusterSpec clusterSpec, PropertiesConfiguration config)

void stop()

 
Methods inherited from class AbstractEntity
addEnricher, addGroup, addOwnedChild, addPolicy, assertNotYetOwned, clearOwner, configure, configure, destroy, emit, emitInternal, firstLocation, getAllConfig, getApplication, getApplicationId, getAttribute, getAttributeByNameParts, getConfig, getConfig, getConfig, getConfig, getConfigMap, getEffector, getEnrichers, getEntityType, getExecutionContext, getGroups, getLocations, getManagementContext, getMutableEntityType, getOwnedChildren, getOwner, getPolicies, getSubscriptionContext, getSubscriptionTracker, hasEverBeenManaged, invalidate, invoke, invoke, invokeFromJava, invokeMethod, onManagementBecomingMaster, onManagementNoLongerMaster, refreshInheritedConfig, refreshInheritedConfigOfChildren, removeAllEnrichers, removeAllPolicies, removeAttribute, removeEnricher, removeOwnedChild, removePolicy, setApplication, setAttribute, setAttribute, setBeingManaged, setConfig, setConfig, setConfigEvenIfOwned, setConfigEvenIfOwned, setConfigIfValNonNull, setConfigIfValNonNull, setOwner, subscribe, subscribeToChildren, subscribeToMembers, toString, toStringFieldsToInclude, unsubscribe, unsubscribe
 
Methods inherited from class groovy.lang.GroovyObjectSupport
groovy.lang.GroovyObjectSupport#setProperty(java.lang.String, java.lang.Object), groovy.lang.GroovyObjectSupport#getProperty(java.lang.String), groovy.lang.GroovyObjectSupport#getMetaClass(), groovy.lang.GroovyObjectSupport#setMetaClass(groovy.lang.MetaClass), groovy.lang.GroovyObjectSupport#invokeMethod(java.lang.String, java.lang.Object), groovy.lang.GroovyObjectSupport#wait(), groovy.lang.GroovyObjectSupport#wait(long), groovy.lang.GroovyObjectSupport#wait(long, int), groovy.lang.GroovyObjectSupport#equals(java.lang.Object), groovy.lang.GroovyObjectSupport#toString(), groovy.lang.GroovyObjectSupport#hashCode(), groovy.lang.GroovyObjectSupport#getClass(), groovy.lang.GroovyObjectSupport#notify(), groovy.lang.GroovyObjectSupport#notifyAll()
 

Field Detail

CLUSTER_NAME

public static final BasicAttributeSensor CLUSTER_NAME


RECIPE

@SetFromFlag("recipe")
public static final BasicConfigKey RECIPE


_controller

protected ClusterController _controller


cluster

protected Cluster cluster


clusterSpec

protected ClusterSpec clusterSpec


location

protected Location location


log

public static final Logger log


 
Constructor Detail

WhirrCluster

WhirrCluster(java.util.Map flags = [:], Entity owner = null)
General entity initialisation


 
Method Detail

customizeClusterSpecConfiguration

protected void customizeClusterSpecConfiguration(JcloudsLocation location, PropertiesConfiguration config)


getController

ClusterController getController()


restart

void restart()


start

void start(java.util.Collection locations)
Apache Whirr can only start and manage a cluster in a single location
Parameters:
locations


startInLocation

void startInLocation(LocalhostMachineProvisioningLocation location)
Start a cluster as specified in the recipe on localhost
Parameters:
location - corresponding to localhost


startInLocation

void startInLocation(JcloudsLocation location)
Start a cluster as specified in the recipe in a given location
Parameters:
location - jclouds location spec


startWithClusterSpec

void startWithClusterSpec(ClusterSpec clusterSpec, PropertiesConfiguration config)


stop

void stop()


 

Brooklyn Multi-Cloud Application Management Platform
brooklyncentral.github.com. Apache License. © 2012.