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.EventTypeAbstractEntityAdjunct.AdjunctTagSupport, AbstractEntityAdjunct.BasicSubscriptionSupportBrooklynObject.RelationSupport<T extends BrooklynObject>, BrooklynObject.SubscriptionSupport, BrooklynObject.TagSupportConfigurable.ConfigurationSupportBrooklynObjectInternal.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_TRACKHIGHLIGHT_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, suspenddestroy, getPolicyType, getRebindSupport, isRunning, isSuspended, relations, toStringconfig, configure, getAdjunctType, getConfig, getDisplayName, getEntity, getExecutionContext, getHighlights, getManagementContext, getUniqueTag, isDestroyed, setDisplayName, setHighlights, subscriptions, tagsaddSearchPath, getCatalogItemId, getCatalogItemIdSearchPath, getId, init, rebind, setCatalogItemId, setCatalogItemIdAndSearchPath, setManagementContext, stackCatalogItemIdequals, getClass, hashCode, notify, notifyAll, wait, wait, waitgetHighlights, getUniqueTag, isDestroyedgetCatalogItemId, getCatalogItemIdSearchPath, getDisplayName, subscriptions, tagsconfig, getConfigaddSearchPath, setCatalogItemId, setCatalogItemIdAndSearchPath, stackCatalogItemIdpublic 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)