NAME

POE::Component::Metabase::Relay::Server::Queue - Submission queue for the metabase relay

DESCRIPTION

POE::Component::Metabase::Relay::Server::Queue is the submission queue for POE::Component::Metabase::Relay::Server.

It is based on POE::Component::EasyDBI database and uses POE::Component::Metabase::Client::Submit to send reports to a Metabase server.

CONSTRUCTOR

spawn

Spawns a new component session and creates a SQLite database if it doesn't already exist.

Takes a number of mandatory parameters:

'dsn', a DBI DSN to use to store the submission queue;
'profile', a Metabase::User::Profile object;
'secret', a Metabase::User::Secret object;
'uri', the uri of metabase server to submit to;

and a number of optional parameters:

'username', a DSN username if required;
'password', a DSN password if required;
'db_opts', a hashref of DBD options that is passed to POE::Component::EasyDBI;
'debug', enable debugging information;
'multiple', set to true to enable the Queue to use multiple PoCo-Client-HTTPs, default 0;
'no_relay', set to true to disable report submissions to the Metabase, default 0;
'submissions', an int to control the number of parallel http clients ( used only if multiple == 1 ), default 10;

INPUT EVENTS

submit

Takes one parameter a Metabase::Fact to submit.

shutdown

Terminates the component.

AUTHOR

Chris BinGOs Williams

LICENSE

Copyright © Chris Williams

This module may be used, modified, and distributed under the same terms as Perl itself. Please see the license that came with your Perl distribution for details.

SEE ALSO

Metabase

Metabase::User::Profile

Metabase::User::Secret

POE::Component::Metabase::Client::Submit

POE::Component::Metabase::Relay::Server

POE::Component::EasyDBI