Enabling queue service interval events
To configure a queue for queue service interval events you set the appropriate queue manager and queue attributes.
About this task
The high and OK events are mutually exclusive; that is, when one is enabled, the other is automatically disabled:
- When a high event is generated on a queue, the queue manager automatically disables high events and enables OK events for that queue.
- When an OK event is generated on a queue, the queue manager automatically disables OK events and enables high events for that queue.
Perform the following steps to enable queue service interval events:
Table 1. Enabling queue service interval events using MQSC Queue service interval event Queue attributes Queue Service Interval High
Queue Service Interval OK
No queue service interval events
QSVCIEV (HIGH)
QSVCIEV (OK)
QSVCIEV (NONE)
Service interval
QSVCINT (tt
) where tt is the service
interval time in milliseconds.
Procedure
- Set the queue manager attribute PERFMEV to ENABLED. Performance events are enabled on the queue manager.
- Set the control attribute, QSVCIEV, for a Queue Service Interval High or OK event on the queue, as required.
- Set the QSVCINT attribute for the queue to specify the appropriate service interval time.
Example
To enable Queue Service Interval High events with a service interval time of 10 seconds (10 000 milliseconds) use the following MQSC commands:ALTER QMGR PERFMEV(ENABLED) ALTER QLOCAL('MYQUEUE') QSVCINT(10000) QSVCIEV(HIGH).