POE::Component::Metabase::Relay::Server::Queue - Submission queue for the metabase relay
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.
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;
submit
Takes one parameter a Metabase::Fact to submit.
shutdown
Terminates the component.
Chris BinGOs Williams
BinGOs
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.
Metabase
Metabase::User::Profile
Metabase::User::Secret
POE::Component::Metabase::Client::Submit
POE::Component::Metabase::Relay::Server
POE::Component::EasyDBI
To install POE::Component::Metabase::Relay::Server, copy and paste the appropriate command in to your terminal.
cpanm
cpanm POE::Component::Metabase::Relay::Server
CPAN shell
perl -MCPAN -e shell install POE::Component::Metabase::Relay::Server
For more information on module installation, please visit the detailed CPAN module installation guide.