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

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, );>