NAME
XAS::Collector::Logs::Database - Perl extension for the XAS Environment
SYNOPSIS
use XAS::Collector::Connector;
use XAS::Collector::Logs::Database;
main: {
my $types = [
{'xas-logs', 'logs'}
];
my $connector = XAS::Collector::Connector->new(
-host => $host,
-port => $port,
-tcp_keepalive => 1,
-alias => 'connector',
-login => 'xas',
-passcode => 'xas',
-types => $types
);
my $notify = XAS::Collector::Logs->Database->new(
-alias => 'logs',
-connector => 'connector'
-queue => '/queue/logs',
);
$poe_kernel->run();
exit 0;
}
DESCRIPTION
This module handles the xas-logs packet type.
METHODS
new
This module inheirts from XAS::Lib::POE::Service and takes these additional parameters:
- -connector
-
The name of the connector session.
- -queue
-
The name of the queue to process messages from.
- -database
-
An optional configuration name for the database to use, defaults to 'messaging'.
PUBLIC EVENTS
store_data(OBJECT, ARG0, ARG1)
This event will trigger the storage of xas-alert packets into the database.
- OBJECT
-
A handle to the current object.
- ARG0
-
The data to be stored within the database.
- ARG1
-
The acknowledgement to send back to the message queue server.
SEE ALSO
AUTHOR
Kevin Esteb, <kevin@kesteb.us>
COPYRIGHT AND LICENSE
Copyright (c) 2014 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.