Brooklyn

brooklyn.entity.webapp
[Java] Interface ControlledDynamicWebAppCluster

brooklyn.entity.trait.Resizable
  brooklyn.entity.Entity
      brooklyn.entity.webapp.WebAppService
          brooklyn.entity.webapp.WebAppServiceConstants
              brooklyn.entity.java.UsesJava
                  brooklyn.entity.trait.Startable
                      brooklyn.entity.webapp.ControlledDynamicWebAppCluster
                          brooklyn.entity.webapp.JavaWebAppService
                              brooklyn.entity.rebind.Rebindable
                                  brooklyn.entity.webapp.ElasticJavaWebAppService
All Superinterfaces:
Resizable, Entity, WebAppService, WebAppServiceConstants, UsesJava, Startable, JavaWebAppService, Rebindable, ElasticJavaWebAppService

@ImplementedBy(ControlledDynamicWebAppClusterImpl.class)
public interface ControlledDynamicWebAppCluster
extends ElasticJavaWebAppService, Entity, Resizable, Startable

This entity contains the sub-groups and entities that go in to a single location (e.g. datacenter) to provide web-app cluster functionality, viz load-balancer (controller) and webapp software processes.

You can customise the web server by customising the factory (by reference in calling code) or supplying your own factory (as a config flag).

The contents of this group entity are:


Nested Class Summary
static class ControlledDynamicWebAppCluster.Spec

 
Field Summary
static AttributeSensor CLUSTER

static BasicAttributeSensorAndConfigKey CONTROLLER

static BasicAttributeSensorAndConfigKey CONTROLLER_SPEC

static BasicAttributeSensorAndConfigKey FACTORY

factory (or closure) to create the web server, given flags

static AttributeSensor HOSTNAME

static ConfigKey INITIAL_SIZE

static BasicAttributeSensorAndConfigKey MEMBER_SPEC

Spec for web server entiites to be created

 
Fields inherited from interface Resizable
RESIZE
 
Fields inherited from interface Startable
RESTART, SERVICE_UP, START, STOP
 
Method Summary
DynamicWebAppCluster getCluster()

AbstractController getController()

ConfigurableEntityFactory getFactory()

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

Field Detail

CLUSTER

public static AttributeSensor CLUSTER


CONTROLLER

@SetFromFlag("controller")
public static BasicAttributeSensorAndConfigKey CONTROLLER


CONTROLLER_SPEC

@SetFromFlag("controllerSpec")
public static BasicAttributeSensorAndConfigKey CONTROLLER_SPEC


FACTORY

@SetFromFlag("factory")
public static BasicAttributeSensorAndConfigKey FACTORY
factory (or closure) to create the web server, given flags


HOSTNAME

public static final AttributeSensor HOSTNAME


INITIAL_SIZE

@SetFromFlag("initialSize")
public static ConfigKey INITIAL_SIZE


MEMBER_SPEC

@SetFromFlag("memberSpec")
public static BasicAttributeSensorAndConfigKey MEMBER_SPEC
Spec for web server entiites to be created


 
Method Detail

getCluster

public DynamicWebAppCluster getCluster()


getController

public AbstractController getController()


getFactory

public ConfigurableEntityFactory getFactory()


 

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