The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

XAS::Apps::Spooler::Process - Process spool files

SYNOPSIS

 use XAS::Apps::Spooler::Process;

 my $app = XAS::Apps::Spooler::Process->new(
     -throws => 'xas-spooler',
 );

 exit $app->run();

DESCRIPTION

This method will process a set of spoool directories and send the contents to a STOMP based message queue server.

CONFIGURATION

The configuration file uses the familiar Windows .ini format. It has the following stanza.

 [spooler: logs]
 directory = logs
 schedule = */1 * * * *
 queue = /queue/logs
 packet-type = xas-logs
 tasks = 6

Where the section header "spooler:" may have addtional qualifiers and repeated as many times as needed. The following properties may be used.

directory

The directory to scan for files. If this is a relative directory it is referenced from $XAS_SPOOL.

schedule

The schedule to run the directory scan. It uses cron semantics. This defaults to "*/1 * * * *"

queue

The queue to use on the message queue server.

packet-type

The type of packet.

tasks

The number of internal processing tasks to use. Adding more tasks may speed up processing. This defaults to 1.

METHODS

setup

This method will process the config file.

main

This method will start the processing.

options

This method defines these additional command line options.

--host

The host that the message queue server resides on.

--port

The port that the message queue server is listening too.

SEE ALSO

XAS::Spooler::Connector
XAS::Spooler::Processor
XAS::Spooler
XAS

AUTHOR

Kevin L. Esteb, <kevin@kesteb.us>

COPYRIGHT AND LICENSE

Copyright (c) 2101-2015 Kevin L. Esteb

This is free software; you can redistribute it and/or modify it under the terms of the Artistic License 2.0. For details, see the full text of the license at http://www.perlfoundation.org/artistic_license_2_0.