File Coverage

blib/lib/Siebel/Srvrmgr/Comps_source.pm
Criterion Covered Total %
statement 9 9 100.0
branch n/a
condition n/a
subroutine 3 3 100.0
pod n/a
total 12 12 100.0


line stmt bran cond sub pod time code
1             package Siebel::Srvrmgr::Comps_source;
2              
3             =pod
4              
5             =head1 NAME
6              
7             Siebel::Srvrmgr::Comps_source - Moose Role for classes that exposes Siebel Server components information
8              
9             =head1 DESCRIPTION
10              
11             This module is a L<Moose::Role>.
12              
13             It is intended to be used by classes that will offer information about Siebel Server components by using instances of L<Siebel::Srvrmgr::OS::Process>.
14              
15             By applying this role, it is required that classes provides an implementation of the method C<find_comps>. The object of such method is to merge information
16             from the operational system with the Siebel Server components available.
17              
18             This method expects as parameter a hash reference, being the keys the PID's of Siebel processes and the values instances of L<Siebel::Srvrmgr::OS::Process> or
19             subclasses of it.
20              
21             The hash reference items will be updated and the same reference will be returned.
22              
23             =cut
24              
25 1     1   1603 use Moose::Role;
  1         4788  
  1         5  
26 1     1   5451 use warnings;
  1         4  
  1         28  
27 1     1   6 use strict;
  1         2  
  1         47  
28              
29             requires 'find_comps';
30              
31             =head1 SEE ALSO
32              
33             =over
34              
35             =item *
36              
37             L<Moose>
38              
39             =item *
40              
41             L<Siebel::Srvrmgr::OS::Process>
42              
43             =back
44              
45             =head1 AUTHOR
46              
47             Alceu Rodrigues de Freitas Junior, E<lt>arfreitas@cpan.orgE<gt>
48              
49             =head1 COPYRIGHT AND LICENSE
50              
51             This software is copyright (c) 2015 of Alceu Rodrigues de Freitas Junior, E<lt>arfreitas@cpan.orgE<gt>
52              
53             This file is part of Siebel Monitoring Tools.
54              
55             Siebel Monitoring Tools is free software: you can redistribute it and/or modify
56             it under the terms of the GNU General Public License as published by
57             the Free Software Foundation, either version 3 of the License, or
58             (at your option) any later version.
59              
60             Siebel Monitoring Tools is distributed in the hope that it will be useful,
61             but WITHOUT ANY WARRANTY; without even the implied warranty of
62             MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
63             GNU General Public License for more details.
64              
65             You should have received a copy of the GNU General Public License
66             along with Siebel Monitoring Tools. If not, see <http://www.gnu.org/licenses/>.
67              
68             =cut
69              
70             1;