Argos::Ctrl - Controls Argos via a SQLite database
use Argos::Ctrl; my $ctrl = Argos::Ctrl->new( '/sqlite/file' ); $ctrl->pause( $watcher, $time, $info ); $ctrl->exclude( $node, $time, $info ); my %xcldd = map { $_ => 1 } @{ $ctrl->excluded() }; sleep 3 if $ctrl->stuck( $watcher );
A SQLITE db has a argos table of four columns:
ctrl : 'pause' or 'exclude' node : watcher name or node name time : time to expire info : additional information, if any
Pause $watcher for $time seconds.
Return records that cause @watcher to be stuck. Return all records if @watcher is not defined.
Exclude $node for $time seconds.
Return ARRAY ref of excluded nodes.
Undo $ctrl for @target, where $ctrl may be pause or exclude
To install pantheon, copy and paste the appropriate command in to your terminal.
cpanm
cpanm pantheon
CPAN shell
perl -MCPAN -e shell install pantheon
For more information on module installation, please visit the detailed CPAN module installation guide.