@Service(value="blSimpleSystemEventService") public class SimpleSystemEventServiceImpl extends Object implements SimpleSystemEventService
SimpleSystemEventServiceSimpleSystemEventService.InvalidationInfo, SimpleSystemEventService.SolrInfo| Modifier and Type | Field and Description |
|---|---|
protected SimpleCloneDao |
cloneDao |
protected SimpleTransitionDao |
dao |
protected com.broadleafcommerce.jobsevents.service.SystemEventCompressionHelper |
helper |
protected com.broadleafcommerce.jobsevents.service.consumer.CacheInvalidationHelper |
invalidationHelper |
protected org.broadleafcommerce.common.sandbox.SandBoxHelper |
sandBoxHelper |
protected com.broadleafcommerce.jobsevents.service.DatabaseSystemEventSender |
sender |
protected SimpleTableMetadataDao |
simpleTableMetadataDao |
protected SimpleSystemEventDao |
systemEventDao |
| Constructor and Description |
|---|
SimpleSystemEventServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addEventDetail(com.broadleafcommerce.jobsevents.domain.SystemEvent event,
String name,
String value,
String longValue,
String friendlyName) |
void |
compressAndSend(List<com.broadleafcommerce.jobsevents.domain.SystemEvent> compress) |
List<com.broadleafcommerce.jobsevents.domain.SystemEvent> |
createCacheInvalidationEvents(Long id,
Class<?> clazz,
Long siteId,
Long siteDisc,
Long catalogDisc,
com.broadleafcommerce.jobsevents.service.type.EventWorkerType workerType,
Long sandboxId,
boolean shouldCreateSolrEvent) |
protected List<com.broadleafcommerce.jobsevents.domain.SystemEvent> |
createSolrEvent(Map<Long,Set<SimpleSystemEventService.SolrInfo>> infosBySandbox)
Create invalidation events targeted at solr incremental indexing
|
protected com.broadleafcommerce.jobsevents.domain.SystemEvent |
createStandardEvent(String id,
String entityType,
Long targetSandBox,
String region,
Long currentProfile,
Long currentCatalog,
Long site,
com.broadleafcommerce.jobsevents.service.type.EventWorkerType workerType)
Create invalidation events targeted at Hibernate Level 2 cache.
|
void |
emitCacheInvalidationEvents(Map<String,List<SimpleSystemEventService.InvalidationInfo>> infosByTable)
Emit standard cache invalidation and solr invalidation messages.
|
void |
emitCacheInvalidationEvents(Map<String,List<SimpleSystemEventService.InvalidationInfo>> infosByTable,
boolean onlyForUpdates) |
protected void |
establishBroadleafRequestContextState(org.broadleafcommerce.common.web.BroadleafRequestContext copy,
Long siteId,
Long catalogId,
com.broadleafcommerce.jobsevents.domain.SystemEvent event) |
protected void |
establishSolrInfoIfApplicable(Map<Long,Set<SimpleSystemEventService.SolrInfo>> infosBySandbox,
SimpleSystemEventService.InvalidationInfo invalidationInfo) |
protected Map<Class<?>,List<SimpleSystemEventService.InvalidationInfo>> |
getInfoByType(Map<String,List<SimpleSystemEventService.InvalidationInfo>> infosByTable) |
protected SimpleSolrTransactionSynchronizationAdapter |
getSimpleSolrTransactionSynchronizationAdapter(List<com.broadleafcommerce.jobsevents.domain.SystemEvent> solrCacheEvents) |
protected void |
populateRelatedProductInformationIfApplicable(Map<Class<?>,List<SimpleSystemEventService.InvalidationInfo>> infoByType) |
protected void |
populateSolrSystemEvent(org.broadleafcommerce.common.web.BroadleafRequestContext copy,
List<com.broadleafcommerce.jobsevents.domain.SystemEvent> events,
Long siteId,
Set<SimpleSystemEventService.SolrInfo> infos,
Long sandbox,
Long catalogId) |
protected SimpleTransitionDao dao
protected SimpleTableMetadataDao simpleTableMetadataDao
protected SimpleSystemEventDao systemEventDao
protected com.broadleafcommerce.jobsevents.service.SystemEventCompressionHelper helper
protected com.broadleafcommerce.jobsevents.service.consumer.CacheInvalidationHelper invalidationHelper
protected com.broadleafcommerce.jobsevents.service.DatabaseSystemEventSender sender
protected SimpleCloneDao cloneDao
protected org.broadleafcommerce.common.sandbox.SandBoxHelper sandBoxHelper
public void emitCacheInvalidationEvents(Map<String,List<SimpleSystemEventService.InvalidationInfo>> infosByTable)
SimpleSystemEventServiceemitCacheInvalidationEvents in interface SimpleSystemEventServiceinfosByTable - The list of changes by table driving the need for cache invalidation on
the storefront and admin nodespublic void emitCacheInvalidationEvents(Map<String,List<SimpleSystemEventService.InvalidationInfo>> infosByTable, boolean onlyForUpdates)
emitCacheInvalidationEvents in interface SimpleSystemEventServiceprotected void establishSolrInfoIfApplicable(Map<Long,Set<SimpleSystemEventService.SolrInfo>> infosBySandbox, SimpleSystemEventService.InvalidationInfo invalidationInfo)
protected Map<Class<?>,List<SimpleSystemEventService.InvalidationInfo>> getInfoByType(Map<String,List<SimpleSystemEventService.InvalidationInfo>> infosByTable)
protected void populateRelatedProductInformationIfApplicable(Map<Class<?>,List<SimpleSystemEventService.InvalidationInfo>> infoByType)
protected List<com.broadleafcommerce.jobsevents.domain.SystemEvent> createSolrEvent(Map<Long,Set<SimpleSystemEventService.SolrInfo>> infosBySandbox)
infosBySandbox - protected void populateSolrSystemEvent(org.broadleafcommerce.common.web.BroadleafRequestContext copy,
List<com.broadleafcommerce.jobsevents.domain.SystemEvent> events,
Long siteId,
Set<SimpleSystemEventService.SolrInfo> infos,
Long sandbox,
Long catalogId)
protected void establishBroadleafRequestContextState(org.broadleafcommerce.common.web.BroadleafRequestContext copy,
Long siteId,
Long catalogId,
com.broadleafcommerce.jobsevents.domain.SystemEvent event)
protected com.broadleafcommerce.jobsevents.domain.SystemEvent createStandardEvent(String id, String entityType, Long targetSandBox, String region, Long currentProfile, Long currentCatalog, Long site, com.broadleafcommerce.jobsevents.service.type.EventWorkerType workerType)
id - The primary key value of the entity to remove from L2 cacheentityType - The fully qualified classname of the entity implementationtargetSandBox - The sandbox in which the item to remove from cache residesregion - The Hibernate L2 cache regioncurrentProfile - The profile in play during the deployment of the entity, if applicablecurrentCatalog - The catalog in play during the deployment of the entity, if applicablesite - The site identifier in play during the deployment of the entityworkerType - The type of node that should consume the event. See
EventWorkerType.protected void addEventDetail(com.broadleafcommerce.jobsevents.domain.SystemEvent event,
String name,
String value,
String longValue,
String friendlyName)
@Lookup(value="blSimpleSolrTransactionSynchronizationAdapter") protected SimpleSolrTransactionSynchronizationAdapter getSimpleSolrTransactionSynchronizationAdapter(List<com.broadleafcommerce.jobsevents.domain.SystemEvent> solrCacheEvents)
public List<com.broadleafcommerce.jobsevents.domain.SystemEvent> createCacheInvalidationEvents(Long id, Class<?> clazz, Long siteId, Long siteDisc, Long catalogDisc, com.broadleafcommerce.jobsevents.service.type.EventWorkerType workerType, Long sandboxId, boolean shouldCreateSolrEvent)
createCacheInvalidationEvents in interface SimpleSystemEventServicepublic void compressAndSend(List<com.broadleafcommerce.jobsevents.domain.SystemEvent> compress)
compressAndSend in interface SimpleSystemEventServiceCopyright © 2021. All rights reserved.