private List<TimelineStore> getTimelineStoresForRead(String entityType, NameValuePair primaryFilter, Collection<NameValuePair> secondaryFilters, List<EntityCacheItem> cacheItems) throws IOException { Set<TimelineEntityGroupId> groupIds = new HashSet<TimelineEntityGroupId>(); for (TimelineEntityGroupPlugin cacheIdPlugin : cacheIdPlugins) { Set<TimelineEntityGroupId> idsFromPlugin = cacheIdPlugin.getTimelineEntityGroupId(entityType, primaryFilter, secondaryFilters); if (idsFromPlugin != null) { LOG.debug("plugin {} returns a non-null value on query {}", cacheIdPlugin.getClass().getName(), idsFromPlugin); groupIds.addAll(idsFromPlugin); } } return getTimelineStoresFromCacheIds(groupIds, entityType, cacheItems); }
private List<TimelineStore> getTimelineStoresForRead(String entityType, NameValuePair primaryFilter, Collection<NameValuePair> secondaryFilters) throws IOException { Set<TimelineEntityGroupId> groupIds = new HashSet<TimelineEntityGroupId>(); for (TimelineEntityGroupPlugin cacheIdPlugin : cacheIdPlugins) { Set<TimelineEntityGroupId> idsFromPlugin = cacheIdPlugin.getTimelineEntityGroupId(entityType, primaryFilter, secondaryFilters); if (idsFromPlugin != null) { LOG.debug("plugin {} returns a non-null value on query {}", cacheIdPlugin.getClass().getName(), idsFromPlugin); groupIds.addAll(idsFromPlugin); } } return getTimelineStoresFromCacheIds(groupIds, entityType); }
private List<TimelineStore> getTimelineStoresForRead(String entityId, String entityType) throws IOException { Set<TimelineEntityGroupId> groupIds = new HashSet<TimelineEntityGroupId>(); for (TimelineEntityGroupPlugin cacheIdPlugin : cacheIdPlugins) { LOG.debug("Trying plugin {} for id {} and type {}", cacheIdPlugin.getClass().getName(), entityId, entityType); Set<TimelineEntityGroupId> idsFromPlugin = cacheIdPlugin.getTimelineEntityGroupId(entityId, entityType); if (idsFromPlugin == null) { LOG.debug("Plugin returned null " + cacheIdPlugin.getClass().getName()); } else { LOG.debug("Plugin returned ids: " + idsFromPlugin); } if (idsFromPlugin != null) { groupIds.addAll(idsFromPlugin); LOG.debug("plugin {} returns a non-null value on query", cacheIdPlugin.getClass().getName()); } } return getTimelineStoresFromCacheIds(groupIds, entityType); }
protected List<TimelineStore> getTimelineStoresForRead(String entityId, String entityType, List<EntityCacheItem> cacheItems) throws IOException { Set<TimelineEntityGroupId> groupIds = new HashSet<TimelineEntityGroupId>(); for (TimelineEntityGroupPlugin cacheIdPlugin : cacheIdPlugins) { LOG.debug("Trying plugin {} for id {} and type {}", cacheIdPlugin.getClass().getName(), entityId, entityType); Set<TimelineEntityGroupId> idsFromPlugin = cacheIdPlugin.getTimelineEntityGroupId(entityId, entityType); if (idsFromPlugin == null) { LOG.debug("Plugin returned null " + cacheIdPlugin.getClass().getName()); } else { LOG.debug("Plugin returned ids: " + idsFromPlugin); } if (idsFromPlugin != null) { groupIds.addAll(idsFromPlugin); LOG.debug("plugin {} returns a non-null value on query", cacheIdPlugin.getClass().getName()); } } return getTimelineStoresFromCacheIds(groupIds, entityType, cacheItems); }