Package org.graylog2.lookup.db
Class DBLookupTableConfigService
java.lang.Object
org.graylog2.lookup.db.DBLookupTableConfigService
- All Implemented Interfaces:
LookupTableConfigService
@Singleton
public class DBLookupTableConfigService
extends Object
implements LookupTableConfigService
-
Constructor Summary
ConstructorsConstructorDescriptionDBLookupTableConfigService(DBDataAdapterService dbAdapters, DBCacheService dbCaches, DBLookupTableService dbTables) -
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.
-
Constructor Details
-
DBLookupTableConfigService
@Inject public DBLookupTableConfigService(DBDataAdapterService dbAdapters, DBCacheService dbCaches, DBLookupTableService dbTables)
-
-
Method Details
-
getTable
Description copied from interface:LookupTableConfigServiceReturns the lookup table config for the given ID.- Specified by:
getTablein interfaceLookupTableConfigService- 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
Description copied from interface:LookupTableConfigServiceReturns all existing lookup table config objects.- Specified by:
loadAllTablesin interfaceLookupTableConfigService- Returns:
- collection of lookup table config objects
-
findTablesForDataAdapterIds
Description copied from interface:LookupTableConfigServiceReturns all lookup table config objets that use the given data adapter IDs.- Specified by:
findTablesForDataAdapterIdsin interfaceLookupTableConfigService- Parameters:
ids- data adapter IDs- Returns:
- collection of lookup table config objects
-
findTablesForCacheIds
Description copied from interface:LookupTableConfigServiceReturns all lookup table config objets that use the given cache IDs.- Specified by:
findTablesForCacheIdsin interfaceLookupTableConfigService- Parameters:
ids- cache IDs- Returns:
- collection of lookup table config objects
-
loadAllDataAdapters
Description copied from interface:LookupTableConfigServiceReturns all existing lookup data adapter config objects.- Specified by:
loadAllDataAdaptersin interfaceLookupTableConfigService- Returns:
- collection of lookup data adapter config objects
-
findDataAdaptersForIds
Description copied from interface:LookupTableConfigServiceReturns all lookup data adapter config objects for the given IDs.- Specified by:
findDataAdaptersForIdsin interfaceLookupTableConfigService- Parameters:
ids- data dapter IDs- Returns:
- collection of lookup data adapter config objects
-
loadAllCaches
Description copied from interface:LookupTableConfigServiceReturns all existing lookup cache config objects.- Specified by:
loadAllCachesin interfaceLookupTableConfigService- Returns:
- collection of lookup cache config objects
-
findCachesForIds
Description copied from interface:LookupTableConfigServiceReturns all lookup cache config objects for the given IDs.- Specified by:
findCachesForIdsin interfaceLookupTableConfigService- Parameters:
ids- cache IDs- Returns:
- collection of lookup data adapter config objects
-