forked from opencurve/curve
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcurvesnapshot.py
765 lines (635 loc) · 30.4 KB
/
curvesnapshot.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
#
# Copyright (c) 2020 NetEase Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# This file was automatically generated by SWIG (http://www.swig.org).
# Version 3.0.12
#
# Do not make changes to this file unless you know what you are doing--modify
# the SWIG interface file instead.
from sys import version_info as _swig_python_version_info
if _swig_python_version_info >= (2, 7, 0):
def swig_import_helper():
import importlib
pkg = __name__.rpartition('.')[0]
mname = '.'.join((pkg, '_curvesnapshot')).lstrip('.')
try:
return importlib.import_module(mname)
except ImportError:
return importlib.import_module('_curvesnapshot')
_curvesnapshot = swig_import_helper()
del swig_import_helper
elif _swig_python_version_info >= (2, 6, 0):
def swig_import_helper():
from os.path import dirname
import imp
fp = None
try:
fp, pathname, description = imp.find_module('_curvesnapshot', [dirname(__file__)])
except ImportError:
import _curvesnapshot
return _curvesnapshot
try:
_mod = imp.load_module('_curvesnapshot', fp, pathname, description)
finally:
if fp is not None:
fp.close()
return _mod
_curvesnapshot = swig_import_helper()
del swig_import_helper
else:
import _curvesnapshot
del _swig_python_version_info
try:
_swig_property = property
except NameError:
pass # Python < 2.2 doesn't have 'property'.
try:
import builtins as __builtin__
except ImportError:
import __builtin__
def _swig_setattr_nondynamic(self, class_type, name, value, static=1):
if (name == "thisown"):
return self.this.own(value)
if (name == "this"):
if type(value).__name__ == 'SwigPyObject':
self.__dict__[name] = value
return
method = class_type.__swig_setmethods__.get(name, None)
if method:
return method(self, value)
if (not static):
if _newclass:
object.__setattr__(self, name, value)
else:
self.__dict__[name] = value
else:
raise AttributeError("You cannot add attributes to %s" % self)
def _swig_setattr(self, class_type, name, value):
return _swig_setattr_nondynamic(self, class_type, name, value, 0)
def _swig_getattr(self, class_type, name):
if (name == "thisown"):
return self.this.own()
method = class_type.__swig_getmethods__.get(name, None)
if method:
return method(self)
raise AttributeError("'%s' object has no attribute '%s'" % (class_type.__name__, name))
def _swig_repr(self):
try:
strthis = "proxy of " + self.this.__repr__()
except __builtin__.Exception:
strthis = ""
return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)
try:
_object = object
_newclass = 1
except __builtin__.Exception:
class _object:
pass
_newclass = 0
class SwigPyIterator(_object):
__swig_setmethods__ = {}
__setattr__ = lambda self, name, value: _swig_setattr(self, SwigPyIterator, name, value)
__swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, SwigPyIterator, name)
def __init__(self, *args, **kwargs):
raise AttributeError("No constructor defined - class is abstract")
__repr__ = _swig_repr
__swig_destroy__ = _curvesnapshot.delete_SwigPyIterator
__del__ = lambda self: None
def value(self):
return _curvesnapshot.SwigPyIterator_value(self)
def incr(self, n=1):
return _curvesnapshot.SwigPyIterator_incr(self, n)
def decr(self, n=1):
return _curvesnapshot.SwigPyIterator_decr(self, n)
def distance(self, x):
return _curvesnapshot.SwigPyIterator_distance(self, x)
def equal(self, x):
return _curvesnapshot.SwigPyIterator_equal(self, x)
def copy(self):
return _curvesnapshot.SwigPyIterator_copy(self)
def next(self):
return _curvesnapshot.SwigPyIterator_next(self)
def __next__(self):
return _curvesnapshot.SwigPyIterator___next__(self)
def previous(self):
return _curvesnapshot.SwigPyIterator_previous(self)
def advance(self, n):
return _curvesnapshot.SwigPyIterator_advance(self, n)
def __eq__(self, x):
return _curvesnapshot.SwigPyIterator___eq__(self, x)
def __ne__(self, x):
return _curvesnapshot.SwigPyIterator___ne__(self, x)
def __iadd__(self, n):
return _curvesnapshot.SwigPyIterator___iadd__(self, n)
def __isub__(self, n):
return _curvesnapshot.SwigPyIterator___isub__(self, n)
def __add__(self, n):
return _curvesnapshot.SwigPyIterator___add__(self, n)
def __sub__(self, *args):
return _curvesnapshot.SwigPyIterator___sub__(self, *args)
def __iter__(self):
return self
SwigPyIterator_swigregister = _curvesnapshot.SwigPyIterator_swigregister
SwigPyIterator_swigregister(SwigPyIterator)
class type_uInt32_t(_object):
__swig_setmethods__ = {}
__setattr__ = lambda self, name, value: _swig_setattr(self, type_uInt32_t, name, value)
__swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, type_uInt32_t, name)
__repr__ = _swig_repr
__swig_setmethods__["value"] = _curvesnapshot.type_uInt32_t_value_set
__swig_getmethods__["value"] = _curvesnapshot.type_uInt32_t_value_get
if _newclass:
value = _swig_property(_curvesnapshot.type_uInt32_t_value_get, _curvesnapshot.type_uInt32_t_value_set)
def __init__(self):
this = _curvesnapshot.new_type_uInt32_t()
try:
self.this.append(this)
except __builtin__.Exception:
self.this = this
__swig_destroy__ = _curvesnapshot.delete_type_uInt32_t
__del__ = lambda self: None
type_uInt32_t_swigregister = _curvesnapshot.type_uInt32_t_swigregister
type_uInt32_t_swigregister(type_uInt32_t)
class type_uInt64_t(_object):
__swig_setmethods__ = {}
__setattr__ = lambda self, name, value: _swig_setattr(self, type_uInt64_t, name, value)
__swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, type_uInt64_t, name)
__repr__ = _swig_repr
__swig_setmethods__["value"] = _curvesnapshot.type_uInt64_t_value_set
__swig_getmethods__["value"] = _curvesnapshot.type_uInt64_t_value_get
if _newclass:
value = _swig_property(_curvesnapshot.type_uInt64_t_value_get, _curvesnapshot.type_uInt64_t_value_set)
def __init__(self):
this = _curvesnapshot.new_type_uInt64_t()
try:
self.this.append(this)
except __builtin__.Exception:
self.this = this
__swig_destroy__ = _curvesnapshot.delete_type_uInt64_t
__del__ = lambda self: None
type_uInt64_t_swigregister = _curvesnapshot.type_uInt64_t_swigregister
type_uInt64_t_swigregister(type_uInt64_t)
class CUserInfo_t(_object):
__swig_setmethods__ = {}
__setattr__ = lambda self, name, value: _swig_setattr(self, CUserInfo_t, name, value)
__swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, CUserInfo_t, name)
__repr__ = _swig_repr
__swig_setmethods__["owner"] = _curvesnapshot.CUserInfo_t_owner_set
__swig_getmethods__["owner"] = _curvesnapshot.CUserInfo_t_owner_get
if _newclass:
owner = _swig_property(_curvesnapshot.CUserInfo_t_owner_get, _curvesnapshot.CUserInfo_t_owner_set)
__swig_setmethods__["password"] = _curvesnapshot.CUserInfo_t_password_set
__swig_getmethods__["password"] = _curvesnapshot.CUserInfo_t_password_get
if _newclass:
password = _swig_property(_curvesnapshot.CUserInfo_t_password_get, _curvesnapshot.CUserInfo_t_password_set)
def __init__(self):
this = _curvesnapshot.new_CUserInfo_t()
try:
self.this.append(this)
except __builtin__.Exception:
self.this = this
__swig_destroy__ = _curvesnapshot.delete_CUserInfo_t
__del__ = lambda self: None
CUserInfo_t_swigregister = _curvesnapshot.CUserInfo_t_swigregister
CUserInfo_t_swigregister(CUserInfo_t)
class FileInfo_t(_object):
__swig_setmethods__ = {}
__setattr__ = lambda self, name, value: _swig_setattr(self, FileInfo_t, name, value)
__swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, FileInfo_t, name)
__repr__ = _swig_repr
__swig_setmethods__["id"] = _curvesnapshot.FileInfo_t_id_set
__swig_getmethods__["id"] = _curvesnapshot.FileInfo_t_id_get
if _newclass:
id = _swig_property(_curvesnapshot.FileInfo_t_id_get, _curvesnapshot.FileInfo_t_id_set)
__swig_setmethods__["parentid"] = _curvesnapshot.FileInfo_t_parentid_set
__swig_getmethods__["parentid"] = _curvesnapshot.FileInfo_t_parentid_get
if _newclass:
parentid = _swig_property(_curvesnapshot.FileInfo_t_parentid_get, _curvesnapshot.FileInfo_t_parentid_set)
__swig_setmethods__["filetype"] = _curvesnapshot.FileInfo_t_filetype_set
__swig_getmethods__["filetype"] = _curvesnapshot.FileInfo_t_filetype_get
if _newclass:
filetype = _swig_property(_curvesnapshot.FileInfo_t_filetype_get, _curvesnapshot.FileInfo_t_filetype_set)
__swig_setmethods__["length"] = _curvesnapshot.FileInfo_t_length_set
__swig_getmethods__["length"] = _curvesnapshot.FileInfo_t_length_get
if _newclass:
length = _swig_property(_curvesnapshot.FileInfo_t_length_get, _curvesnapshot.FileInfo_t_length_set)
__swig_setmethods__["ctime"] = _curvesnapshot.FileInfo_t_ctime_set
__swig_getmethods__["ctime"] = _curvesnapshot.FileInfo_t_ctime_get
if _newclass:
ctime = _swig_property(_curvesnapshot.FileInfo_t_ctime_get, _curvesnapshot.FileInfo_t_ctime_set)
def __init__(self):
this = _curvesnapshot.new_FileInfo_t()
try:
self.this.append(this)
except __builtin__.Exception:
self.this = this
__swig_destroy__ = _curvesnapshot.delete_FileInfo_t
__del__ = lambda self: None
FileInfo_t_swigregister = _curvesnapshot.FileInfo_t_swigregister
FileInfo_t_swigregister(FileInfo_t)
Created = _curvesnapshot.Created
Deleting = _curvesnapshot.Deleting
Cloning = _curvesnapshot.Cloning
CloneMetaInstalled = _curvesnapshot.CloneMetaInstalled
Cloned = _curvesnapshot.Cloned
INODE_DIRECTORY_C = _curvesnapshot.INODE_DIRECTORY_C
INODE_PAGEFILE_C = _curvesnapshot.INODE_PAGEFILE_C
INODE_APPENDFILE_C = _curvesnapshot.INODE_APPENDFILE_C
INODE_APPENDECFILE_C = _curvesnapshot.INODE_APPENDECFILE_C
class CChunkIDInfo_t(_object):
__swig_setmethods__ = {}
__setattr__ = lambda self, name, value: _swig_setattr(self, CChunkIDInfo_t, name, value)
__swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, CChunkIDInfo_t, name)
__repr__ = _swig_repr
__swig_setmethods__["cid_"] = _curvesnapshot.CChunkIDInfo_t_cid__set
__swig_getmethods__["cid_"] = _curvesnapshot.CChunkIDInfo_t_cid__get
if _newclass:
cid_ = _swig_property(_curvesnapshot.CChunkIDInfo_t_cid__get, _curvesnapshot.CChunkIDInfo_t_cid__set)
__swig_setmethods__["cpid_"] = _curvesnapshot.CChunkIDInfo_t_cpid__set
__swig_getmethods__["cpid_"] = _curvesnapshot.CChunkIDInfo_t_cpid__get
if _newclass:
cpid_ = _swig_property(_curvesnapshot.CChunkIDInfo_t_cpid__get, _curvesnapshot.CChunkIDInfo_t_cpid__set)
__swig_setmethods__["lpid_"] = _curvesnapshot.CChunkIDInfo_t_lpid__set
__swig_getmethods__["lpid_"] = _curvesnapshot.CChunkIDInfo_t_lpid__get
if _newclass:
lpid_ = _swig_property(_curvesnapshot.CChunkIDInfo_t_lpid__get, _curvesnapshot.CChunkIDInfo_t_lpid__set)
def __init__(self):
this = _curvesnapshot.new_CChunkIDInfo_t()
try:
self.this.append(this)
except __builtin__.Exception:
self.this = this
__swig_destroy__ = _curvesnapshot.delete_CChunkIDInfo_t
__del__ = lambda self: None
CChunkIDInfo_t_swigregister = _curvesnapshot.CChunkIDInfo_t_swigregister
CChunkIDInfo_t_swigregister(CChunkIDInfo_t)
class CChunkInfoDetail_t(_object):
__swig_setmethods__ = {}
__setattr__ = lambda self, name, value: _swig_setattr(self, CChunkInfoDetail_t, name, value)
__swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, CChunkInfoDetail_t, name)
__repr__ = _swig_repr
__swig_setmethods__["snSize"] = _curvesnapshot.CChunkInfoDetail_t_snSize_set
__swig_getmethods__["snSize"] = _curvesnapshot.CChunkInfoDetail_t_snSize_get
if _newclass:
snSize = _swig_property(_curvesnapshot.CChunkInfoDetail_t_snSize_get, _curvesnapshot.CChunkInfoDetail_t_snSize_set)
__swig_setmethods__["chunkSn"] = _curvesnapshot.CChunkInfoDetail_t_chunkSn_set
__swig_getmethods__["chunkSn"] = _curvesnapshot.CChunkInfoDetail_t_chunkSn_get
if _newclass:
chunkSn = _swig_property(_curvesnapshot.CChunkInfoDetail_t_chunkSn_get, _curvesnapshot.CChunkInfoDetail_t_chunkSn_set)
def __init__(self):
this = _curvesnapshot.new_CChunkInfoDetail_t()
try:
self.this.append(this)
except __builtin__.Exception:
self.this = this
__swig_destroy__ = _curvesnapshot.delete_CChunkInfoDetail_t
__del__ = lambda self: None
CChunkInfoDetail_t_swigregister = _curvesnapshot.CChunkInfoDetail_t_swigregister
CChunkInfoDetail_t_swigregister(CChunkInfoDetail_t)
class LogicalPoolCopysetIDInfo_t(_object):
__swig_setmethods__ = {}
__setattr__ = lambda self, name, value: _swig_setattr(self, LogicalPoolCopysetIDInfo_t, name, value)
__swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, LogicalPoolCopysetIDInfo_t, name)
__repr__ = _swig_repr
__swig_setmethods__["lpid"] = _curvesnapshot.LogicalPoolCopysetIDInfo_t_lpid_set
__swig_getmethods__["lpid"] = _curvesnapshot.LogicalPoolCopysetIDInfo_t_lpid_get
if _newclass:
lpid = _swig_property(_curvesnapshot.LogicalPoolCopysetIDInfo_t_lpid_get, _curvesnapshot.LogicalPoolCopysetIDInfo_t_lpid_set)
__swig_setmethods__["cpidVecSize"] = _curvesnapshot.LogicalPoolCopysetIDInfo_t_cpidVecSize_set
__swig_getmethods__["cpidVecSize"] = _curvesnapshot.LogicalPoolCopysetIDInfo_t_cpidVecSize_get
if _newclass:
cpidVecSize = _swig_property(_curvesnapshot.LogicalPoolCopysetIDInfo_t_cpidVecSize_get, _curvesnapshot.LogicalPoolCopysetIDInfo_t_cpidVecSize_set)
__swig_setmethods__["cpidVec"] = _curvesnapshot.LogicalPoolCopysetIDInfo_t_cpidVec_set
__swig_getmethods__["cpidVec"] = _curvesnapshot.LogicalPoolCopysetIDInfo_t_cpidVec_get
if _newclass:
cpidVec = _swig_property(_curvesnapshot.LogicalPoolCopysetIDInfo_t_cpidVec_get, _curvesnapshot.LogicalPoolCopysetIDInfo_t_cpidVec_set)
def __init__(self):
this = _curvesnapshot.new_LogicalPoolCopysetIDInfo_t()
try:
self.this.append(this)
except __builtin__.Exception:
self.this = this
__swig_destroy__ = _curvesnapshot.delete_LogicalPoolCopysetIDInfo_t
__del__ = lambda self: None
LogicalPoolCopysetIDInfo_t_swigregister = _curvesnapshot.LogicalPoolCopysetIDInfo_t_swigregister
LogicalPoolCopysetIDInfo_t_swigregister(LogicalPoolCopysetIDInfo_t)
class CSegmentInfo_t(_object):
__swig_setmethods__ = {}
__setattr__ = lambda self, name, value: _swig_setattr(self, CSegmentInfo_t, name, value)
__swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, CSegmentInfo_t, name)
__repr__ = _swig_repr
__swig_setmethods__["segmentsize"] = _curvesnapshot.CSegmentInfo_t_segmentsize_set
__swig_getmethods__["segmentsize"] = _curvesnapshot.CSegmentInfo_t_segmentsize_get
if _newclass:
segmentsize = _swig_property(_curvesnapshot.CSegmentInfo_t_segmentsize_get, _curvesnapshot.CSegmentInfo_t_segmentsize_set)
__swig_setmethods__["chunksize"] = _curvesnapshot.CSegmentInfo_t_chunksize_set
__swig_getmethods__["chunksize"] = _curvesnapshot.CSegmentInfo_t_chunksize_get
if _newclass:
chunksize = _swig_property(_curvesnapshot.CSegmentInfo_t_chunksize_get, _curvesnapshot.CSegmentInfo_t_chunksize_set)
__swig_setmethods__["startoffset"] = _curvesnapshot.CSegmentInfo_t_startoffset_set
__swig_getmethods__["startoffset"] = _curvesnapshot.CSegmentInfo_t_startoffset_get
if _newclass:
startoffset = _swig_property(_curvesnapshot.CSegmentInfo_t_startoffset_get, _curvesnapshot.CSegmentInfo_t_startoffset_set)
__swig_setmethods__["chunkVecSize"] = _curvesnapshot.CSegmentInfo_t_chunkVecSize_set
__swig_getmethods__["chunkVecSize"] = _curvesnapshot.CSegmentInfo_t_chunkVecSize_get
if _newclass:
chunkVecSize = _swig_property(_curvesnapshot.CSegmentInfo_t_chunkVecSize_get, _curvesnapshot.CSegmentInfo_t_chunkVecSize_set)
__swig_setmethods__["chunkvec"] = _curvesnapshot.CSegmentInfo_t_chunkvec_set
__swig_getmethods__["chunkvec"] = _curvesnapshot.CSegmentInfo_t_chunkvec_get
if _newclass:
chunkvec = _swig_property(_curvesnapshot.CSegmentInfo_t_chunkvec_get, _curvesnapshot.CSegmentInfo_t_chunkvec_set)
__swig_setmethods__["lpcpIDInfo"] = _curvesnapshot.CSegmentInfo_t_lpcpIDInfo_set
__swig_getmethods__["lpcpIDInfo"] = _curvesnapshot.CSegmentInfo_t_lpcpIDInfo_get
if _newclass:
lpcpIDInfo = _swig_property(_curvesnapshot.CSegmentInfo_t_lpcpIDInfo_get, _curvesnapshot.CSegmentInfo_t_lpcpIDInfo_set)
def __init__(self):
this = _curvesnapshot.new_CSegmentInfo_t()
try:
self.this.append(this)
except __builtin__.Exception:
self.this = this
__swig_destroy__ = _curvesnapshot.delete_CSegmentInfo_t
__del__ = lambda self: None
CSegmentInfo_t_swigregister = _curvesnapshot.CSegmentInfo_t_swigregister
CSegmentInfo_t_swigregister(CSegmentInfo_t)
class CFInfo_t(_object):
__swig_setmethods__ = {}
__setattr__ = lambda self, name, value: _swig_setattr(self, CFInfo_t, name, value)
__swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, CFInfo_t, name)
__repr__ = _swig_repr
__swig_setmethods__["id"] = _curvesnapshot.CFInfo_t_id_set
__swig_getmethods__["id"] = _curvesnapshot.CFInfo_t_id_get
if _newclass:
id = _swig_property(_curvesnapshot.CFInfo_t_id_get, _curvesnapshot.CFInfo_t_id_set)
__swig_setmethods__["parentid"] = _curvesnapshot.CFInfo_t_parentid_set
__swig_getmethods__["parentid"] = _curvesnapshot.CFInfo_t_parentid_get
if _newclass:
parentid = _swig_property(_curvesnapshot.CFInfo_t_parentid_get, _curvesnapshot.CFInfo_t_parentid_set)
__swig_setmethods__["filetype"] = _curvesnapshot.CFInfo_t_filetype_set
__swig_getmethods__["filetype"] = _curvesnapshot.CFInfo_t_filetype_get
if _newclass:
filetype = _swig_property(_curvesnapshot.CFInfo_t_filetype_get, _curvesnapshot.CFInfo_t_filetype_set)
__swig_setmethods__["chunksize"] = _curvesnapshot.CFInfo_t_chunksize_set
__swig_getmethods__["chunksize"] = _curvesnapshot.CFInfo_t_chunksize_get
if _newclass:
chunksize = _swig_property(_curvesnapshot.CFInfo_t_chunksize_get, _curvesnapshot.CFInfo_t_chunksize_set)
__swig_setmethods__["segmentsize"] = _curvesnapshot.CFInfo_t_segmentsize_set
__swig_getmethods__["segmentsize"] = _curvesnapshot.CFInfo_t_segmentsize_get
if _newclass:
segmentsize = _swig_property(_curvesnapshot.CFInfo_t_segmentsize_get, _curvesnapshot.CFInfo_t_segmentsize_set)
__swig_setmethods__["length"] = _curvesnapshot.CFInfo_t_length_set
__swig_getmethods__["length"] = _curvesnapshot.CFInfo_t_length_get
if _newclass:
length = _swig_property(_curvesnapshot.CFInfo_t_length_get, _curvesnapshot.CFInfo_t_length_set)
__swig_setmethods__["ctime"] = _curvesnapshot.CFInfo_t_ctime_set
__swig_getmethods__["ctime"] = _curvesnapshot.CFInfo_t_ctime_get
if _newclass:
ctime = _swig_property(_curvesnapshot.CFInfo_t_ctime_get, _curvesnapshot.CFInfo_t_ctime_set)
__swig_setmethods__["seqnum"] = _curvesnapshot.CFInfo_t_seqnum_set
__swig_getmethods__["seqnum"] = _curvesnapshot.CFInfo_t_seqnum_get
if _newclass:
seqnum = _swig_property(_curvesnapshot.CFInfo_t_seqnum_get, _curvesnapshot.CFInfo_t_seqnum_set)
__swig_setmethods__["owner"] = _curvesnapshot.CFInfo_t_owner_set
__swig_getmethods__["owner"] = _curvesnapshot.CFInfo_t_owner_get
if _newclass:
owner = _swig_property(_curvesnapshot.CFInfo_t_owner_get, _curvesnapshot.CFInfo_t_owner_set)
__swig_setmethods__["filename"] = _curvesnapshot.CFInfo_t_filename_set
__swig_getmethods__["filename"] = _curvesnapshot.CFInfo_t_filename_get
if _newclass:
filename = _swig_property(_curvesnapshot.CFInfo_t_filename_get, _curvesnapshot.CFInfo_t_filename_set)
__swig_setmethods__["filestatus"] = _curvesnapshot.CFInfo_t_filestatus_set
__swig_getmethods__["filestatus"] = _curvesnapshot.CFInfo_t_filestatus_get
if _newclass:
filestatus = _swig_property(_curvesnapshot.CFInfo_t_filestatus_get, _curvesnapshot.CFInfo_t_filestatus_set)
def __init__(self):
this = _curvesnapshot.new_CFInfo_t()
try:
self.this.append(this)
except __builtin__.Exception:
self.this = this
__swig_destroy__ = _curvesnapshot.delete_CFInfo_t
__del__ = lambda self: None
CFInfo_t_swigregister = _curvesnapshot.CFInfo_t_swigregister
CFInfo_t_swigregister(CFInfo_t)
def Init(path):
return _curvesnapshot.Init(path)
Init = _curvesnapshot.Init
def CreateSnapShot(filename, userinfo, seq):
return _curvesnapshot.CreateSnapShot(filename, userinfo, seq)
CreateSnapShot = _curvesnapshot.CreateSnapShot
def DeleteSnapShot(filename, userinfo, seq):
return _curvesnapshot.DeleteSnapShot(filename, userinfo, seq)
DeleteSnapShot = _curvesnapshot.DeleteSnapShot
def GetSnapShot(fname, userinfo, seq, snapinfo):
return _curvesnapshot.GetSnapShot(fname, userinfo, seq, snapinfo)
GetSnapShot = _curvesnapshot.GetSnapShot
def GetSnapshotSegmentInfo(filename, userinfo, seq, offset, segInfo):
return _curvesnapshot.GetSnapshotSegmentInfo(filename, userinfo, seq, offset, segInfo)
GetSnapshotSegmentInfo = _curvesnapshot.GetSnapshotSegmentInfo
def ReadChunkSnapshot(cidinfo, seq, offset, len, buf):
return _curvesnapshot.ReadChunkSnapshot(cidinfo, seq, offset, len, buf)
ReadChunkSnapshot = _curvesnapshot.ReadChunkSnapshot
def DeleteChunkSnapshotOrCorrectSn(cidinfo, correctedSeq):
return _curvesnapshot.DeleteChunkSnapshotOrCorrectSn(cidinfo, correctedSeq)
DeleteChunkSnapshotOrCorrectSn = _curvesnapshot.DeleteChunkSnapshotOrCorrectSn
def GetChunkInfo(cidinfo, chunkInfo):
return _curvesnapshot.GetChunkInfo(cidinfo, chunkInfo)
GetChunkInfo = _curvesnapshot.GetChunkInfo
def CheckSnapShotStatus(filename, userinfo, seq, filestatus):
return _curvesnapshot.CheckSnapShotStatus(filename, userinfo, seq, filestatus)
CheckSnapShotStatus = _curvesnapshot.CheckSnapShotStatus
def GetOrAllocateSegmentInfo(filename, offset, segmentsize, chunksize, userinfo, segInfo):
return _curvesnapshot.GetOrAllocateSegmentInfo(filename, offset, segmentsize, chunksize, userinfo, segInfo)
GetOrAllocateSegmentInfo = _curvesnapshot.GetOrAllocateSegmentInfo
def CreateCloneChunk(location, chunkidinfo, sn, correntSn, chunkSize):
return _curvesnapshot.CreateCloneChunk(location, chunkidinfo, sn, correntSn, chunkSize)
CreateCloneChunk = _curvesnapshot.CreateCloneChunk
def RecoverChunk(chunkidinfo, offset, len):
return _curvesnapshot.RecoverChunk(chunkidinfo, offset, len)
RecoverChunk = _curvesnapshot.RecoverChunk
def UnInit():
return _curvesnapshot.UnInit()
UnInit = _curvesnapshot.UnInit
class CCIDinfoVector(_object):
__swig_setmethods__ = {}
__setattr__ = lambda self, name, value: _swig_setattr(self, CCIDinfoVector, name, value)
__swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, CCIDinfoVector, name)
__repr__ = _swig_repr
def iterator(self):
return _curvesnapshot.CCIDinfoVector_iterator(self)
def __iter__(self):
return self.iterator()
def __nonzero__(self):
return _curvesnapshot.CCIDinfoVector___nonzero__(self)
def __bool__(self):
return _curvesnapshot.CCIDinfoVector___bool__(self)
def __len__(self):
return _curvesnapshot.CCIDinfoVector___len__(self)
def __getslice__(self, i, j):
return _curvesnapshot.CCIDinfoVector___getslice__(self, i, j)
def __setslice__(self, *args):
return _curvesnapshot.CCIDinfoVector___setslice__(self, *args)
def __delslice__(self, i, j):
return _curvesnapshot.CCIDinfoVector___delslice__(self, i, j)
def __delitem__(self, *args):
return _curvesnapshot.CCIDinfoVector___delitem__(self, *args)
def __getitem__(self, *args):
return _curvesnapshot.CCIDinfoVector___getitem__(self, *args)
def __setitem__(self, *args):
return _curvesnapshot.CCIDinfoVector___setitem__(self, *args)
def pop(self):
return _curvesnapshot.CCIDinfoVector_pop(self)
def append(self, x):
return _curvesnapshot.CCIDinfoVector_append(self, x)
def empty(self):
return _curvesnapshot.CCIDinfoVector_empty(self)
def size(self):
return _curvesnapshot.CCIDinfoVector_size(self)
def swap(self, v):
return _curvesnapshot.CCIDinfoVector_swap(self, v)
def begin(self):
return _curvesnapshot.CCIDinfoVector_begin(self)
def end(self):
return _curvesnapshot.CCIDinfoVector_end(self)
def rbegin(self):
return _curvesnapshot.CCIDinfoVector_rbegin(self)
def rend(self):
return _curvesnapshot.CCIDinfoVector_rend(self)
def clear(self):
return _curvesnapshot.CCIDinfoVector_clear(self)
def get_allocator(self):
return _curvesnapshot.CCIDinfoVector_get_allocator(self)
def pop_back(self):
return _curvesnapshot.CCIDinfoVector_pop_back(self)
def erase(self, *args):
return _curvesnapshot.CCIDinfoVector_erase(self, *args)
def __init__(self, *args):
this = _curvesnapshot.new_CCIDinfoVector(*args)
try:
self.this.append(this)
except __builtin__.Exception:
self.this = this
def push_back(self, x):
return _curvesnapshot.CCIDinfoVector_push_back(self, x)
def front(self):
return _curvesnapshot.CCIDinfoVector_front(self)
def back(self):
return _curvesnapshot.CCIDinfoVector_back(self)
def assign(self, n, x):
return _curvesnapshot.CCIDinfoVector_assign(self, n, x)
def resize(self, *args):
return _curvesnapshot.CCIDinfoVector_resize(self, *args)
def insert(self, *args):
return _curvesnapshot.CCIDinfoVector_insert(self, *args)
def reserve(self, n):
return _curvesnapshot.CCIDinfoVector_reserve(self, n)
def capacity(self):
return _curvesnapshot.CCIDinfoVector_capacity(self)
__swig_destroy__ = _curvesnapshot.delete_CCIDinfoVector
__del__ = lambda self: None
CCIDinfoVector_swigregister = _curvesnapshot.CCIDinfoVector_swigregister
CCIDinfoVector_swigregister(CCIDinfoVector)
class IntVector(_object):
__swig_setmethods__ = {}
__setattr__ = lambda self, name, value: _swig_setattr(self, IntVector, name, value)
__swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, IntVector, name)
__repr__ = _swig_repr
def iterator(self):
return _curvesnapshot.IntVector_iterator(self)
def __iter__(self):
return self.iterator()
def __nonzero__(self):
return _curvesnapshot.IntVector___nonzero__(self)
def __bool__(self):
return _curvesnapshot.IntVector___bool__(self)
def __len__(self):
return _curvesnapshot.IntVector___len__(self)
def __getslice__(self, i, j):
return _curvesnapshot.IntVector___getslice__(self, i, j)
def __setslice__(self, *args):
return _curvesnapshot.IntVector___setslice__(self, *args)
def __delslice__(self, i, j):
return _curvesnapshot.IntVector___delslice__(self, i, j)
def __delitem__(self, *args):
return _curvesnapshot.IntVector___delitem__(self, *args)
def __getitem__(self, *args):
return _curvesnapshot.IntVector___getitem__(self, *args)
def __setitem__(self, *args):
return _curvesnapshot.IntVector___setitem__(self, *args)
def pop(self):
return _curvesnapshot.IntVector_pop(self)
def append(self, x):
return _curvesnapshot.IntVector_append(self, x)
def empty(self):
return _curvesnapshot.IntVector_empty(self)
def size(self):
return _curvesnapshot.IntVector_size(self)
def swap(self, v):
return _curvesnapshot.IntVector_swap(self, v)
def begin(self):
return _curvesnapshot.IntVector_begin(self)
def end(self):
return _curvesnapshot.IntVector_end(self)
def rbegin(self):
return _curvesnapshot.IntVector_rbegin(self)
def rend(self):
return _curvesnapshot.IntVector_rend(self)
def clear(self):
return _curvesnapshot.IntVector_clear(self)
def get_allocator(self):
return _curvesnapshot.IntVector_get_allocator(self)
def pop_back(self):
return _curvesnapshot.IntVector_pop_back(self)
def erase(self, *args):
return _curvesnapshot.IntVector_erase(self, *args)
def __init__(self, *args):
this = _curvesnapshot.new_IntVector(*args)
try:
self.this.append(this)
except __builtin__.Exception:
self.this = this
def push_back(self, x):
return _curvesnapshot.IntVector_push_back(self, x)
def front(self):
return _curvesnapshot.IntVector_front(self)
def back(self):
return _curvesnapshot.IntVector_back(self)
def assign(self, n, x):
return _curvesnapshot.IntVector_assign(self, n, x)
def resize(self, *args):
return _curvesnapshot.IntVector_resize(self, *args)
def insert(self, *args):
return _curvesnapshot.IntVector_insert(self, *args)
def reserve(self, n):
return _curvesnapshot.IntVector_reserve(self, n)
def capacity(self):
return _curvesnapshot.IntVector_capacity(self)
__swig_destroy__ = _curvesnapshot.delete_IntVector
__del__ = lambda self: None
IntVector_swigregister = _curvesnapshot.IntVector_swigregister
IntVector_swigregister(IntVector)
# This file is compatible with both classic and new-style classes.