Example 3 (queue service interval events)
This example shows a sequence of MQGET calls and MQPUT calls that is more
sporadic than the previous examples.
Commentary
- At time T(0), the queue statistics are reset
and Queue Service Interval High events are enabled.
- At P1, the first put starts the service timer.
- At P2, the second put increases the queue depth to two. A high event is
not generated here because the service interval time has not been exceeded.
- At P3, the third put causes a high event to be generated. (The timer has
exceeded the service interval.) The timer is not reset because the queue depth
was not zero before the put. However, OK events are enabled.
- At G1, the MQGET call does not generate an event because the service interval
has been exceeded and OK events are enabled. The MQGET call does, however,
reset the service timer.
- At G2, the MQGET call does not generate an event because the service interval
has been exceeded and OK events are enabled. Again, the MQGET call resets
the service timer.
- At G3, the third get empties the queue and the service timer is equal to the service interval. Therefore an OK event is generated. The
service timer is reset and high events are enabled. The MQGET call empties
the queue, and this puts the timer in the OFF state.
Event statistics summary for example 3
Table 8 summarizes the event statistics
for this example.