Package org.apache.ode.scheduler.simple

Examples of org.apache.ode.scheduler.simple.SimpleScheduler


        scheduler.setPolledRunnableProcesser(polledRunnableProcessor);

    }

    private Scheduler createScheduler() {
        SimpleScheduler scheduler = new SimpleScheduler(new GUID().toString(),
                                                        new JdbcDelegate(db.getDataSource()),
                                                        odeConfigurationProperties.getProperties());
        scheduler.setExecutorService(executorService);
        scheduler.setTransactionManager(transactionManager);
        return scheduler;
    }
View Full Code Here


    protected ProcessStoreImpl createProcessStore(EndpointReferenceContext eprContext, DataSource ds) {
        return new ProcessStoreImpl(eprContext, ds, _odeConfig.getDAOConnectionFactory(), _odeConfig, false);
    }

    protected Scheduler createScheduler() {
        SimpleScheduler scheduler = new SimpleScheduler(new GUID().toString(),
                new JdbcDelegate(_db.getDataSource()), _odeConfig.getProperties());
        scheduler.setExecutorService(_executorService);
        scheduler.setTransactionManager(_txMgr);
        return scheduler;
    }
View Full Code Here

        _ode._mexContext = new MessageExchangeContextImpl(_ode);
        if (_ode._config.getThreadPoolMaxSize() == 0)
            _ode._executorService = Executors.newCachedThreadPool();
        else
            _ode._executorService = Executors.newFixedThreadPool(_ode._config.getThreadPoolMaxSize());
        _ode._scheduler = new SimpleScheduler(new GUID().toString(),new JdbcDelegate(_ode._dataSource), _ode._config.getProperties());
        _ode._scheduler.setJobProcessor(_ode._server);
        _ode._scheduler.setExecutorService(_ode._executorService);
        _ode._scheduler.setTransactionManager((TransactionManager) _ode.getContext().getTransactionManager());

        _ode._store = new ProcessStoreImpl(_ode._eprContext , _ode._dataSource, _ode._config.getDAOConnectionFactory(), _ode._config, false);
View Full Code Here

    protected void setUp() throws Exception {
        _txm = new GeronimoTransactionManager();

        mexDao = new Mock(MessageExchangeDAO.class);
        SimpleScheduler scheduler = new SimpleScheduler("node", null, new Properties());
        scheduler.setTransactionManager(_txm);

        contexts = new Contexts();
        contexts.scheduler = scheduler;
        engine = new BpelEngineImpl(contexts);
View Full Code Here

        _invocations = new ArrayList<Invocation>();
        _deployed = new ArrayList<Deployment>();

        {
            JdbcDelegate del = new JdbcDelegate(_dataSource);
            scheduler = new SimpleScheduler("node", del, props);
            scheduler.setTransactionManager(_txManager);
            _cf = new BpelDAOConnectionFactoryImpl(scheduler);
            _server.setDaoConnectionFactory(_cf);
        }
        _server.setInMemDaoConnectionFactory(new BpelDAOConnectionFactoryImpl(scheduler));
View Full Code Here

            }
        }
    }

    protected Scheduler createScheduler() {
        SimpleScheduler scheduler = new SimpleScheduler(new GUID().toString(),new JdbcDelegate(_db.getDataSource()));
        scheduler.setTransactionManager(_txMgr);

        return scheduler;
    }
View Full Code Here

            }
        }
    }

    protected Scheduler createScheduler() {
        SimpleScheduler scheduler = new SimpleScheduler(new GUID().toString(),new JdbcDelegate(_db.getDataSource()));
        scheduler.setTransactionManager(_txMgr);

        return scheduler;
    }
View Full Code Here

      odeProperties.put("ode.scheduler.queueLength", "100" );
      odeProperties.put("ode.scheduler.immediateInterval", "30000" );
      odeProperties.put("ode.scheduler.nearFutureInterval", "600000" );
      odeProperties.put("ode.scheduler.staleInterval", "100000" );
     
        SimpleScheduler scheduler = new SimpleScheduler(new GUID().toString(),
                                            new JdbcDelegate(_db.getDataSource()),
                                                        odeProperties );
        scheduler.setExecutorService(_executorService);
        scheduler.setTransactionManager(_txMgr);

        return scheduler;
    }
View Full Code Here

            }
        }
    }

    protected Scheduler createScheduler() {
        SimpleScheduler scheduler = new SimpleScheduler(new GUID().toString(),new JdbcDelegate(_db.getDataSource()));
        scheduler.setTransactionManager(_txMgr);

        return scheduler;
    }
View Full Code Here

        _ode._mexContext = new MessageExchangeContextImpl(_ode);
        if (_ode._config.getThreadPoolMaxSize() == 0)
            _ode._executorService = Executors.newCachedThreadPool();
        else
            _ode._executorService = Executors.newFixedThreadPool(_ode._config.getThreadPoolMaxSize());
        SimpleScheduler sched =new SimpleScheduler(new GUID().toString(), new JdbcDelegate(_ode._dataSource),  _ode._config.getProperties());
        sched.setJobProcessor(_ode._server);
        sched.setTransactionManager((TransactionManager) _ode.getContext().getTransactionManager());
        _ode._scheduler = sched;

        _ode._store = new ProcessStoreImpl(_ode._eprContext, _ode._dataSource,
                _ode._config.getDAOConnectionFactory(), _ode._config, false);
        _ode._store.loadAll();
View Full Code Here

TOP

Related Classes of org.apache.ode.scheduler.simple.SimpleScheduler

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.