line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package GRID::Cluster::Handle; |
2
|
|
|
|
|
|
|
|
3
|
1
|
|
|
1
|
|
5
|
use strict; |
|
1
|
|
|
|
|
10
|
|
|
1
|
|
|
|
|
36
|
|
4
|
1
|
|
|
1
|
|
5
|
use warnings; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
26
|
|
5
|
|
|
|
|
|
|
|
6
|
1
|
|
|
1
|
|
5
|
use GRID::Machine; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
43
|
|
7
|
1
|
|
|
1
|
|
5
|
use GRID::Cluster::Handle; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
19
|
|
8
|
1
|
|
|
1
|
|
1770
|
use IO::Select; |
|
1
|
|
|
|
|
1734
|
|
|
1
|
|
|
|
|
245
|
|
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
# Constructor |
11
|
|
|
|
|
|
|
sub new { |
12
|
0
|
|
|
0
|
1
|
|
my $class = shift; |
13
|
|
|
|
|
|
|
|
14
|
0
|
|
|
|
|
|
my %opts = @_; |
15
|
|
|
|
|
|
|
|
16
|
0
|
|
|
|
|
|
my $self = \%opts; |
17
|
|
|
|
|
|
|
|
18
|
0
|
|
|
|
|
|
bless $self, $class; |
19
|
0
|
|
|
|
|
|
return $self; |
20
|
|
|
|
|
|
|
} |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
# Getters |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
sub get_readset { |
25
|
0
|
|
|
0
|
0
|
|
my $self = shift; |
26
|
0
|
0
|
|
|
|
|
return $self->{readset} if defined($self->{readset}); |
27
|
|
|
|
|
|
|
} |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
sub get_proc { |
30
|
0
|
|
|
0
|
0
|
|
my $self = shift; |
31
|
0
|
0
|
|
|
|
|
return $self->{proc} if defined($self->{proc}); |
32
|
|
|
|
|
|
|
} |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
sub get_rproc { |
35
|
0
|
|
|
0
|
0
|
|
my $self = shift; |
36
|
0
|
0
|
|
|
|
|
return $self->{rproc} if defined($self->{rproc}); |
37
|
|
|
|
|
|
|
} |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
sub get_wproc { |
40
|
0
|
|
|
0
|
0
|
|
my $self = shift; |
41
|
0
|
0
|
|
|
|
|
return $self->{wproc} if defined($self->{wproc}); |
42
|
|
|
|
|
|
|
} |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
sub get_pid { |
45
|
0
|
|
|
0
|
0
|
|
my $self = shift; |
46
|
0
|
0
|
|
|
|
|
return $self->{pid} if defined($self->{pid}); |
47
|
|
|
|
|
|
|
} |
48
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
sub get_id { |
50
|
0
|
|
|
0
|
0
|
|
my $self = shift; |
51
|
0
|
0
|
|
|
|
|
return $self->{id} if defined($self->{id}); |
52
|
|
|
|
|
|
|
} |
53
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
sub get_map_id_machine { |
55
|
0
|
|
|
0
|
0
|
|
my $self = shift; |
56
|
0
|
0
|
|
|
|
|
return $self->{map_id_machine} if defined($self->{map_id_machine}); |
57
|
|
|
|
|
|
|
} |
58
|
|
|
|
|
|
|
|
59
|
|
|
|
|
|
|
1; |
60
|
|
|
|
|
|
|
|
61
|
|
|
|
|
|
|
__END__ |