line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Ubic::Daemon::Status; |
2
|
|
|
|
|
|
|
$Ubic::Daemon::Status::VERSION = '1.60'; |
3
|
33
|
|
|
33
|
|
107
|
use strict; |
|
33
|
|
|
|
|
37
|
|
|
33
|
|
|
|
|
692
|
|
4
|
33
|
|
|
33
|
|
98
|
use warnings; |
|
33
|
|
|
|
|
20
|
|
|
33
|
|
|
|
|
605
|
|
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
# ABSTRACT: daemon status structure |
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
|
9
|
33
|
|
|
33
|
|
114
|
use Params::Validate; |
|
33
|
|
|
|
|
34
|
|
|
33
|
|
|
|
|
4078
|
|
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
sub new { |
12
|
331
|
|
|
331
|
1
|
439
|
my $class = shift; |
13
|
331
|
|
|
|
|
3448
|
my $params = validate(@_, { |
14
|
|
|
|
|
|
|
pid => 1, |
15
|
|
|
|
|
|
|
guardian_pid => 1, |
16
|
|
|
|
|
|
|
}); |
17
|
331
|
|
|
|
|
4490
|
return bless $params => $class; |
18
|
|
|
|
|
|
|
} |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
sub pid { |
21
|
56
|
|
|
56
|
1
|
128
|
my $self = shift; |
22
|
56
|
|
|
|
|
313
|
validate_pos(@_); |
23
|
56
|
|
|
|
|
755
|
return $self->{pid}; |
24
|
|
|
|
|
|
|
} |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
sub guardian_pid { |
27
|
5
|
|
|
5
|
1
|
15
|
my $self = shift; |
28
|
5
|
|
|
|
|
34
|
validate_pos(@_); |
29
|
5
|
|
|
|
|
26
|
return $self->{guardian_pid}; |
30
|
|
|
|
|
|
|
} |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
1; |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
__END__ |