| line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
|
1
|
|
|
|
|
|
|
package Crashplan::Client::MountPoint; |
|
2
|
|
|
|
|
|
|
|
|
3
|
8
|
|
|
8
|
|
40
|
use strict; |
|
|
8
|
|
|
|
|
15
|
|
|
|
8
|
|
|
|
|
261
|
|
|
4
|
8
|
|
|
8
|
|
41
|
use warnings; |
|
|
8
|
|
|
|
|
13
|
|
|
|
8
|
|
|
|
|
4112
|
|
|
5
|
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
our $VERSION = '0.003_0'; |
|
7
|
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
=head1 NAME |
|
9
|
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
Crashplan::Client::MountPoint - Object representation of Crashplan PROe server's entity |
|
11
|
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
=head1 SYNOPSIS |
|
13
|
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
Crashplan::Client::MountPoint objects are instancied by Crashplan::Client. |
|
15
|
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
Specifically, calling Crashplan::Client->parse_response after querying |
|
17
|
|
|
|
|
|
|
the server could produce Crashplan::Client::MountPoint |
|
18
|
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
=head1 DESCRIPTION |
|
20
|
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
A mount point is a location where CrashPlan PRO can store backups or other |
|
22
|
|
|
|
|
|
|
information. |
|
23
|
|
|
|
|
|
|
NOTE: Only administrators can access mount point information. |
|
24
|
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
=head1 METHODS |
|
27
|
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
=head2 new |
|
29
|
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
The Crashplan::Client::MountPoint constructor |
|
31
|
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
=cut |
|
33
|
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
sub new { |
|
35
|
1
|
|
|
1
|
1
|
3
|
my $class = shift; |
|
36
|
1
|
|
50
|
|
|
3
|
my $param = shift || {}; |
|
37
|
|
|
|
|
|
|
|
|
38
|
1
|
|
|
|
|
3
|
my %converted_name = ( |
|
39
|
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
); |
|
41
|
|
|
|
|
|
|
|
|
42
|
1
|
|
|
|
|
2
|
my $self = $param; |
|
43
|
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
|
|
45
|
1
|
|
|
|
|
5
|
return bless $param,'Crashplan::Client::MountPoint'; |
|
46
|
|
|
|
|
|
|
} |
|
47
|
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
=head2 id |
|
49
|
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
Getter for the 'id" attribute. |
|
51
|
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
=cut |
|
53
|
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
sub id { |
|
55
|
1
|
|
|
1
|
1
|
5080
|
my $self = shift; |
|
56
|
|
|
|
|
|
|
|
|
57
|
1
|
|
|
|
|
8
|
return $self->{id}; |
|
58
|
|
|
|
|
|
|
} |
|
59
|
|
|
|
|
|
|
|
|
60
|
|
|
|
|
|
|
=head2 creationDate |
|
61
|
|
|
|
|
|
|
|
|
62
|
|
|
|
|
|
|
Getter for the 'creationDate" attribute. |
|
63
|
|
|
|
|
|
|
|
|
64
|
|
|
|
|
|
|
=cut |
|
65
|
|
|
|
|
|
|
|
|
66
|
|
|
|
|
|
|
sub creationDate { |
|
67
|
1
|
|
|
1
|
1
|
3
|
my $self = shift; |
|
68
|
|
|
|
|
|
|
|
|
69
|
1
|
|
|
|
|
6
|
return $self->{creationDate}; |
|
70
|
|
|
|
|
|
|
} |
|
71
|
|
|
|
|
|
|
|
|
72
|
|
|
|
|
|
|
=head2 modificationDate |
|
73
|
|
|
|
|
|
|
|
|
74
|
|
|
|
|
|
|
Getter for the 'modificationDate" attribute. |
|
75
|
|
|
|
|
|
|
|
|
76
|
|
|
|
|
|
|
=cut |
|
77
|
|
|
|
|
|
|
|
|
78
|
|
|
|
|
|
|
sub modificationDate { |
|
79
|
1
|
|
|
1
|
1
|
4
|
my $self = shift; |
|
80
|
|
|
|
|
|
|
|
|
81
|
1
|
|
|
|
|
6
|
return $self->{modificationDate}; |
|
82
|
|
|
|
|
|
|
} |
|
83
|
|
|
|
|
|
|
|
|
84
|
|
|
|
|
|
|
=head2 volumeLabel |
|
85
|
|
|
|
|
|
|
|
|
86
|
|
|
|
|
|
|
Name of the mount point's directory on the file system |
|
87
|
|
|
|
|
|
|
|
|
88
|
|
|
|
|
|
|
=cut |
|
89
|
|
|
|
|
|
|
|
|
90
|
|
|
|
|
|
|
sub volumeLabel { |
|
91
|
1
|
|
|
1
|
1
|
2
|
my $self = shift; |
|
92
|
1
|
|
|
|
|
3
|
my $val = shift; |
|
93
|
|
|
|
|
|
|
|
|
94
|
|
|
|
|
|
|
|
|
95
|
1
|
|
|
|
|
5
|
return $self->{volumeLabel}; |
|
96
|
|
|
|
|
|
|
} |
|
97
|
|
|
|
|
|
|
|
|
98
|
|
|
|
|
|
|
=head2 percentFree |
|
99
|
|
|
|
|
|
|
|
|
100
|
|
|
|
|
|
|
Percentage of this mount point which is still available |
|
101
|
|
|
|
|
|
|
|
|
102
|
|
|
|
|
|
|
=cut |
|
103
|
|
|
|
|
|
|
|
|
104
|
|
|
|
|
|
|
sub percentFree { |
|
105
|
0
|
|
|
0
|
1
|
0
|
my $self = shift; |
|
106
|
0
|
|
|
|
|
0
|
my $val = shift; |
|
107
|
|
|
|
|
|
|
|
|
108
|
|
|
|
|
|
|
|
|
109
|
0
|
|
|
|
|
0
|
return $self->{percentFree}; |
|
110
|
|
|
|
|
|
|
} |
|
111
|
|
|
|
|
|
|
|
|
112
|
|
|
|
|
|
|
=head2 status |
|
113
|
|
|
|
|
|
|
|
|
114
|
|
|
|
|
|
|
“ENABLED” if the mount point is enabled, “DISABLED” otherwise |
|
115
|
|
|
|
|
|
|
|
|
116
|
|
|
|
|
|
|
=cut |
|
117
|
|
|
|
|
|
|
|
|
118
|
|
|
|
|
|
|
sub status { |
|
119
|
1
|
|
|
1
|
1
|
3
|
my $self = shift; |
|
120
|
1
|
|
|
|
|
3
|
my $val = shift; |
|
121
|
|
|
|
|
|
|
|
|
122
|
|
|
|
|
|
|
|
|
123
|
1
|
|
|
|
|
6
|
return $self->{status}; |
|
124
|
|
|
|
|
|
|
} |
|
125
|
|
|
|
|
|
|
|
|
126
|
|
|
|
|
|
|
=head2 name |
|
127
|
|
|
|
|
|
|
|
|
128
|
|
|
|
|
|
|
Current name for this mount point |
|
129
|
|
|
|
|
|
|
|
|
130
|
|
|
|
|
|
|
=cut |
|
131
|
|
|
|
|
|
|
|
|
132
|
|
|
|
|
|
|
sub name { |
|
133
|
1
|
|
|
1
|
1
|
3
|
my $self = shift; |
|
134
|
1
|
|
|
|
|
3
|
my $val = shift; |
|
135
|
|
|
|
|
|
|
|
|
136
|
|
|
|
|
|
|
|
|
137
|
1
|
|
|
|
|
6
|
return $self->{name}; |
|
138
|
|
|
|
|
|
|
} |
|
139
|
|
|
|
|
|
|
|
|
140
|
|
|
|
|
|
|
=head2 bytesFree |
|
141
|
|
|
|
|
|
|
|
|
142
|
|
|
|
|
|
|
Count of available bytes on this mount point |
|
143
|
|
|
|
|
|
|
|
|
144
|
|
|
|
|
|
|
=cut |
|
145
|
|
|
|
|
|
|
|
|
146
|
|
|
|
|
|
|
sub bytesFree { |
|
147
|
0
|
|
|
0
|
1
|
0
|
my $self = shift; |
|
148
|
0
|
|
|
|
|
0
|
my $val = shift; |
|
149
|
|
|
|
|
|
|
|
|
150
|
|
|
|
|
|
|
|
|
151
|
0
|
|
|
|
|
0
|
return $self->{bytesFree}; |
|
152
|
|
|
|
|
|
|
} |
|
153
|
|
|
|
|
|
|
|
|
154
|
|
|
|
|
|
|
=head2 bytesPerSecond |
|
155
|
|
|
|
|
|
|
|
|
156
|
|
|
|
|
|
|
Write speed of this mount point. Only available if a write speedtest has been executed on this mount point. |
|
157
|
|
|
|
|
|
|
|
|
158
|
|
|
|
|
|
|
=cut |
|
159
|
|
|
|
|
|
|
|
|
160
|
|
|
|
|
|
|
sub bytesPerSecond { |
|
161
|
1
|
|
|
1
|
1
|
3
|
my $self = shift; |
|
162
|
1
|
|
|
|
|
2
|
my $val = shift; |
|
163
|
|
|
|
|
|
|
|
|
164
|
|
|
|
|
|
|
|
|
165
|
1
|
|
|
|
|
5
|
return $self->{bytesPerSecond}; |
|
166
|
|
|
|
|
|
|
} |
|
167
|
|
|
|
|
|
|
|
|
168
|
|
|
|
|
|
|
=head2 note |
|
169
|
|
|
|
|
|
|
|
|
170
|
|
|
|
|
|
|
Text entered in the note field |
|
171
|
|
|
|
|
|
|
|
|
172
|
|
|
|
|
|
|
=cut |
|
173
|
|
|
|
|
|
|
|
|
174
|
|
|
|
|
|
|
sub note { |
|
175
|
1
|
|
|
1
|
1
|
3
|
my $self = shift; |
|
176
|
1
|
|
|
|
|
2
|
my $val = shift; |
|
177
|
|
|
|
|
|
|
|
|
178
|
|
|
|
|
|
|
|
|
179
|
1
|
|
|
|
|
6
|
return $self->{note}; |
|
180
|
|
|
|
|
|
|
} |
|
181
|
|
|
|
|
|
|
|
|
182
|
|
|
|
|
|
|
=head2 bytesUsed |
|
183
|
|
|
|
|
|
|
|
|
184
|
|
|
|
|
|
|
Count of in-use bytes on this mount point |
|
185
|
|
|
|
|
|
|
|
|
186
|
|
|
|
|
|
|
=cut |
|
187
|
|
|
|
|
|
|
|
|
188
|
|
|
|
|
|
|
sub bytesUsed { |
|
189
|
0
|
|
|
0
|
1
|
0
|
my $self = shift; |
|
190
|
0
|
|
|
|
|
0
|
my $val = shift; |
|
191
|
|
|
|
|
|
|
|
|
192
|
|
|
|
|
|
|
|
|
193
|
0
|
|
|
|
|
0
|
return $self->{bytesUsed}; |
|
194
|
|
|
|
|
|
|
} |
|
195
|
|
|
|
|
|
|
|
|
196
|
|
|
|
|
|
|
=head2 bytesTotal |
|
197
|
|
|
|
|
|
|
|
|
198
|
|
|
|
|
|
|
Total bytes available on this mount point |
|
199
|
|
|
|
|
|
|
|
|
200
|
|
|
|
|
|
|
=cut |
|
201
|
|
|
|
|
|
|
|
|
202
|
|
|
|
|
|
|
sub bytesTotal { |
|
203
|
0
|
|
|
0
|
1
|
0
|
my $self = shift; |
|
204
|
0
|
|
|
|
|
0
|
my $val = shift; |
|
205
|
|
|
|
|
|
|
|
|
206
|
|
|
|
|
|
|
|
|
207
|
0
|
|
|
|
|
0
|
return $self->{bytesTotal}; |
|
208
|
|
|
|
|
|
|
} |
|
209
|
|
|
|
|
|
|
|
|
210
|
|
|
|
|
|
|
=head2 type |
|
211
|
|
|
|
|
|
|
|
|
212
|
|
|
|
|
|
|
“DIR” (except for VMWare instances) |
|
213
|
|
|
|
|
|
|
|
|
214
|
|
|
|
|
|
|
=cut |
|
215
|
|
|
|
|
|
|
|
|
216
|
|
|
|
|
|
|
sub type { |
|
217
|
1
|
|
|
1
|
1
|
2
|
my $self = shift; |
|
218
|
1
|
|
|
|
|
4
|
my $val = shift; |
|
219
|
|
|
|
|
|
|
|
|
220
|
|
|
|
|
|
|
|
|
221
|
1
|
|
|
|
|
5
|
return $self->{type}; |
|
222
|
|
|
|
|
|
|
} |
|
223
|
|
|
|
|
|
|
|
|
224
|
|
|
|
|
|
|
=head1 SEE ALSO |
|
225
|
|
|
|
|
|
|
|
|
226
|
|
|
|
|
|
|
http://support.crashplanpro.com/doku.php/api#mountpoint |
|
227
|
|
|
|
|
|
|
|
|
228
|
|
|
|
|
|
|
=head1 AUTHOR |
|
229
|
|
|
|
|
|
|
|
|
230
|
|
|
|
|
|
|
Arnaud (Arhuman) Assad, copyright 2011 Jaguar Network |
|
231
|
|
|
|
|
|
|
|
|
232
|
|
|
|
|
|
|
=head1 LICENSE |
|
233
|
|
|
|
|
|
|
|
|
234
|
|
|
|
|
|
|
This library is free software . You can redistribute it and/or modify |
|
235
|
|
|
|
|
|
|
it under the same terms as perl itself. |
|
236
|
|
|
|
|
|
|
|
|
237
|
|
|
|
|
|
|
=cut |
|
238
|
|
|
|
|
|
|
|
|
239
|
|
|
|
|
|
|
1; |