public class TestEffectorImpl extends TargetableTestComponentImpl implements TestEffector
AbstractEntity.BasicConfigurationSupport, AbstractEntity.BasicEnricherSupport, AbstractEntity.BasicFeedSupport, AbstractEntity.BasicGroupSupport, AbstractEntity.BasicPolicySupport, AbstractEntity.BasicSensorSupport, AbstractEntity.BasicSubscriptionSupportAbstractBrooklynObject.BasicTagSupportorg.apache.brooklyn.api.entity.Entity.AdjunctSupport<T extends org.apache.brooklyn.api.objs.EntityAdjunct>, org.apache.brooklyn.api.entity.Entity.EnricherSupport, org.apache.brooklyn.api.entity.Entity.GroupSupport, org.apache.brooklyn.api.entity.Entity.PolicySupport, org.apache.brooklyn.api.entity.Entity.SensorSupportorg.apache.brooklyn.api.objs.BrooklynObject.RelationSupport<T extends org.apache.brooklyn.api.objs.BrooklynObject>, org.apache.brooklyn.api.objs.BrooklynObject.SubscriptionSupport, org.apache.brooklyn.api.objs.BrooklynObject.TagSupportorg.apache.brooklyn.api.objs.Configurable.ConfigurationSupportStartable.RestartEffectorBody, Startable.StartEffectorBody, Startable.StopEffectorBodyEntityInternal.EnricherSupportInternal, EntityInternal.EntitySubscriptionSupportInternal, EntityInternal.FeedSupport, EntityInternal.GroupSupportInternal, EntityInternal.PolicySupportInternal, EntityInternal.SensorSupportInternalBrooklynObjectInternal.ConfigurationSupportInternal, BrooklynObjectInternal.RelationSupportInternal<T extends org.apache.brooklyn.api.objs.BrooklynObject>, BrooklynObjectInternal.SubscriptionSupportInternal_subscriptionTracker, APPLICATION_ID, CATALOG_ID, CHILD_ADDED, CHILD_REMOVED, CONFIG_KEY_ADDED, CONFIG_KEY_REMOVED, DEFAULT_DISPLAY_NAME, EFFECTOR_ADDED, EFFECTOR_CHANGED, EFFECTOR_REMOVED, ENTITY_ID, GROUP_ADDED, GROUP_REMOVED, LOCATION_ADDED, LOCATION_REMOVED, managementSupport, POLICY_ADDED, POLICY_REMOVED, SENSOR_ADDED, SENSOR_REMOVED, tempWorkingsEFFECTOR_NAME, EFFECTOR_PARAMS, EFFECTOR_RESULT, MAX_ATTEMPTSASSERTIONS, BACKOFF_TO_PERIOD, ITERATION_LIMIT, TIMEOUTTARGET_ENTITY, TARGET_ENTITY_ID, TARGET_ENTITY_NAME, TARGET_ENTITY_TYPE, TARGET_ID, TARGET_RESOLUTION_TIMEOUTRESTART, SERVICE_UP, START, STOP| Constructor and Description |
|---|
TestEffectorImpl() |
| Modifier and Type | Method and Description |
|---|---|
protected Object |
invokeEffector(org.apache.brooklyn.api.entity.Entity targetEntity,
org.apache.brooklyn.api.effector.Effector<?> effector,
Map<String,?> effectorParams,
org.apache.brooklyn.util.time.Duration timeout) |
protected Object |
invokeEffector(org.apache.brooklyn.api.entity.Entity targetEntity,
org.apache.brooklyn.api.effector.Effector<?> effector,
Map<String,?> effectorParams,
Integer maxAttempts,
org.apache.brooklyn.util.time.Duration timeout,
org.apache.brooklyn.util.time.Duration backoffToPeriod)
Invokes the effector.
|
void |
restart() |
void |
start(Collection<? extends org.apache.brooklyn.api.location.Location> locations) |
void |
stop() |
getRequiredConfig, resolveTarget, resolveTarget, setUpAndRunState, tryResolveTargetaddChild, addChild, addEnricher, addEnricher, addFeed, addGroup, addLocations, addLocationsImpl, addLocationsWithoutPublishing, addPolicy, addPolicy, clearLocations, clearParent, config, configure, configure, configure, configure, configure, configure, destroy, emit, emitInternal, enrichers, equals, feeds, firstLocation, getAllAttributes, getApplication, getApplicationId, getAttribute, getAttributeByNameParts, getAttributesSynchObjectInternal, getChildren, getConfig, getConfig, getConfig, getCreationTime, getDisplayName, getEffector, getEnrichers, getEntityManager, getEntityType, getEntityTypeName, getExecutionContext, getFeedSupport, getGroups, getIconUrl, getLocations, getManagementContext, getManagementSupport, getMutableEntityType, getParent, getPolicies, getProxy, getProxyIfAvailable, getRebindSupport, getSubscriptionTracker, groups, hashCode, init, initEnrichers, invalidateReferences, invoke, invoke, invoke, modifyAttribute, onManagementBecomingMaster, onManagementNoLongerMaster, onManagementStarted, onManagementStarting, onManagementStopped, onTagsChanged, policies, relations, removeAllEnrichers, removeAllPolicies, removeAttribute, removeChild, removeEnricher, removeGroup, removeLocations, removePolicy, requestPersist, resetProxy, sensors, setApplication, setAttribute, setAttribute, setAttributeWithoutPublishing, setConfig, setConfig, setConfig, setConfig, setConfigEvenIfOwned, setConfigEvenIfOwned, setConfigIfValNonNull, setConfigIfValNonNull, setDefaultDisplayName, setDisplayName, setManagementContext, setParent, setProxy, subscribe, subscribeToChildren, subscribeToMembers, subscriptions, toMetadataRecord, toString, toStringHelper, unsubscribe, unsubscribeaddSearchPath, configure, getCatalogItemId, getCatalogItemIdSearchPath, getId, isLegacyConstruction, isRebinding, readResolve, rebind, setCatalogItemId, setCatalogItemIdAndSearchPath, stackCatalogItemId, tagsclone, finalize, getClass, notify, notifyAll, wait, wait, waitresolveTargetaddChild, addChild, addEnricher, addEnricher, addFeed, addGroup, addPolicy, addPolicy, clearParent, enrichers, getApplication, getApplicationId, getAttribute, getChildren, getConfig, getCreationTime, getDisplayName, getEnrichers, getEntityType, getGroups, getIconUrl, getId, getLocations, getParent, getPolicies, groups, invoke, policies, relations, removeChild, removeEnricher, removeGroup, removePolicy, sensors, setDisplayName, setParentgetCatalogItemId, getCatalogItemIdSearchPath, subscriptions, tagsconfig, getConfig, setConfigaddSearchPath, setCatalogItemId, setCatalogItemIdAndSearchPath, stackCatalogItemIdpublic void start(Collection<? extends org.apache.brooklyn.api.location.Location> locations)
protected Object invokeEffector(org.apache.brooklyn.api.entity.Entity targetEntity, org.apache.brooklyn.api.effector.Effector<?> effector, Map<String,?> effectorParams, Integer maxAttempts, org.apache.brooklyn.util.time.Duration timeout, org.apache.brooklyn.util.time.Duration backoffToPeriod)
maxAttempts times (defaulting to one attempt if that parameter is null).
The total invocation time is capped at timeout (if multiple attempts are
permitted, this is the total time for all attempts).AssertionError - if the invocation times outExecutionException - if the last invocation attempt failsprotected Object invokeEffector(org.apache.brooklyn.api.entity.Entity targetEntity, org.apache.brooklyn.api.effector.Effector<?> effector, Map<String,?> effectorParams, org.apache.brooklyn.util.time.Duration timeout) throws ExecutionException, TimeoutException
ExecutionExceptionTimeoutExceptionCopyright © 2012–2017 The Apache Software Foundation. All rights reserved.