line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Ubic::Daemon::Status; |
2
|
|
|
|
|
|
|
$Ubic::Daemon::Status::VERSION = '1.58_01'; # TRIAL |
3
|
36
|
|
|
36
|
|
186
|
use strict; |
|
36
|
|
|
|
|
44
|
|
|
36
|
|
|
|
|
1139
|
|
4
|
36
|
|
|
36
|
|
155
|
use warnings; |
|
36
|
|
|
|
|
42
|
|
|
36
|
|
|
|
|
1205
|
|
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
# ABSTRACT: daemon status structure |
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
|
9
|
36
|
|
|
36
|
|
475
|
use Params::Validate; |
|
36
|
|
|
|
|
78
|
|
|
36
|
|
|
|
|
7344
|
|
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
sub new { |
12
|
384
|
|
|
384
|
1
|
735
|
my $class = shift; |
13
|
384
|
|
|
|
|
5630
|
my $params = validate(@_, { |
14
|
|
|
|
|
|
|
pid => 1, |
15
|
|
|
|
|
|
|
guardian_pid => 1, |
16
|
|
|
|
|
|
|
}); |
17
|
384
|
|
|
|
|
7045
|
return bless $params => $class; |
18
|
|
|
|
|
|
|
} |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
sub pid { |
21
|
76
|
|
|
76
|
1
|
175
|
my $self = shift; |
22
|
76
|
|
|
|
|
513
|
validate_pos(@_); |
23
|
76
|
|
|
|
|
1033
|
return $self->{pid}; |
24
|
|
|
|
|
|
|
} |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
sub guardian_pid { |
27
|
7
|
|
|
7
|
1
|
17
|
my $self = shift; |
28
|
7
|
|
|
|
|
45
|
validate_pos(@_); |
29
|
7
|
|
|
|
|
44
|
return $self->{guardian_pid}; |
30
|
|
|
|
|
|
|
} |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
1; |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
__END__ |