Tony Edwardson > Schedule-Pluggable-0.0.7 > Schedule::Pluggable::Plugin::DefaultEventHandler

Download:
Schedule-Pluggable-0.0.7.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  2
Open  0
View/Report Bugs
Source  

NAME ^

Schedule::Pluggable::Plugin::DefaultEventHandler - Plugin Role for Schedule::Pluggable to handle events

DESCRIPTION ^

Plugin to provide default handling of events in a schedule. Basically, it just prints out the details of the events specified in the array EventsToReport with an optional preceding date/time stamp

METHODS ^

event_handler

The method required by all event handler plugins - gets called but the methods in Schedule::Pluggable::Monitor when they are called when events occur Is supplied a handle to the Schedule::Pluggable object and a hash specifying what has happened the following table shows what gets passed depending on the event :- Event Parameters passed JobQueued => Event JobName Command JobStarted => Event JobName Command JobDone => Event JobName Command JobStderr => Event JobName Stderr JobStdout => Event JobName Stdout JobFailed => Event JobName Command ReturnValue Stderr JobSucceeded => Event JobName Command MaxJobsReached => Event ManagerStart => Event ManagerStart => Event

e.g. $self-event_handler(Event => 'JobStderr', JobName => $job->{name}, Command => $job->{command}, Stderr => $stderr, );>

syntax highlighting: