EVENT_TYPE
or MEMBER_ID
then we'll want
InvokeEffectorOnSensorChange to be able to subscribe to members/children etc as well,
and pass parameters based on source.entityId and source.sensor.@Deprecated public class SshCommandMembershipTrackingPolicy extends AbstractMembershipTrackingPolicy
Sets the environment variable EVENT_TYPE
to the value of the EventType
for the invocation, and MEMBER_ID
to the ID of the entity that is being
added, removed or updated.
The execution.target
configuration specifies where the command will be
executed. This can be one of: the owing entity
;
the member
that was updated; or
all members
of the group.
Modifier and Type | Class and Description |
---|---|
static class |
SshCommandMembershipTrackingPolicy.ExecutionTarget
Deprecated.
|
AbstractMembershipTrackingPolicy.EventType
AbstractEntityAdjunct.AdjunctTagSupport, AbstractEntityAdjunct.BasicSubscriptionSupport
BrooklynObject.RelationSupport<T extends BrooklynObject>, BrooklynObject.SubscriptionSupport, BrooklynObject.TagSupport
Configurable.ConfigurationSupport
BrooklynObjectInternal.ConfigurationSupportInternal, BrooklynObjectInternal.RelationSupportInternal<T extends BrooklynObject>, BrooklynObjectInternal.SubscriptionSupportInternal
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
EVENT_TYPE
Deprecated.
|
static ConfigKey<java.lang.String> |
EXECUTION_DIR
Deprecated.
|
static ConfigKey<SshCommandMembershipTrackingPolicy.ExecutionTarget> |
EXECUTION_TARGET
Deprecated.
|
static java.lang.String |
MEMBER_ID
Deprecated.
|
static MapConfigKey<java.lang.Object> |
SHELL_ENVIRONMENT
Deprecated.
|
static ConfigKey<java.lang.String> |
UPDATE_COMMAND
Deprecated.
|
GROUP, NOTIFY_ON_DUPLICATES, SENSORS_TO_TRACK
HIGHLIGHT_NAME_LAST_ACTION, HIGHLIGHT_NAME_LAST_CONFIRMATION, HIGHLIGHT_NAME_LAST_VIOLATION, HIGHLIGHT_NAME_TRIGGERS
Constructor and Description |
---|
SshCommandMembershipTrackingPolicy()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
execute(Entity target,
java.lang.String command,
java.lang.String type,
java.lang.String memberId)
Deprecated.
|
resume, setEntity, suspend
destroy, getPolicyType, getRebindSupport, isRunning, isSuspended, relations, toString
config, configure, getAdjunctType, getConfig, getDisplayName, getEntity, getExecutionContext, getHighlights, getManagementContext, getUniqueTag, isDestroyed, setDisplayName, setHighlights, subscriptions, tags
addSearchPath, getCatalogItemId, getCatalogItemIdSearchPath, getId, init, rebind, setCatalogItemId, setCatalogItemIdAndSearchPath, setManagementContext, stackCatalogItemId
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
getHighlights, getUniqueTag, isDestroyed
getCatalogItemId, getCatalogItemIdSearchPath, getDisplayName, subscriptions, tags
config, getConfig
addSearchPath, setCatalogItemId, setCatalogItemIdAndSearchPath, stackCatalogItemId
public static final java.lang.String EVENT_TYPE
public static final java.lang.String MEMBER_ID
public static final ConfigKey<java.lang.String> EXECUTION_DIR
public static final MapConfigKey<java.lang.Object> SHELL_ENVIRONMENT
public static final ConfigKey<java.lang.String> UPDATE_COMMAND
public static final ConfigKey<SshCommandMembershipTrackingPolicy.ExecutionTarget> EXECUTION_TARGET
public SshCommandMembershipTrackingPolicy()
public void execute(Entity target, java.lang.String command, java.lang.String type, java.lang.String memberId)