Brooklyn

brooklyn.example.cloudfoundry
[Java] Interface MovableElasticWebAppCluster

brooklyn.entity.rebind.Rebindable
  brooklyn.entity.Entity
      brooklyn.example.cloudfoundry.MovableElasticWebAppCluster
          brooklyn.example.cloudfoundry.MovableEntityTrait
              brooklyn.entity.trait.Startable
All Superinterfaces:
Rebindable, Entity, MovableEntityTrait, Startable

@ImplementedBy(MovableElasticWebAppClusterImpl.class)
public interface MovableElasticWebAppCluster
extends Entity, MovableEntityTrait, Startable

Field Summary
static Effector CREATE_SECONDARY_IN_LOCATION

static Effector DESTROY_SECONDARY

static BasicAttributeSensor PRIMARY_SVC_ENTITY_ID

static Effector PROMOTE_SECONDARY

static ConfigKey ROOT_WAR

static BasicAttributeSensor SECONDARY_SVC_ENTITY_IDS

static BasicConfigKey TIME_TO_LIVE_SECONDS

 
Fields inherited from interface MovableEntityTrait
MOVE
 
Fields inherited from interface Startable
RESTART, SERVICE_UP, START, STOP
 
Method Summary
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 promoteSecondary(java.lang.String idOfSecondaryToPromote)

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

 
Methods inherited from interface Entity
addChild, addEnricher, addGroup, addOwnedChild, addPolicy, clearOwner, clearParent, getApplication, getApplicationId, getAttribute, getChildren, getConfig, getDisplayName, getEnrichers, getEntityType, getGroups, getId, getLocations, getOwnedChildren, getOwner, getParent, getPolicies, invoke, removeChild, removeEnricher, removeOwnedChild, removePolicy, setOwner, setParent
 
Methods inherited from interface MovableEntityTrait
move
 
Methods inherited from interface Startable
restart, start, stop
 

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 ConfigKey ROOT_WAR


SECONDARY_SVC_ENTITY_IDS

public static final BasicAttributeSensor SECONDARY_SVC_ENTITY_IDS


TIME_TO_LIVE_SECONDS

@SetFromFlag("ttl")
public static final BasicConfigKey TIME_TO_LIVE_SECONDS


 
Method Detail

createSecondaryInLocation

@Description("create a new secondary instance in the given location")
public 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")
public void destroySecondary(@NamedParameter("idOfSecondaryToDestroy") @Description("ID of secondary entity to destroy") java.lang.String idOfSecondaryToDestroy)
destroys the indicated secondary


promoteSecondary

@Description("promote the indicated secondary to primary (demoting the existing primary)")
public 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


 

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