![]() |
||
|
The YAMI4 queue server is a separate, natively compiled program, that can be run from its directory with a simple invocation:
$ ./yami4queue
The server accepts optionally a name of configuration file as a parameter, but if none is given then the yami4queue.cfg file is used by default.
The configuration file is a text file and defines the following properties:
listener - the listener target for the queue server,max_queue_num_of_messages - maximum number of messages that can be stored in a single queue,max_queue_size - maximum size (in bytes) of all messages stored in the queue,max_waiting_clients - maximum number of clients waiting on the given queue,queue_creation_policy - static if only a predefined set of queues is allowed to be created or dynamic if dynamic creation of queues is expected,log.main, log.queues, log.messages - flags enabling the particular logging subsystems.In addition to the options described above, the queue server allows to define a set of queues that are created at the startup - this feature is necessary if no dynamic creation of queues is allowed later on. Predefined queues are configured by describing their names with consecutive indices, for example:
queue.1=jobs queue.2=greetings queue.3=test
The queue server reports its activity on standard output, according to logging flags defined in the configuration file.