Interface SyntheticOpTemplateProvider

All Superinterfaces:
DriverAdapterDecorators
All Known Implementing Classes:
DiagDriverAdapter, StandardActivity, StdoutDriverAdapter, TcpClientDriverAdapter, TcpServerDriverAdapter

public interface SyntheticOpTemplateProvider extends DriverAdapterDecorators
It is possible for a DriverAdapter to create op templates using partial information. For example, the stdout driver can use only bindings to create CSV or JSON style data renderings. This mechanism is only triggered when:
  1. No op templates were provided.
  2. The default driver for an activity implements this method.

This excludes cases where a workload was provided with op templates, but they were all filtered out. In that case, the user should be informed of an error.

  • Method Details

    • getSyntheticOpTemplates

      List<OpTemplate> getSyntheticOpTemplates(OpsDocList opsDocList, Map<String,Object> params)
      If a driver adapter supports creating example op templates from bindings, it must implement this method to do so.
      Parameters:
      opsDocList - The existing doc structure, which should contain no fully defined op templates, but may contain other elements like bindings
      Returns:
      A list of op templates, size zero or more