Package org.graylog2.lookup
Interface LookupTableConfigService
- All Known Implementing Classes:
DBLookupTableConfigService
public interface LookupTableConfigService
Abstracts the configuration retrieval for
LookupTableService
.-
Method Summary
Modifier and TypeMethodDescriptionfindCachesForIds
(Set<String> ids) Returns all lookup cache config objects for the given IDs.findDataAdaptersForIds
(Set<String> ids) Returns all lookup data adapter config objects for the given IDs.findTablesForCacheIds
(Set<String> ids) Returns all lookup table config objets that use the given cache IDs.Returns all lookup table config objets that use the given data adapter IDs.Returns the lookup table config for the given ID.Returns all existing lookup cache config objects.Returns all existing lookup data adapter config objects.Returns all existing lookup table config objects.
-
Method Details
-
getTable
Returns the lookup table config for the given ID.- Parameters:
id
- lookup table ID- Returns:
- Filled optional with the lookup table config or an empty optional if the lookup table doesn't exist
-
loadAllTables
Collection<LookupTableDto> loadAllTables()Returns all existing lookup table config objects.- Returns:
- collection of lookup table config objects
-
findTablesForDataAdapterIds
Returns all lookup table config objets that use the given data adapter IDs.- Parameters:
ids
- data adapter IDs- Returns:
- collection of lookup table config objects
-
findTablesForCacheIds
Returns all lookup table config objets that use the given cache IDs.- Parameters:
ids
- cache IDs- Returns:
- collection of lookup table config objects
-
loadAllDataAdapters
Collection<DataAdapterDto> loadAllDataAdapters()Returns all existing lookup data adapter config objects.- Returns:
- collection of lookup data adapter config objects
-
findDataAdaptersForIds
Returns all lookup data adapter config objects for the given IDs.- Parameters:
ids
- data dapter IDs- Returns:
- collection of lookup data adapter config objects
-
loadAllCaches
Collection<CacheDto> loadAllCaches()Returns all existing lookup cache config objects.- Returns:
- collection of lookup cache config objects
-
findCachesForIds
Returns all lookup cache config objects for the given IDs.- Parameters:
ids
- cache IDs- Returns:
- collection of lookup data adapter config objects
-