public class AddComponentTask extends ServerSideActionTask
AddComponentTask is used for adding components during an upgrade.
Components which are added via the task will also be scheduled for a restart
if they appear in the upgrade pack as part of a restart group. This is true
even if they do not exist in the cluster yet.| Modifier and Type | Field and Description |
|---|---|
String |
component
The component to add.
|
String |
hostComponent
Specifies the hosts which are valid for adding teh new component,
restricted by component.
|
ExecuteHostType |
hosts
The hosts to run the task on.
|
String |
hostService
Specifies the hosts which are valid for adding the new component,
restricted by service.
|
static String |
PARAMETER_SERIALIZED_ADD_COMPONENT_TASK
The key which represents this task serialized.
|
String |
service
The service which owns the component to add.
|
actionVerb, implClass, messages, parameterscondition, GSON, isSequential, scope, summary, timeoutConfig| Constructor and Description |
|---|
AddComponentTask()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getActionVerb() |
String |
getServiceAndComponentAsString()
Gets a string which is comprised of serviceName/componentName
|
StageWrapper.Type |
getStageWrapperType() |
Task.Type |
getType() |
String |
toJson()
Gets a JSON representation of this task.
|
getImplementationClass, getParameters, setImplClassgetSummary, toStringpublic static final String PARAMETER_SERIALIZED_ADD_COMPONENT_TASK
public ExecuteHostType hosts
ExecuteHostType.ANY.public String service
public String component
public String hostService
public String hostComponent
public Task.Type getType()
public StageWrapper.Type getStageWrapperType()
getStageWrapperType in class Taskpublic String getActionVerb()
getActionVerb in class ServerSideActionTaskpublic String toJson()
public String getServiceAndComponentAsString()
Copyright © 2022 Apache Software Foundation. All rights reserved.