@Component(value="blDeployConsumeWorker") @Scope(value="prototype") @Lazy public class DeployConsumeWorkerImpl extends AbstractConsumerWorker implements ScheduledDeployManagerAware, Stoppable
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.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 |
setScheduledDeployManager(ScheduledDeployManager scheduledDeployManager) |
void |
stop() |
populateSystemEvents
protected org.broadleafcommerce.common.util.StreamingTransactionCapableUtil transUtil
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 execute(org.quartz.JobExecutionContext jobExecutionContext)
execute
in interface ConsumeWorker
public void setScheduledDeployManager(ScheduledDeployManager scheduledDeployManager)
setScheduledDeployManager
in interface ScheduledDeployManagerAware
protected void constructTaskExecutor()
Copyright © 2019. All rights reserved.