Interface SectionParser

All Known Implementing Classes:
LegacySectionParser, SectionParserImpl

public interface SectionParser
Interface defining methods for parsing various sections of a data routing yml file. This is to support multiple variations of the parser (legacy and current).
  • Method Details

    • parseLogAggregatorData

      @NotNull LogAggregatorConfig parseLogAggregatorData(@NotNull String name, @NotNull Map<Object,Object> yml)
      Parse a log aggregator section of the yml file.
      Parameters:
      name - the name of the log aggregator
      yml - the yml data to parse
      Returns:
      a LogAggregatorConfig
    • parseDataImportServiceData

      @NotNull DataImportServiceConfig parseDataImportServiceData(@Nullable ClaimsProvider claimsProvider, @NotNull String name, @NotNull Map<Object,Object> yml, @NotNull Function<String,StorageData> storageLookup)
      Parse a data import service section of the yml file.
      Parameters:
      claimsProvider - optional claims provider used to create filters
      name - the name of the data import service
      yml - the yml data to parse
      storageLookup - a function to lookup storage data by name
      Returns:
      a DataImportServiceConfig
    • parseTableDataServiceEndpoint

      @Nullable DataRoutingService.EndpointConfig parseTableDataServiceEndpoint(@NotNull String name, String context, Map<Object,Object> tdsYml)
      Parse a table data service section of the yml file.
      Parameters:
      name - the name of the table data service
      context - the context for continued parsing
      tdsYml - the yml data to parse
      Returns:
      a DataRoutingService.EndpointConfig