/** * Execute the given callback having optionally aquired the given lock. * For <code>JobStoreTX</code>, because it manages its own transactions * and only has the one datasource, this is the same behavior as * executeInNonManagedTXLock(). * * @param lockName The name of the lock to aquire, for example * "TRIGGER_ACCESS". If null, then no lock is aquired, but the * lockCallback is still executed in a transaction. * * @see JobStoreSupport#executeInNonManagedTXLock(String, TransactionCallback) * @see JobStoreCMT#executeInLock(String, TransactionCallback) * @see JobStoreSupport#getNonManagedTXConnection() * @see JobStoreSupport#getConnection() */ @Override protected Object executeInLock( String lockName, TransactionCallback txCallback) throws JobPersistenceException { return executeInNonManagedTXLock(lockName, txCallback, null); } }
/** * For <code>JobStoreTX</code>, the non-managed TX connection is just * the normal connection because it is not CMT. * * @see JobStoreSupport#getConnection() */ @Override protected Connection getNonManagedTXConnection() throws JobPersistenceException { return getConnection(); }
@Override public void initialize(ClassLoadHelper classLoadHelper, SchedulerSignaler schedSignaler) throws SchedulerConfigException { super.initialize(classLoadHelper, schedSignaler); getLog().info("JobStoreTX initialized."); }
String clusterName = engine.getClusterName(); JobStoreTX jdbcJobStore = new WinderJobStoreTx(); jdbcJobStore.setDataSource(dataSourceName); jdbcJobStore.setTablePrefix(tablePrefix); jdbcJobStore.setIsClustered(true); jdbcJobStore.setClusterCheckinInterval(checkInterval); hostName = "unknownHost"; jdbcJobStore.setInstanceId(hostName); jdbcJobStore.setDriverDelegateClass("org.ebayopensource.winder.quartz.WinderJDBCDelegate"); jdbcJobStore.setThreadPoolSize(poolSize);
@Override protected void recoverJobs() throws JobPersistenceException { recoverJobsLock.lock(); try { super.recoverJobs(); } finally { recoverJobsLock.unlock(); } }
/** * For <code>JobStoreTX</code>, the non-managed TX connection is just * the normal connection because it is not CMT. * * @see JobStoreSupport#getConnection() */ @Override protected Connection getNonManagedTXConnection() throws JobPersistenceException { return getConnection(); }
@Override public void initialize(ClassLoadHelper classLoadHelper, SchedulerSignaler schedSignaler) throws SchedulerConfigException { super.initialize(classLoadHelper, schedSignaler); getLog().info("JobStoreTX initialized."); }
/** * Execute the given callback having optionally aquired the given lock. * For <code>JobStoreTX</code>, because it manages its own transactions * and only has the one datasource, this is the same behavior as * executeInNonManagedTXLock(). * * @param lockName The name of the lock to aquire, for example * "TRIGGER_ACCESS". If null, then no lock is aquired, but the * lockCallback is still executed in a transaction. * * @see JobStoreSupport#executeInNonManagedTXLock(String, TransactionCallback) * @see JobStoreCMT#executeInLock(String, TransactionCallback) * @see JobStoreSupport#getNonManagedTXConnection() * @see JobStoreSupport#getConnection() */ @Override protected Object executeInLock( String lockName, TransactionCallback txCallback) throws JobPersistenceException { return executeInNonManagedTXLock(lockName, txCallback, null); } }
/** * For <code>JobStoreTX</code>, the non-managed TX connection is just * the normal connection because it is not CMT. * * @see JobStoreSupport#getConnection() */ protected Connection getNonManagedTXConnection() throws JobPersistenceException { return getConnection(); }
public void initialize(ClassLoadHelper loadHelper, SchedulerSignaler signaler) throws SchedulerConfigException { super.initialize(loadHelper, signaler); getLog().info("JobStoreTX initialized."); }
/** * Execute the given callback having optionally aquired the given lock. * For <code>JobStoreTX</code>, because it manages its own transactions * and only has the one datasource, this is the same behavior as * executeInNonManagedTXLock(). * * @param lockName The name of the lock to aquire, for example * "TRIGGER_ACCESS". If null, then no lock is aquired, but the * lockCallback is still executed in a transaction. * * @see JobStoreSupport#executeInNonManagedTXLock(String, TransactionCallback) * @see JobStoreCMT#executeInLock(String, TransactionCallback) * @see JobStoreSupport#getNonManagedTXConnection() * @see JobStoreSupport#getConnection() */ protected Object executeInLock( String lockName, TransactionCallback txCallback) throws JobPersistenceException { return executeInNonManagedTXLock(lockName, txCallback); } }
/** * For <code>JobStoreTX</code>, the non-managed TX connection is just * the normal connection because it is not CMT. * * @see JobStoreSupport#getConnection() */ protected Connection getNonManagedTXConnection() throws JobPersistenceException { return getConnection(); }
public void initialize(ClassLoadHelper loadHelper, SchedulerSignaler signaler) throws SchedulerConfigException { super.initialize(loadHelper, signaler); getLog().info("JobStoreTX initialized."); }
/** * Execute the given callback having optionally aquired the given lock. * For <code>JobStoreTX</code>, because it manages its own transactions * and only has the one datasource, this is the same behavior as * executeInNonManagedTXLock(). * * @param lockName The name of the lock to aquire, for example * "TRIGGER_ACCESS". If null, then no lock is aquired, but the * lockCallback is still executed in a transaction. * * @see JobStoreSupport#executeInNonManagedTXLock(String, TransactionCallback) * @see JobStoreCMT#executeInLock(String, TransactionCallback) * @see JobStoreSupport#getNonManagedTXConnection() * @see JobStoreSupport#getConnection() */ protected Object executeInLock( String lockName, TransactionCallback txCallback) throws JobPersistenceException { return executeInNonManagedTXLock(lockName, txCallback); } }