public ExecutionCommandWrapper getExecutionCommandWrapper() {
    if (taskId != -1 && executionCommandWrapper == null) {
      ExecutionCommandEntity commandEntity = executionCommandDAO.findByPK(taskId);
      if (commandEntity == null) {
        throw new RuntimeException("Invalid DB state, broken one-to-one relation for taskId=" + taskId);
      }

      executionCommandWrapper = ecwFactory.createFromJson(new String(commandEntity.getCommand()));
    }

    return executionCommandWrapper;
  }
Sets the host ID and name for the host associated with this command.

@param hostId
@param hostName
ambari-server/src/main/java/org/apache/ambari/server/actionmanager/HostRoleCommand.java