public interface TestSshCommand extends BaseTest
SshMachineLocation
of the target entity.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 ConfigKey<java.lang.Object> |
ASSERT_ERR
Assertions on the standard error of the command as a String.
|
static ConfigKey<java.lang.Object> |
ASSERT_OUT
Assertions on the standard output of the command as a String.
|
static ConfigKey<java.lang.Object> |
ASSERT_STATUS
Assertions on the exit code of the simple command.
|
static ConfigKey<Duration> |
BACKOFF_TO_PERIOD |
static ConfigKey<java.lang.String> |
COMMAND
Supply the command to invoke directly.
|
static java.util.Map<java.lang.String,java.lang.Object> |
DEFAULT_ASSERTION
If no assertions are configured in the test then the default is this assertion that exit status of the command
is zero (successful).
|
static AttributeSensorAndConfigKey<java.lang.String,java.lang.String> |
DOWNLOAD_URL
Download a script to invoke.
|
static ConfigKey<java.lang.Integer> |
MAX_ATTEMPTS
The maximum number of times to execute the ssh command, before throwing an exception.
|
static ConfigKey<java.lang.String> |
RUN_DIR
The working directory that the script will be run from on the target machine.
|
static ConfigKey<java.lang.String> |
SCRIPT_DIR
Where the script will be downloaded on the target machine.
|
static ConfigKey<java.util.Map<java.lang.String,java.lang.Object>> |
SHELL_ENVIRONMENT |
static java.lang.String |
TMP_DEFAULT
Default location for temporary files.
|
ASSERTIONS, ITERATION_LIMIT, TIMEOUT
TARGET_ENTITY, TARGET_ENTITY_ID, TARGET_ENTITY_NAME, TARGET_ENTITY_TYPE, TARGET_ID, TARGET_RESOLUTION_TIMEOUT
RESTART, SERVICE_UP, START, STOP
resolveTarget
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 TMP_DEFAULT
static final ConfigKey<java.lang.String> COMMAND
DOWNLOAD_URL
.static final AttributeSensorAndConfigKey<java.lang.String,java.lang.String> DOWNLOAD_URL
COMMAND
.static final ConfigKey<java.util.Map<java.lang.String,java.lang.Object>> SHELL_ENVIRONMENT
static final ConfigKey<java.lang.String> SCRIPT_DIR
static final ConfigKey<java.lang.String> RUN_DIR
static final java.util.Map<java.lang.String,java.lang.Object> DEFAULT_ASSERTION
static final ConfigKey<java.lang.Object> ASSERT_STATUS
static final ConfigKey<java.lang.Object> ASSERT_OUT
static final ConfigKey<java.lang.Object> ASSERT_ERR
static final ConfigKey<java.lang.Integer> MAX_ATTEMPTS