Class LegacySectionParser
java.lang.Object
com.illumon.iris.db.v2.routing.impl.yaml.LegacySectionParser
- All Implemented Interfaces:
SectionParser
SectionParser for sections of yml in legacy format.
-
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 public LogAggregatorConfig parseLogAggregatorData(@NotNull String name, @NotNull Map<Object, Object> yml) Description copied from interface:SectionParser
Parse a log aggregator section of the yml file.- Specified by:
parseLogAggregatorData
in interfaceSectionParser
- Parameters:
name
- the name of the log aggregatoryml
- the yml data to parse- Returns:
- a LogAggregatorConfig
-
parseDataImportServiceData
@NotNull public DataImportServiceConfig parseDataImportServiceData(@Nullable ClaimsProvider claimsProvider, @NotNull String name, @NotNull Map<Object, Object> yml, @NotNull Function<String, StorageData> storageLookup) Description copied from interface:SectionParser
Parse a data import service section of the yml file.- Specified by:
parseDataImportServiceData
in interfaceSectionParser
- 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 public DataRoutingService.EndpointConfig parseTableDataServiceEndpoint(@NotNull String name, @NotNull String context, @NotNull Map<Object, Object> tdsYml) Description copied from interface:SectionParser
Parse a table data service section of the yml file.- Specified by:
parseTableDataServiceEndpoint
in interfaceSectionParser
- Parameters:
name
- the name of the table data servicecontext
- the context for continued parsingtdsYml
- the yml data to parse- Returns:
- a DataRoutingService.EndpointConfig
-