You can specify how NOL adds entries to a queue, including:
To configure the queue:
Select the Preferences > Queues menu choice, and choose Error.
configure dialog for the Error queue:
|
The following headings explain each of these settings.
Logging Queue Entries
You have two options for logging queue entries:
You can manually add entries to the queue using the Save to File entry button. See "Save to File".
When logging entries to a file, NOL logs each new entry and each change to
existing entries as they arrive. Beware that file logging can slow down your application and create huge files.
Note: If you disable file logging and you attempt to delete queue entries using the
Delete entry button or the Flush Queue queue button, the entries do not
appear to be deleted from the queue. NOL removes the deleted entries only
when file logging is enabled. Therefore, you should always delete entries
from the queue before disabling file logging.
Naming the Log File
To specify the name of the log file, enter a valid directory specification for Log
Directory, and specify a filename in Log Filename Template. If the file name
contains the character "*", NOL replaces it with the day and time the file was
created. For example, the filename "gmq-*.log" produces the file "gmq-9011994-
16:15.log", if you create it on September 1, 1994 at 4:15pm. (9 is the month, 01 is
the day, 1994 is the year, and 16:15 is the time.)
Caution: If you change the name of or edit the log file while NOL is running, the
queue closes the old log file and opens a new log file with the new name.
Sorting Entries
You can specify how NOL sorts the entries in a queue. Sorting controls how NOL
displays entries in the queue, as well as how NOL deletes entries from the queue
when the maximum number of entries is exceeded. For more information, see
"Setting the Maximum Number of Entries".
The queue first sorts the entries according to the attribute named in Primary Sort
Attribute. If more than one entry has the same value for that attribute, the queue
then sorts those entries according to the attribute named in Secondary Sort
Attribute field. These are the possible attributes:
The Secondary Sort Attribute can also be
NA. If there is more than one entry with
the same value for the Primary Sort Attribute and the Secondary Sort Attribute is
NA, the queue does not put those entries in any particular order.
Allowing Duplicate Entries
If you select the Allow Duplicates option, the queue can contain more than one
copy of the same entry. Otherwise, the queue contains only one copy of each
entry.
Alerting the Operator to New Entries with a Beep
To alert the operator with a beep when a new entry is added to a queue, select the
Beep for New Entry option. The queue beeps when it receives a new entry.
Setting the Maximum Number of Entries
To set the maximum number of entries allowed in a queue, specify an integer for
Maximum Number of Entries. When the number of entries exceeds this
maximum, NOL deletes entries from the end of the queue.
In general, use a value for Maximum Number of Entries between 50 and 500. If
the value is too high, the queue uses a lot of memory and NOL can slow down
significantly. If the value is too low, NOL may delete entries you still need.
Note: In order to maintain the maximum number of entries in a queue, NOL may
delete entries that you cannot delete with the Delete Entry button. For
example, in order to maintain the maximum, NOL may delete an unacknowledged entry, which you could not otherwise delete.
Setting the Priority
To set the priority that NOL uses to schedule the queue's actions, set Update
Priority to any number from 1 to 10, where 1 is the highest priority and 10 is the
lowest
| Prev
| Start of Chapter | Next Chapter | Contents | Index | (7 out of 7)
Copyright © 1996, Gensym Corporation, Inc.