@Override
  public List<HostRoleCommand> getCommands() {
    List<HostRoleCommand> commands = new ArrayList<>();
    for (HostRequest hostRequest : allHostRequests) {
      commands.addAll(new ArrayList<>(hostRequest.getLogicalTasks()));
    }
    return commands;
  }
Logical Request implementation used to provision a cluster deployed by Blueprints.
ambari-server/src/main/java/org/apache/ambari/server/topology/LogicalRequest.java