Schedule::Pluggable::Plugin::DefaultEventHandler - Plugin Role for Schedule::Pluggable to handle events
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
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, );>
$self-
To install Schedule::Pluggable, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Schedule::Pluggable
CPAN shell
perl -MCPAN -e shell install Schedule::Pluggable
For more information on module installation, please visit the detailed CPAN module installation guide.