| 1 | package PerlGuard::Agent::Monitors; | ||
| 2 | 1 | ▶ | use Moo; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 3 | 1 | ▶ | use PerlGuard::Agent::LexWrap; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 1 | ▶ | use Module::Loaded(); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | |||
| 6 | 1 | has agent => ( is => 'ro', required => 1, weak_ref => 1); | |
| 7 | 0 | ▶ | has overrides => ( is => 'rw', default => sub { [] }); |
|
Subroutine
__ANON__: not called CC=1 SCAR=1.2
| |||
| 8 | |||
| 9 | 0 | ▶ | sub is_module_loaded { |
|
Subroutine
is_module_loaded: not called CC=1 SCAR=6.9
Pod
undocumented
| |||
| 10 | 0 | my $self = shift; | |
| 11 | 0 | my $module_name = shift; | |
| 12 | |||
| 13 | 0 | Module::Loaded::is_loaded($module_name) | |
| 14 | |||
| 15 | } | ||
| 16 | |||
| 17 | 0 | ▶ | sub start_monitoring { |
|
Subroutine
start_monitoring: not called CC=1 SCAR=6.9
Pod
undocumented
| |||
| 18 | 0 | die "Implement in sublass" | |
| 19 | } | ||
| 20 | |||
| 21 | 0 | ▶ | sub stop_monitoring { |
|
Subroutine
stop_monitoring: not called CC=1 SCAR=6.9
Pod
undocumented
| |||
| 22 | 0 | die "Implement in subclass" | |
| 23 | } | ||
| 24 | |||
| 25 | 0 | ▶ | sub inform_agent_of_event { |
|
Subroutine
inform_agent_of_event: not called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 26 | |||
| 27 | } | ||
| 28 | |||
| 29 | 0 | ▶ | sub die_unless_suitable { |
|
Subroutine
die_unless_suitable: not called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 30 | |||
| 31 | } | ||
| 32 | |||
| 33 | 1 | 1; | |