public class ConfigureTask extends ServerSideActionTask
ConfigureTask
represents a configuration change. This task
contains id of change. Change definitions are located in a separate file (config
upgrade pack). IDs of change definitions share the same namespace within all
stacks
<task xsi:type="configure" id="hdp_2_3_0_0-UpdateHiveConfig"/>
Modifier and Type | Field and Description |
---|---|
static String |
actionVerb |
String |
associatedService
The associated service is the service where this config task is specified
|
String |
id |
static String |
PARAMETER_ASSOCIATED_SERVICE
The associated service for the config task
|
static String |
PARAMETER_CONFIG_TYPE
The key that represents the configuration type to change (ie hdfs-site).
|
static String |
PARAMETER_INSERTIONS
Insertions can be several per task, so they're passed in as a json-ified
list of objects.
|
static String |
PARAMETER_KEY_VALUE_PAIRS
Setting key/value pairs can be several per task, so they're passed in as a
json-ified list of objects.
|
static String |
PARAMETER_REPLACEMENTS
Replacements can be several per task, so they're passed in as a json-ified list of
objects.
|
static String |
PARAMETER_TRANSFERS
Transfers can be several per task, so they're passed in as a json-ified
list of objects.
|
boolean |
supportsPatch |
implClass, messages, parameters
condition, GSON, isSequential, scope, summary, timeoutConfig
Constructor and Description |
---|
ConfigureTask()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
String |
getActionVerb() |
Map<String,String> |
getConfigurationChanges(Cluster cluster,
ConfigUpgradePack configUpgradePack)
Gets a map containing the following properties pertaining to the
configuration value to change:
PARAMETER_CONFIG_TYPE - the configuration type (ie hdfs-site)
PARAMETER_KEY_VALUE_PAIRS - key/value pairs for the
configurations
PARAMETER_KEY_VALUE_PAIRS - key/value pairs for the
configurations
PARAMETER_TRANSFERS - COPY/MOVE/DELETE changes
PARAMETER_REPLACEMENTS - value replacements
|
String |
getId()
This getter is intended to be used only from tests.
|
StageWrapper.Type |
getStageWrapperType() |
String |
getSummary(ConfigUpgradePack configUpgradePack)
Gets the summary of the task or
null . |
Task.Type |
getType() |
getImplementationClass, getParameters, setImplClass
getSummary, toString
public static final String PARAMETER_CONFIG_TYPE
public static final String PARAMETER_KEY_VALUE_PAIRS
public static final String PARAMETER_TRANSFERS
public static final String PARAMETER_REPLACEMENTS
public static final String PARAMETER_INSERTIONS
public static final String PARAMETER_ASSOCIATED_SERVICE
public static final String actionVerb
public String id
public boolean supportsPatch
public String associatedService
public Task.Type getType()
public StageWrapper.Type getStageWrapperType()
getStageWrapperType
in class Task
public String getActionVerb()
getActionVerb
in class ServerSideActionTask
public String getId()
public String getSummary(ConfigUpgradePack configUpgradePack)
null
.null
.public Map<String,String> getConfigurationChanges(Cluster cluster, ConfigUpgradePack configUpgradePack)
PARAMETER_CONFIG_TYPE
- the configuration type (ie hdfs-site)PARAMETER_KEY_VALUE_PAIRS
- key/value pairs for the
configurationsPARAMETER_KEY_VALUE_PAIRS
- key/value pairs for the
configurationsPARAMETER_TRANSFERS
- COPY/MOVE/DELETE changesPARAMETER_REPLACEMENTS
- value replacementscluster
- the cluster to use when retrieving conditional properties to test
against (not null
).Copyright © 2022 Apache Software Foundation. All rights reserved.