Brooklyn

brooklyn.example.cloudfoundry
[Groovy] Class MovableElasticWebAppCluster

java.lang.Object
  groovy.lang.GroovyObjectSupport
      brooklyn.entity.basic.AbstractEntity
          brooklyn.example.cloudfoundry.MovableElasticWebAppCluster
All Implemented Interfaces:
MovableEntityTrait, Startable

@InheritConstructors
class MovableElasticWebAppCluster
extends AbstractEntity

Field Summary
static Effector CREATE_SECONDARY_IN_LOCATION

static Effector DESTROY_SECONDARY

static BasicAttributeSensor PRIMARY_SVC_ENTITY_ID

static Effector PROMOTE_SECONDARY

static BasicConfigKey ROOT_WAR

static BasicAttributeSensor SECONDARY_SVC_ENTITY_IDS

static Logger log

 
Fields inherited from class AbstractEntity
LOG, SENSOR_ADDED, SENSOR_REMOVED, _subscriptionTracker, application, attributesInternal, configsInternal, execution, managementContext, managementData, subscription, tempWorkings
 
Method Summary
EntityLocal createClusterIn(Location location)

java.lang.String createSecondaryInLocation(java.lang.String l)

creates a new secondary instance, in the given location, returning the ID of the secondary created and started

void destroySecondary(java.lang.String idOfSecondaryToDestroy)

destroys the indicated secondary

java.lang.String move(java.lang.String location)

java.lang.String promoteSecondary(java.lang.String idOfSecondaryToPromote)

promotes the indicated secondary, returning the ID of the former-primary which has been demoted

void restart()

void start(java.util.Collection locations)

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

CREATE_SECONDARY_IN_LOCATION

public static final Effector CREATE_SECONDARY_IN_LOCATION


DESTROY_SECONDARY

public static final Effector DESTROY_SECONDARY


PRIMARY_SVC_ENTITY_ID

public static final BasicAttributeSensor PRIMARY_SVC_ENTITY_ID


PROMOTE_SECONDARY

public static final Effector PROMOTE_SECONDARY


ROOT_WAR

@SetFromFlag("war")
public static final BasicConfigKey ROOT_WAR


SECONDARY_SVC_ENTITY_IDS

public static final BasicAttributeSensor SECONDARY_SVC_ENTITY_IDS


log

public static final Logger log


 
Method Detail

createClusterIn

EntityLocal createClusterIn(Location location)


createSecondaryInLocation

@Description("create a new secondary instance in the given location")
java.lang.String createSecondaryInLocation(@NamedParameter("location") @Description("the location where to start the secondary") java.lang.String l)
creates a new secondary instance, in the given location, returning the ID of the secondary created and started


destroySecondary

@Description("destroy the indicated secondary")
void destroySecondary(@NamedParameter("idOfSecondaryToDestroy") @Description("ID of secondary entity to destroy") java.lang.String idOfSecondaryToDestroy)
destroys the indicated secondary


move

@Override
java.lang.String move(java.lang.String location)


promoteSecondary

@Description("promote the indicated secondary to primary (demoting the existing primary)")
java.lang.String promoteSecondary(@NamedParameter("idOfSecondaryToPromote") @Description("ID of secondary entity to promote") java.lang.String idOfSecondaryToPromote)
promotes the indicated secondary, returning the ID of the former-primary which has been demoted


restart

@Override
void restart()


start

@Override
void start(java.util.Collection locations)


stop

@Override
void stop()


 

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