line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Ubic::Daemon::Status; |
2
|
|
|
|
|
|
|
$Ubic::Daemon::Status::VERSION = '1.59'; |
3
|
34
|
|
|
34
|
|
115
|
use strict; |
|
34
|
|
|
|
|
44
|
|
|
34
|
|
|
|
|
777
|
|
4
|
34
|
|
|
34
|
|
122
|
use warnings; |
|
34
|
|
|
|
|
36
|
|
|
34
|
|
|
|
|
840
|
|
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
# ABSTRACT: daemon status structure |
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
|
9
|
34
|
|
|
34
|
|
145
|
use Params::Validate; |
|
34
|
|
|
|
|
31
|
|
|
34
|
|
|
|
|
5084
|
|
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
sub new { |
12
|
345
|
|
|
345
|
1
|
538
|
my $class = shift; |
13
|
345
|
|
|
|
|
3711
|
my $params = validate(@_, { |
14
|
|
|
|
|
|
|
pid => 1, |
15
|
|
|
|
|
|
|
guardian_pid => 1, |
16
|
|
|
|
|
|
|
}); |
17
|
345
|
|
|
|
|
4752
|
return bless $params => $class; |
18
|
|
|
|
|
|
|
} |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
sub pid { |
21
|
57
|
|
|
57
|
1
|
133
|
my $self = shift; |
22
|
57
|
|
|
|
|
266
|
validate_pos(@_); |
23
|
57
|
|
|
|
|
602
|
return $self->{pid}; |
24
|
|
|
|
|
|
|
} |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
sub guardian_pid { |
27
|
5
|
|
|
5
|
1
|
17
|
my $self = shift; |
28
|
5
|
|
|
|
|
35
|
validate_pos(@_); |
29
|
5
|
|
|
|
|
48
|
return $self->{guardian_pid}; |
30
|
|
|
|
|
|
|
} |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
1; |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
__END__ |