@Service public final class TargetBasedExecutor extends Object implements ClusterExecutor
Constructor and Description |
---|
TargetBasedExecutor() |
Modifier and Type | Method and Description |
---|---|
ActionReport.ExitCode |
execute(String commandName,
AdminCommand command,
AdminCommandContext context,
ParameterMap parameters)
Execute the passed command on targeted remote instances.
|
public ActionReport.ExitCode execute(String commandName, AdminCommand command, AdminCommandContext context, ParameterMap parameters)
ClusterExecutor
Execute the passed command on targeted remote instances. The list of remote instances is usually retrieved from the passed parameters (with a "target" parameter for instance) or from the configuration.
Each remote execution must return a different ActionReport so the user or framework can get feedback on the success or failure or such executions.
execute
in interface ClusterExecutor
commandName
- the name of the command to executecommand
- the command to executecontext
- the original command contextparameters
- the parameters passed to the original local commandCopyright © 2019. All rights reserved.