@Component(value="blDeployConsumeWorker") @Scope(value="prototype") @Lazy public class DeployConsumeWorkerImpl extends AbstractConsumerWorker implements org.springframework.context.ApplicationListener<org.springframework.context.ApplicationEvent>, ScheduledDeployManagerAware
SystemEvent
instances
for this node. This worker specifically deals with VM and GLOBAL event types.Modifier and Type | Field and Description |
---|---|
protected ScheduledDeployManager |
deployManager |
protected IncognitoEnvironmentDetector |
detector |
protected int |
eventsPerPoll
The number of scheduled deploy events to consume per poll from the database
|
protected DatabaseSystemEventDao |
systemEventDao |
protected QueueStatusThreadPoolTaskExecutor |
taskExecutor |
protected org.springframework.transaction.PlatformTransactionManager |
transactionManager |
protected org.broadleafcommerce.common.util.StreamingTransactionCapableUtil |
transUtil |
Constructor and Description |
---|
DeployConsumeWorkerImpl() |
Modifier and Type | Method and Description |
---|---|
protected void |
constructTaskExecutor() |
void |
execute(org.quartz.JobExecutionContext jobExecutionContext) |
void |
init() |
void |
onApplicationEvent(org.springframework.context.ApplicationEvent event) |
void |
setScheduledDeployManager(ScheduledDeployManager scheduledDeployManager) |
populateSystemEvents
protected org.broadleafcommerce.common.util.StreamingTransactionCapableUtil transUtil
protected org.springframework.transaction.PlatformTransactionManager transactionManager
protected DatabaseSystemEventDao systemEventDao
protected IncognitoEnvironmentDetector detector
protected ScheduledDeployManager deployManager
protected QueueStatusThreadPoolTaskExecutor taskExecutor
@Value(value="${database.deploy.event.quantity.per.poll:20}") protected int eventsPerPoll
@PostConstruct public void init()
public void onApplicationEvent(org.springframework.context.ApplicationEvent event)
onApplicationEvent
in interface org.springframework.context.ApplicationListener<org.springframework.context.ApplicationEvent>
public void execute(org.quartz.JobExecutionContext jobExecutionContext)
execute
in interface ConsumeWorker
public void setScheduledDeployManager(ScheduledDeployManager scheduledDeployManager)
setScheduledDeployManager
in interface ScheduledDeployManagerAware
protected void constructTaskExecutor()
Copyright © 2017. All rights reserved.