@Component(value="blProfileSitePropagationEventConsumer")
public class ProfileSitePropagationEventConsumer
extends com.broadleafcommerce.jobsevents.service.AbstractSystemEventConsumer
MultiTenantDerivedCatalogCustomPersistenceHandler.
This consumer performs the profile copy operation within a database transaction. For exceptionally large profile copy
operations on some database platforms, this can result in a large database log to house the transaction. If such
a large transaction exceeds available resources, it may be necessary to not wrap this copy process in a single transaction and look
to a compensating transaction to cleanup state should an error occur during copying.| Modifier and Type | Field and Description |
|---|---|
static String |
EVENT_DETAIL_TYPE_FROM |
static String |
EVENT_DETAIL_TYPE_FROM_FRIENDLY |
static String |
EVENT_DETAIL_TYPE_TO |
static String |
EVENT_DETAIL_TYPE_TO_FRIENDLY |
static String |
EVENT_TYPE |
protected org.broadleafcommerce.common.service.GenericEntityService |
genericEntityService |
protected static org.apache.commons.logging.Log |
LOG |
protected ProfileSitePropagationService |
propagationService |
protected org.broadleafcommerce.common.site.service.SiteService |
siteService |
protected org.broadleafcommerce.common.util.StreamingTransactionCapableUtil |
transUtil |
entityManagerFactory| Constructor and Description |
|---|
ProfileSitePropagationEventConsumer() |
| Modifier and Type | Method and Description |
|---|---|
void |
consumeEvent(com.broadleafcommerce.jobsevents.domain.SystemEvent event) |
String |
getEventType() |
int |
getOrder() |
void |
updateStatus(org.broadleafcommerce.common.site.domain.Site toSite,
DeploymentStatus status) |
protected static final org.apache.commons.logging.Log LOG
public static final String EVENT_TYPE
public static final String EVENT_DETAIL_TYPE_FROM
public static final String EVENT_DETAIL_TYPE_TO
public static final String EVENT_DETAIL_TYPE_FROM_FRIENDLY
public static final String EVENT_DETAIL_TYPE_TO_FRIENDLY
protected org.broadleafcommerce.common.util.StreamingTransactionCapableUtil transUtil
protected org.broadleafcommerce.common.service.GenericEntityService genericEntityService
protected org.broadleafcommerce.common.site.service.SiteService siteService
protected ProfileSitePropagationService propagationService
public void consumeEvent(com.broadleafcommerce.jobsevents.domain.SystemEvent event)
public void updateStatus(org.broadleafcommerce.common.site.domain.Site toSite,
DeploymentStatus status)
public String getEventType()
public int getOrder()
getOrder in interface org.springframework.core.OrderedgetOrder in class com.broadleafcommerce.jobsevents.service.AbstractSystemEventConsumerCopyright © 2020. All rights reserved.