line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
|
2
|
|
|
|
|
|
|
package NetApp::Snapmirror::Source; |
3
|
|
|
|
|
|
|
|
4
|
|
|
|
|
|
|
our $VERSION = '500.002'; |
5
|
|
|
|
|
|
|
$VERSION = eval $VERSION; ## no critic: StringyEval |
6
|
|
|
|
|
|
|
|
7
|
1
|
|
|
1
|
|
6
|
use strict; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
35
|
|
8
|
1
|
|
|
1
|
|
5
|
use warnings; |
|
1
|
|
|
|
|
9
|
|
|
1
|
|
|
|
|
24
|
|
9
|
|
|
|
|
|
|
|
10
|
1
|
|
|
1
|
|
5
|
use Class::Std; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
4
|
|
11
|
1
|
|
|
1
|
|
106
|
use Params::Validate qw( :all ); |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
316
|
|
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
{ |
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
my %hostname_of :ATTR( get => 'hostname' ); |
16
|
|
|
|
|
|
|
my %volume_of :ATTR( get => 'volume' ); |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
sub BUILD { |
19
|
|
|
|
|
|
|
|
20
|
0
|
|
|
0
|
0
|
|
my ($self,$ident,$args_ref) = @_; |
21
|
|
|
|
|
|
|
|
22
|
0
|
|
|
|
|
|
my @args = %$args_ref; |
23
|
|
|
|
|
|
|
|
24
|
0
|
|
|
|
|
|
my (%args) = validate( @args, { |
25
|
|
|
|
|
|
|
hostname => { type => SCALAR }, |
26
|
|
|
|
|
|
|
volume => { type => SCALAR }, |
27
|
|
|
|
|
|
|
}); |
28
|
|
|
|
|
|
|
|
29
|
0
|
|
|
|
|
|
$hostname_of{$ident} = $args{hostname}; |
30
|
0
|
|
|
|
|
|
$volume_of{$ident} = $args{volume}; |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
} |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
} |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
1; |