public interface SequenceGroup extends DynamicGroup
Usage:
- type: org.apache.brooklyn.entity.group.SequenceGroup
id: entity-sequence
brooklyn.config:
entityFilter:
$brooklyn:object:
type: com.google.common.base.Predicates
factoryMethod.name: "and"
factoryMethod.args:
- $brooklyn:object:
type: org.apache.brooklyn.core.entity.EntityPredicates
factoryMethod.name: "applicationIdEqualTo"
factoryMethod.args:
- $brooklyn:attributeWhenReady("application.id")
- $brooklyn:object:
type: org.apache.brooklyn.core.entity.EntityPredicates
factoryMethod.name: "configEqualTo"
factoryMethod.args:
- "sequence.set"
- true
sequenceStart: 0
sequenceIncrement: 1
sequenceFormat: "Entity %04x"
sequenceValueSensor: $brooklyn:sensor("entity.sequence")
sequenceStringSensor: $brooklyn:sensor("entity.name")
Entity.AdjunctSupport<T extends EntityAdjunct>, Entity.EnricherSupport, Entity.GroupSupport, Entity.PolicySupport, Entity.SensorSupport
BrooklynObject.RelationSupport<T extends BrooklynObject>, BrooklynObject.SubscriptionSupport, BrooklynObject.TagSupport
Configurable.ConfigurationSupport
Modifier and Type | Field and Description |
---|---|
static ConfigKey<<any>> |
ENTITY_FILTER |
static MethodEffector<java.lang.Void> |
RESET |
static AttributeSensor<java.util.Map<java.lang.String,java.lang.Integer>> |
SEQUENCE_CACHE |
static AttributeSensor<Entity> |
SEQUENCE_CURRENT |
static ConfigKey<java.lang.String> |
SEQUENCE_FORMAT |
static ConfigKey<java.lang.Integer> |
SEQUENCE_INCREMENT |
static ConfigKey<java.lang.Integer> |
SEQUENCE_START |
static AttributeSensor<java.util.concurrent.atomic.AtomicInteger> |
SEQUENCE_STATE |
static AttributeSensor<java.lang.String> |
SEQUENCE_STRING |
static ConfigKey<AttributeSensor<java.lang.String>> |
SEQUENCE_STRING_SENSOR |
static AttributeSensor<java.lang.Integer> |
SEQUENCE_VALUE |
static ConfigKey<AttributeSensor<java.lang.Integer>> |
SEQUENCE_VALUE_SENSOR |
RESCAN_EFFECTOR, RUNNING
FIRST, GROUP_MEMBERS, MEMBER_DELEGATE_CHILDREN, MEMBER_DELEGATE_NAME_FORMAT, RUNNING_QUORUM_CHECK, UP_QUORUM_CHECK
GROUP_SIZE, MEMBER_ADDED, MEMBER_REMOVED
Modifier and Type | Method and Description |
---|---|
java.lang.Void |
reset() |
addSubscription, addSubscription, entityFilter, rescanEntities, setEntityFilter, stop
getFirst, setMembers, setMembers
addChild, addChild, addMember, addMemberChild, addMemberChild, getCurrentSize, getMembers, hasMember, removeMember
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 AttributeSensor<java.lang.Integer> SEQUENCE_VALUE
static final AttributeSensor<java.lang.String> SEQUENCE_STRING
static final ConfigKey<<any>> ENTITY_FILTER
static final ConfigKey<java.lang.Integer> SEQUENCE_START
static final ConfigKey<java.lang.Integer> SEQUENCE_INCREMENT
static final ConfigKey<java.lang.String> SEQUENCE_FORMAT
static final ConfigKey<AttributeSensor<java.lang.Integer>> SEQUENCE_VALUE_SENSOR
static final ConfigKey<AttributeSensor<java.lang.String>> SEQUENCE_STRING_SENSOR
static final AttributeSensor<Entity> SEQUENCE_CURRENT
static final AttributeSensor<java.util.concurrent.atomic.AtomicInteger> SEQUENCE_STATE
static final AttributeSensor<java.util.Map<java.lang.String,java.lang.Integer>> SEQUENCE_CACHE
static final MethodEffector<java.lang.Void> RESET