public class JobStoreCMT extends JobStoreSupport
JobStoreCMT
is meant to be used in an application-server
environment that provides container-managed-transactions. No commit /
rollback will be1 handled by this class.
If you need commit / rollback, use
instead.
JobStoreTX
ALIAS_COL_NEXT_FIRE_TIME, ALL_GROUPS_PAUSED, COL_BLOB, COL_CALENDAR, COL_CALENDAR_NAME, COL_CHECKIN_INTERVAL, COL_CRON_EXPRESSION, COL_DESCRIPTION, COL_END_TIME, COL_ENTRY_ID, COL_ENTRY_STATE, COL_FIRED_TIME, COL_INSTANCE_NAME, COL_IS_DURABLE, COL_IS_STATEFUL, COL_IS_VOLATILE, COL_JOB_CLASS, COL_JOB_DATAMAP, COL_JOB_GROUP, COL_JOB_LISTENER, COL_JOB_NAME, COL_LAST_CHECKIN_TIME, COL_LOCK_NAME, COL_MISFIRE_INSTRUCTION, COL_NEXT_FIRE_TIME, COL_PREV_FIRE_TIME, COL_PRIORITY, COL_REPEAT_COUNT, COL_REPEAT_INTERVAL, COL_REQUESTS_RECOVERY, COL_START_TIME, COL_TIME_ZONE_ID, COL_TIMES_TRIGGERED, COL_TRIGGER_GROUP, COL_TRIGGER_LISTENER, COL_TRIGGER_NAME, COL_TRIGGER_STATE, COL_TRIGGER_TYPE, DEFAULT_TABLE_PREFIX, STATE_ACQUIRED, STATE_BLOCKED, STATE_COMPLETE, STATE_DELETED, STATE_ERROR, STATE_EXECUTING, STATE_MISFIRED, STATE_PAUSED, STATE_PAUSED_BLOCKED, STATE_WAITING, TABLE_BLOB_TRIGGERS, TABLE_CALENDARS, TABLE_CRON_TRIGGERS, TABLE_FIRED_TRIGGERS, TABLE_JOB_DETAILS, TABLE_JOB_LISTENERS, TABLE_LOCKS, TABLE_PAUSED_TRIGGERS, TABLE_SCHEDULER_STATE, TABLE_SIMPLE_TRIGGERS, TABLE_TRIGGER_LISTENERS, TABLE_TRIGGERS, TTYPE_BLOB, TTYPE_CRON, TTYPE_SIMPLE
Constructor and Description |
---|
JobStoreCMT() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getNonManagedTXDataSource()
Get the name of the
DataSource that should be used for
performing database functions. |
void |
initialize(ClassLoadHelper loadHelper,
SchedulerSignaler signaler)
Called by the QuartzScheduler before the
JobStore is
used, in order to give it a chance to initialize. |
boolean |
isDontSetNonManagedTXConnectionAutoCommitFalse() |
boolean |
isTxIsolationLevelReadCommitted() |
void |
setDontSetNonManagedTXConnectionAutoCommitFalse(boolean b)
Don't call set autocommit(false) on connections obtained from the
DataSource.
|
void |
setNonManagedTXDataSource(java.lang.String nonManagedTxDsName)
Set the name of the
DataSource that should be used for
performing database functions. |
void |
setTxIsolationLevelReadCommitted(boolean b)
Set the transaction isolation level of DB connections to sequential.
|
void |
shutdown()
Called by the QuartzScheduler to inform the
JobStore that
it should free up all of it's resources because the scheduler is
shutting down. |
acquireNextTrigger, canUseProperties, executeWithoutLock, getCalendarNames, getClusterCheckinInterval, getDataSource, getDbRetryInterval, getDoubleCheckLockMisfireHandler, getDriverDelegateClass, getInstanceId, getInstanceName, getJobGroupNames, getJobNames, getMakeThreadsDaemons, getMaxMisfiresToHandleAtATime, getMisfireThreshold, getNumberOfCalendars, getNumberOfJobs, getNumberOfTriggers, getPausedTriggerGroups, getPausedTriggerGroups, getSelectWithLockSQL, getTablePrefix, getTriggerGroupNames, getTriggerNames, getTriggersForJob, getTriggerState, getTriggerState, getUseDBLocks, isAcquireTriggersWithinLock, isClustered, isDontSetAutoCommitFalse, isLockOnInsert, isThreadsInheritInitializersClassLoadContext, isTxIsolationLevelSerializable, pauseAll, pauseAll, pauseJob, pauseJobGroup, pauseTrigger, pauseTrigger, pauseTriggerGroup, pauseTriggerGroup, releaseAcquiredTrigger, removeCalendar, removeJob, removeTrigger, replaceTrigger, resumeAll, resumeAll, resumeJob, resumeJobGroup, resumeTrigger, resumeTrigger, resumeTriggerGroup, resumeTriggerGroup, retrieveCalendar, retrieveJob, retrieveTrigger, schedulerStarted, setAcquireTriggersWithinLock, setClusterCheckinInterval, setDataSource, setDbRetryInterval, setDontSetAutoCommitFalse, setDoubleCheckLockMisfireHandler, setDriverDelegateClass, setInstanceId, setInstanceName, setIsClustered, setLockHandler, setLockOnInsert, setMakeThreadsDaemons, setMaxMisfiresToHandleAtATime, setMisfireThreshold, setSelectWithLockSQL, setTablePrefix, setThreadsInheritInitializersClassLoadContext, setTxIsolationLevelSerializable, setUseDBLocks, setUseProperties, storeCalendar, storeJob, storeJobAndTrigger, storeTrigger, supportsPersistence, triggeredJobComplete, triggerFired
public void setNonManagedTXDataSource(java.lang.String nonManagedTxDsName)
Set the name of the DataSource
that should be used for
performing database functions.
public java.lang.String getNonManagedTXDataSource()
Get the name of the DataSource
that should be used for
performing database functions.
public boolean isDontSetNonManagedTXConnectionAutoCommitFalse()
public void setDontSetNonManagedTXConnectionAutoCommitFalse(boolean b)
b
- public boolean isTxIsolationLevelReadCommitted()
public void setTxIsolationLevelReadCommitted(boolean b)
b
- public void initialize(ClassLoadHelper loadHelper, SchedulerSignaler signaler) throws SchedulerConfigException
JobStoreSupport
Called by the QuartzScheduler before the JobStore
is
used, in order to give it a chance to initialize.
initialize
in interface JobStore
initialize
in class JobStoreSupport
SchedulerConfigException
public void shutdown()
JobStoreSupport
Called by the QuartzScheduler to inform the JobStore
that
it should free up all of it's resources because the scheduler is
shutting down.
shutdown
in interface JobStore
shutdown
in class JobStoreSupport