]>
git.proxmox.com Git - ceph.git/blob - ceph/src/rocksdb/java/src/main/java/org/rocksdb/BackupInfo.java
1 // Copyright (c) 2011-present, Facebook, Inc. All rights reserved.
2 // This source code is licensed under the BSD-style license found in the
3 // LICENSE file in the root directory of this source tree. An additional grant
4 // of patent rights can be found in the PATENTS file in the same directory.
8 * Instances of this class describe a Backup made by
9 * {@link org.rocksdb.BackupableDB}.
11 public class BackupInfo
{
14 * Package private constructor used to create instances
15 * of BackupInfo by {@link org.rocksdb.BackupableDB} and
16 * {@link org.rocksdb.RestoreBackupableDB}.
18 * @param backupId id of backup
19 * @param timestamp timestamp of backup
20 * @param size size of backup
21 * @param numberFiles number of files related to this backup.
23 BackupInfo(final int backupId
, final long timestamp
, final long size
,
24 final int numberFiles
) {
26 timestamp_
= timestamp
;
28 numberFiles_
= numberFiles
;
33 * @return the backup id.
35 public int backupId() {
41 * @return the timestamp of the backup.
43 public long timestamp() {
49 * @return the size of the backup
57 * @return the number of files of this backup.
59 public int numberFiles() {
63 private int backupId_
;
64 private long timestamp_
;
66 private int numberFiles_
;