Scheduler table definition
Schedulers require database tables and indices with a table prefix. This page provides reference information about the tables.
Each scheduler requires several database tables and indices to operate. Each table name and index described in this topic requires a table prefix. For example, if the scheduler is configured with a table prefix value, SCHED_, the table with the name, TASK, would be named SCHED_TASK. See Scheduler settings for details on the table prefix.
TASK
The TASK table contains the tasks that have been scheduled, but not yet purged. The primary key for this table is the TASKID which equates to the getTaskID() method on the com.ibm.websphere.scheduler.TaskStatus interface.
Field name | Purpose and notes |
---|---|
TASKID |
Contains all of the tasks that have been scheduled, but not yet purged. The primary key for this table is TASKID which equates to the getTaskID() method on the com.ibm.websphere.scheduler.TaskStatus interface. Since there is one row in this table for each task, it is important that the database and table support row-locking. Using page, or table locks, will inhibit the scheduler from running tasks concurrently. |
VERSION | Internal version ID of this row format. |
ROW_VERSION | The version of this row. Used for optimistic locking. |
TASKTYPE | The type of task: 1=BeanTaskInfo, 2=MessageTaskInfo |
TASKSUSPENDED | This value indicates if the task is suspended or if it is running. The task is suspended if the value BITWISE AND 1 equals 1. The task is running if the value BITWISE AND 2 equals 2. |
CANCELLED | The value, 1, if the task is cancelled. |
NEXTFIRETIME | The date in milliseconds using java.util.Date.getTime() when the task is scheduled to run next. |
STARTBYINTERVAL | The start-by-interval of the task. |
STARTBYTIME | Reserved. |
VALIDFROMTIME | The task start time. |
VALIDTOTIME | Reserved. |
REPEATINTERVAL | The task repeat interval. |
MAXREPEATS | The number of times to run the task. |
REPEATSLEFT | The number of times the task has yet to run. |
TASKINFO | Internal binary data. |
NAME | The task name. |
AUTOPURGE | The value, 1, if the task is to automatically purge upon completion. |
FAILUREACTION | Reserved. |
MAXATTEMPTS | Reserved. |
QOS | Reserved. |
PARTITIONID | Reserved. |
OWNERTOKEN | The task owner. |
CREATETIME | The time in milliseconds using java.util.Date.getTime() when the task was created. |
- TASK_IDX1 – Used to access individual tasks using the Scheduler API.
- TASK_IDX2 – Used by the poll daemon to load expiring tasks.
TREG
Field name | Purpose and notes |
---|---|
REGKEY | The registry key. This is the primary key of the table. |
REGVALUE | The registry value. |
LMGR
Field name | Purpose and notes |
---|---|
LEASENAME | The name of the lease. This is the scheduler JNDI name and is the primary key. |
LEASEOWNER | The owner of the lease. The format is Cell/Node/Server. |
LEASE_EXPIRE_TIME | The time in milliseconds using java.util.Date.getTime() when the lease for the scheduler expires. |
DISABLED | Reserved. |
LMPR
Field name | Purpose and notes |
---|---|
LEASENAME | The name of the lease. See the LMGR table. |
NAME | The name of the property. |
VALUE | The value of the property. |
- LMPR_IDX1 – Used to retrieve properties for a given lease.