Package org.activiti.engine.impl.jobexecutor

Examples of org.activiti.engine.impl.jobexecutor.DefaultJobExecutor


public class ConfigurableFailedJobCommandFactoryTest {

    @Test
    public void testConfigurableNumberOfRetries() throws InterruptedException {
        DefaultJobExecutor jobExecutor = new DefaultJobExecutor();

        jobExecutor.setCorePoolSize(2);
        jobExecutor.setQueueSize(2);
        jobExecutor.setMaxJobsPerAcquisition(5);
        jobExecutor.setWaitTimeInMillis(50);
        jobExecutor.setLockTimeInMillis(180000);

        ProcessEngine processEngine = new StandaloneInMemProcessEngineConfiguration()
            .setJobExecutorActivate(true)
            .setJobExecutor(jobExecutor)
            .setFailedJobCommandFactory(new ConfigurableFailedJobCommandFactory(2, 1))
View Full Code Here


  // job executor /////////////////////////////////////////////////////////////
 
  protected void initJobExecutor() {
    if (isAsyncExecutorEnabled() == false) {
      if (jobExecutor == null) {
        jobExecutor = new DefaultJobExecutor();
      }
 
      jobExecutor.setClockReader(this.clock);
 
      jobExecutor.setCommandExecutor(commandExecutor);
View Full Code Here

  // job executor /////////////////////////////////////////////////////////////
 
  protected void initJobExecutor() {
    if (jobExecutor==null) {
      jobExecutor = new DefaultJobExecutor();
    }

    jobHandlers = new HashMap<String, JobHandler>();
    TimerExecuteNestedActivityJobHandler timerExecuteNestedActivityJobHandler = new TimerExecuteNestedActivityJobHandler();
    jobHandlers.put(timerExecuteNestedActivityJobHandler.getType(), timerExecuteNestedActivityJobHandler);
View Full Code Here

public class ConfigurableFailedJobCommandFactoryTest {

    @Test
    public void testConfigurableNumberOfRetries() throws InterruptedException {
        DefaultJobExecutor jobExecutor = new DefaultJobExecutor();

        jobExecutor.setCorePoolSize(2);
        jobExecutor.setQueueSize(2);
        jobExecutor.setMaxJobsPerAcquisition(5);
        jobExecutor.setWaitTimeInMillis(50);
        jobExecutor.setLockTimeInMillis(180000);

        ProcessEngine processEngine = new StandaloneInMemProcessEngineConfiguration()
            .setJobExecutorActivate(true)
            .setJobExecutor(jobExecutor)
            .setFailedJobCommandFactory(new ConfigurableFailedJobCommandFactory(2, 1))
View Full Code Here

TOP

Related Classes of org.activiti.engine.impl.jobexecutor.DefaultJobExecutor

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.