|
Brooklyn | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbrooklyn.entity.basic.AbstractEntity
brooklyn.extras.whirr.core.WhirrClusterImpl
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()
|
Field Detail |
---|
protected ClusterController _controller
protected Cluster cluster
protected ClusterSpec clusterSpec
protected Location location
public static final Logger log
Constructor Detail |
---|
public WhirrClusterImpl()
public WhirrClusterImpl(java.util.Map flags)
public WhirrClusterImpl(Entity parent)
public WhirrClusterImpl(java.util.Map flags, Entity parent)
Method Detail |
---|
protected void customizeClusterSpecConfiguration(JcloudsLocation location, PropertiesConfiguration config)
@Override public Cluster getCluster()
@Override public ClusterSpec getClusterSpec()
_controller = new ClusterControllerFactory().create(serviceName); public ClusterController getController()
public void restart()
@Override public void start(java.util.Collection locations)
protected void startInLocation(Location location)
protected void startInLocation(LocalhostMachineProvisioningLocation location)
location
- corresponding to localhost
protected void startInLocation(JcloudsLocation location)
location
- jclouds location spec
public void stop()
Brooklyn Multi-Cloud Application Management Platform
brooklyncentral.github.com. Apache License. © 2012.