public class ExecutionCommandWrapper extends Object
Constructor and Description |
---|
ExecutionCommandWrapper(ExecutionCommand executionCommand) |
ExecutionCommandWrapper(String jsonExecutionCommand) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
AgentCommand.AgentCommandType |
getCommandType()
Gets the type of command by deserializing the JSON and invoking
AgentCommand.getCommandType() . |
ExecutionCommand |
getExecutionCommand()
Gets the execution command by either de-serializing the backing JSON
command or returning the encapsulated instance which has already been
de-serialized.
|
String |
getJson() |
int |
hashCode() |
void |
setVersions(Cluster cluster,
CommandRepository commandRepository) |
public ExecutionCommandWrapper(String jsonExecutionCommand)
public ExecutionCommandWrapper(ExecutionCommand executionCommand)
public ExecutionCommand getExecutionCommand()
ExecutionCommand
has configuration tags which need to be
refreshed, then this method will lookup the appropriate configuration tags
before building the final configurations to set ont he command. Therefore,
the ExecutionCommand
is allowed to have no configuration tags as
long as it has been instructed to set updated ones at execution time.public void setVersions(Cluster cluster, CommandRepository commandRepository)
public AgentCommand.AgentCommandType getCommandType()
AgentCommand.getCommandType()
.public String getJson()
Copyright © 2022 Apache Software Foundation. All rights reserved.