Brooklyn

brooklyn.extras.whirr.core
[Java] Class WhirrClusterImpl

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

public class WhirrClusterImpl
extends AbstractEntity

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


Field Summary
protected ClusterController _controller

protected Cluster cluster

protected ClusterSpec clusterSpec

protected Location location

static Logger log

 
Fields inherited from class AbstractEntity
EFFECTOR_ADDED, EFFECTOR_CHANGED, EFFECTOR_REMOVED, LOG, POLICY_ADDED, POLICY_REMOVED, SENSOR_ADDED, SENSOR_REMOVED, _subscriptionTracker, managementSupport, tempWorkings
 
Constructor Summary
WhirrClusterImpl()

General entity initialisation

WhirrClusterImpl(java.util.Map flags)

WhirrClusterImpl(Entity parent)

WhirrClusterImpl(java.util.Map flags, Entity parent)

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

Cluster getCluster()

ClusterSpec getClusterSpec()

ClusterController getController()

void restart()

void start(java.util.Collection locations)

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

protected void startInLocation(Location location)

protected void startInLocation(LocalhostMachineProvisioningLocation location)

Start a cluster as specified in the recipe on localhost

protected void startInLocation(JcloudsLocation location)

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

void stop()

 
Methods inherited from class AbstractEntity
addChild, addChild, addEnricher, addGroup, addLocations, addPolicy, clearLocations, clearParent, configure, configure, configure, configure, configure, configure, destroy, emit, emitInternal, equals, finalize, firstLocation, getAllAttributes, getAllConfig, getApplication, getApplicationId, getAttribute, getAttributeByNameParts, getChildren, getConfig, getConfig, getConfig, getConfig, getConfigMap, getCreationTime, getDisplayName, getEffector, getEnrichers, getEntityManager, getEntityType, getEntityTypeName, getExecutionContext, getGroups, getIconUrl, getId, getLocations, getManagementContext, getManagementSupport, getMutableEntityType, getParent, getPolicies, getProxy, getProxyIfAvailable, getRebindSupport, getSubscriptionContext, getSubscriptionTracker, hashCode, init, invalidateReferences, invoke, invoke, invoke, isLegacyConstruction, onManagementBecomingMaster, onManagementNoLongerMaster, onManagementStarted, onManagementStarting, onManagementStopped, refreshInheritedConfig, removeAllEnrichers, removeAllPolicies, removeAttribute, removeChild, removeEnricher, removeLocations, removePolicy, setApplication, setAttribute, setAttribute, setAttributeWithoutPublishing, setConfig, setConfig, setConfig, setConfig, setConfig, setConfig, setConfigEvenIfOwned, setConfigEvenIfOwned, setConfigIfValNonNull, setConfigIfValNonNull, setDisplayName, setManagementContext, setParent, setProxy, subscribe, subscribeToChildren, subscribeToMembers, toMetadataRecord, toString, toStringHelper, unsubscribe, unsubscribe
 

Field Detail

_controller

protected ClusterController _controller


cluster

protected Cluster cluster


clusterSpec

protected ClusterSpec clusterSpec


location

protected Location location


log

public static final Logger log


 
Constructor Detail

WhirrClusterImpl

public WhirrClusterImpl()
General entity initialisation


WhirrClusterImpl

public WhirrClusterImpl(java.util.Map flags)


WhirrClusterImpl

public WhirrClusterImpl(Entity parent)


WhirrClusterImpl

public WhirrClusterImpl(java.util.Map flags, Entity parent)


 
Method Detail

customizeClusterSpecConfiguration

protected void customizeClusterSpecConfiguration(JcloudsLocation location, PropertiesConfiguration config)


getCluster

@Override
public Cluster getCluster()


getClusterSpec

@Override
public ClusterSpec getClusterSpec()


getController

_controller = new ClusterControllerFactory().create(serviceName);
public ClusterController getController()


restart

public void restart()


start

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


startInLocation

protected void startInLocation(Location location)


startInLocation

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


startInLocation

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


stop

public void stop()


 

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