line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package MYDan; |
2
|
|
|
|
|
|
|
|
3
|
1
|
|
|
1
|
|
137453
|
use strict; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
25
|
|
4
|
1
|
|
|
1
|
|
5
|
use warnings; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
67
|
|
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
=head1 NAME |
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
MYDan - A suite of cluster administration tools and platforms |
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
http://www.mydan.org |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
=cut |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
our $VERSION = '0.1.60'; |
15
|
|
|
|
|
|
|
our $PATH; |
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
require 5.000; |
18
|
|
|
|
|
|
|
require Exporter; |
19
|
|
|
|
|
|
|
our @EXPORT_OK = qw( $PATH ); |
20
|
|
|
|
|
|
|
our @ISA = qw(Exporter); |
21
|
1
|
|
|
1
|
|
417
|
use FindBin qw( $RealBin ); |
|
1
|
|
|
|
|
893
|
|
|
1
|
|
|
|
|
194
|
|
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
BEGIN{ |
24
|
1
|
|
|
1
|
|
3
|
my @path; |
25
|
1
|
50
|
|
|
|
4
|
unless( $PATH = $ENV{MYDanPATH} ) |
26
|
|
|
|
|
|
|
{ |
27
|
1
|
|
|
|
|
5
|
for( split /\//, $RealBin ) |
28
|
|
|
|
|
|
|
{ |
29
|
6
|
|
|
|
|
13
|
push @path, $_; |
30
|
6
|
50
|
|
|
|
15
|
last if $_ eq 'mydan'; |
31
|
|
|
|
|
|
|
} |
32
|
1
|
50
|
|
|
|
4
|
die 'nofind MYDanPATH' unless @path; |
33
|
1
|
|
|
|
|
38
|
$ENV{MYDanPATH} = $PATH = join '/', @path; |
34
|
|
|
|
|
|
|
} |
35
|
|
|
|
|
|
|
}; |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
=head1 MODULES |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
=head3 Node |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
A cluster information management platform |
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
MYDan::Node |
44
|
|
|
|
|
|
|
MYDan::Node::Range |
45
|
|
|
|
|
|
|
MYDan::Node::KeySet |
46
|
|
|
|
|
|
|
MYDan::Node::Integer |
47
|
|
|
|
|
|
|
MYDan::Node::Cache |
48
|
|
|
|
|
|
|
MYDan::Node::Call |
49
|
|
|
|
|
|
|
MYDan::Node::DBI::Cache |
50
|
|
|
|
|
|
|
MYDan::Node::DBI::Root |
51
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
a agent |
53
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
Agent |
55
|
|
|
|
|
|
|
|
56
|
|
|
|
|
|
|
=head3 API |
57
|
|
|
|
|
|
|
|
58
|
|
|
|
|
|
|
platform api |
59
|
|
|
|
|
|
|
|
60
|
|
|
|
|
|
|
MYDan::API |
61
|
|
|
|
|
|
|
|
62
|
|
|
|
|
|
|
|
63
|
|
|
|
|
|
|
=head1 AUTHOR |
64
|
|
|
|
|
|
|
|
65
|
|
|
|
|
|
|
Lijinfeng, C<< <lijinfeng2011 at github.com> >> |
66
|
|
|
|
|
|
|
|
67
|
|
|
|
|
|
|
=head1 LICENSE AND COPYRIGHT |
68
|
|
|
|
|
|
|
|
69
|
|
|
|
|
|
|
Copyright 2017 lijinfeng2011. |
70
|
|
|
|
|
|
|
|
71
|
|
|
|
|
|
|
This program is free software; you can redistribute it and/or modify it |
72
|
|
|
|
|
|
|
under the terms of either: the GNU General Public License as published |
73
|
|
|
|
|
|
|
by the Free Software Foundation; or the Artistic License. |
74
|
|
|
|
|
|
|
|
75
|
|
|
|
|
|
|
=cut |
76
|
|
|
|
|
|
|
|
77
|
|
|
|
|
|
|
1; |