XAS::Collector::Base - The base class for collectors within the XAS Environment
use XAS::Collector::Base; my $collector = XAS::Collector::Base->new( -connector => 'connector', -logger => 'logger', );
This is the base class for collectors within the XAS environment. This module will connect to the indicated database and create an event named "store_data". Modules that inherit from this module need to define what "store_data" does.
This nethod initliazes the modules and takes the following parameters:
The name of the connector session. This is used to send ACK's back to the message queue server.
The name of this POE session.
The name of the logger session. This is used for sending log items too.
This method makes the initial connection to the database and defines the "store_data" event.
Closes the connection to the database.
A pointer to the current object.
A handle to the POE kernel.
A handle to the current POE session.
This method sends log items to the logger session.
A common exception handler for error reporting.
The exception that should be acted upon.
This module responds to the following POE events.
This event will trigger the storage of the packet received from the message queue server.
This event will trigger the execution of the cleanup() method.
Kevin L. Esteb, <firstname.lastname@example.org>
Copyright (C) 2012 by Kevin L. Esteb
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.8 or, at your option, any later version of Perl 5 you may have available.