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 Summary
Modifier and TypeMethodDescriptionparseDataImportServiceData
(ClaimsProvider claimsProvider, String name, Map<Object, Object> yml, Function<String, StorageData> storageLookup) Parse a data import service section of the yml file.parseLogAggregatorData
(String name, Map<Object, Object> yml) Parse a log aggregator section of the yml file.Parse a table data service section of the yml file.
-
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 aggregatoryml
- 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 filtersname
- the name of the data import serviceyml
- the yml data to parsestorageLookup
- 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 servicecontext
- the context for continued parsingtdsYml
- the yml data to parse- Returns:
- a DataRoutingService.EndpointConfig
-