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

NAME

Daemonise::Plugin::Event - Daemonise Event plugin

VERSION

version 2.13

SYNOPSIS

    use Daemonise;

    my $d = Daemonise->new();
    $d->debug(1);
    $d->foreground(1) if $d->debug;
    $d->config_file('/path/to/some.conf');

    $d->load_plugin('Event');

    $d->configure;

    # this will create an event, store it in the event_db and trigger it if
    # necessary. requires a daemon to be running that can process such events.
    my $when = 24 || 1360934857 || undef;
    my $options = {
        parsed => 'some parsed response',
        raw    => 'some%20raw%20response',
    };
    my $event_id = $d->create_event('pre_defined_type', "job_id", $when, $options);

    # stop an event
    $d->stop_event($event_id);

ATTRIBUTES

event_db

event_queue

SUBROUTINES/METHODS provided

configure

create_event

stop_event

AUTHOR

Lenz Gschwendtner <norbu09@cpan.org>

COPYRIGHT AND LICENSE

This software is copyright (c) 2013 by Lenz Gschwendtner.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.