public interface LocationEntity extends BasicStartable
Can use the class name of the MachineProvisioningLocation
or the value of the
provider
or iso3166
configuration keys on the provisioning location.
The values used to make the decision are set as sensors on this entity. The decision
is made based on the first match found, checking the class name first, then the
provider and finally the country codes, and map keys representing any or all of these
can be used at the same time.
- type: org.apache.brooklyn.entity.stock.LocationEntity brooklyn.config: location.entity.spec.default: $brooklyn:entitySpec: type: traefik-load-balancer location.entity.spec.aws-ec2: $brooklyn:entitySpec: type: elastic-load-balancer location.entity.spec.gce: $brooklyn:entitySpec: type: google-load-balancer
ConditionalEntity} for an explanation of sensor propagation configuration
BasicStartable.LocationsFilter
Entity.AdjunctSupport<T extends EntityAdjunct>, Entity.EnricherSupport, Entity.GroupSupport, Entity.PolicySupport, Entity.SensorSupport
BrooklynObject.RelationSupport<T extends BrooklynObject>, BrooklynObject.SubscriptionSupport, BrooklynObject.TagSupport
Configurable.ConfigurationSupport
Startable.RestartEffectorBody, Startable.StartEffectorBody, Startable.StopEffectorBody
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DEFAULT |
static AttributeSensor<java.util.Set<java.lang.String>> |
LOCATION_COUNTRY_CODES |
static AttributeSensor<Entity> |
LOCATION_ENTITY |
static ConfigKey<java.util.Collection<AttributeSensor<?>>> |
LOCATION_ENTITY_SENSOR_LIST |
static ConfigKey<java.util.Map<java.lang.String,EntitySpec<?>>> |
LOCATION_ENTITY_SPEC_MAP |
static AttributeSensor<java.lang.String> |
LOCATION_PROVIDER |
static AttributeSensor<java.lang.String> |
LOCATION_TYPE |
static ConfigKey<java.lang.Boolean> |
PROPAGATE_LOCATION_ENTITY_SENSORS |
LOCATIONS_FILTER, START_LATCH
RESTART, SERVICE_UP, START, STOP
addChild, addChild, addFeed, clearParent, enrichers, getApplication, getApplicationId, getAttribute, getChildren, getConfig, getCreationTime, getDisplayName, getEntityType, getIconUrl, getId, getLocations, getParent, groups, invoke, policies, relations, removeChild, sensors, setDisplayName, setParent
getCatalogItemId, getCatalogItemIdSearchPath, subscriptions, tags
config, getConfig
static final java.lang.String DEFAULT
static final ConfigKey<java.util.Map<java.lang.String,EntitySpec<?>>> LOCATION_ENTITY_SPEC_MAP
static final ConfigKey<java.lang.Boolean> PROPAGATE_LOCATION_ENTITY_SENSORS
static final ConfigKey<java.util.Collection<AttributeSensor<?>>> LOCATION_ENTITY_SENSOR_LIST
static final AttributeSensor<java.lang.String> LOCATION_TYPE
static final AttributeSensor<java.lang.String> LOCATION_PROVIDER
static final AttributeSensor<java.util.Set<java.lang.String>> LOCATION_COUNTRY_CODES
static final AttributeSensor<Entity> LOCATION_ENTITY