Class DumpArchiveSummary
java.lang.Object
org.apache.commons.compress.archivers.dump.DumpArchiveSummary
This class represents identifying information about a Dump archive volume.
It consists the archive's dump date, label, hostname, device name and possibly
last mount point plus the volume's volume id andfirst record number.
For the corresponding C structure see the header of DumpArchiveEntry.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanGet the device name, e.g., /dev/sda3 or /dev/mapper/vg0-home.Get the date of this dump.Get the last mountpoint, e.g., /home.intGet the inode of the first record on this volume.intgetFlags()Get the miscellaneous flags.Get the hostname of the system where the dump was performed.getLabel()Get dump label.intgetLevel()Get the level of this dump.intgetNTRec()Get the number of records per tape block.Get the date of the previous dump at this level higher.intGet volume (tape) number.inthashCode()booleanIs this volume compressed? N.B., individual blocks may or may not be compressed.booleanDoes this volume contain extended attributes.booleanDoes this volume only contain metadata?booleanIs this the new header format? (We do not currently support the old format.)booleanIs this the new inode format? (We do not currently support the old format.)voidsetDevname(String devname) Set the device name.voidsetDumpDate(Date dumpDate) Set dump date.voidsetFilesystem(String fileSystem) Set the last mountpoint.voidsetFirstRecord(int firstrec) Set the inode of the first record.voidsetFlags(int flags) Set the miscellaneous flags.voidsetHostname(String hostname) Set the hostname.voidSet dump label.voidsetLevel(int level) Set level.voidsetNTRec(int ntrec) Set the number of records per tape block.voidsetPreviousDumpDate(Date previousDumpDate) Set previous dump date.voidsetVolume(int volume) Set volume (tape) number.
-
Method Details
-
equals
-
getDevname
Get the device name, e.g., /dev/sda3 or /dev/mapper/vg0-home.- Returns:
- device name
-
getDumpDate
Get the date of this dump.- Returns:
- the date of this dump.
-
getFilesystem
Get the last mountpoint, e.g., /home.- Returns:
- last mountpoint
-
getFirstRecord
Get the inode of the first record on this volume.- Returns:
- inode of the first record on this volume.
-
getFlags
Get the miscellaneous flags. See below.- Returns:
- flags
-
getHostname
Get the hostname of the system where the dump was performed.- Returns:
- hostname the host name
-
getLabel
Get dump label. This may be autogenerated, or it may be specified by the user.- Returns:
- dump label
-
getLevel
Get the level of this dump. This is a number between 0 and 9, inclusive, and a level 0 dump is a complete dump of the partition. For any other dump 'n' this dump contains all files that have changed since the last dump at this level or lower. This is used to support different levels of incremental backups.- Returns:
- dump level
-
getNTRec
Get the number of records per tape block. This is typically between 10 and 32.- Returns:
- the number of records per tape block
-
getPreviousDumpDate
Get the date of the previous dump at this level higher.- Returns:
- dumpdate may be null
-
getVolume
Get volume (tape) number.- Returns:
- volume (tape) number.
-
hashCode
-
isCompressed
Is this volume compressed? N.B., individual blocks may or may not be compressed. The first block is never compressed.- Returns:
- true if volume is compressed
-
isExtendedAttributes
Does this volume contain extended attributes.- Returns:
- true if volume contains extended attributes.
-
isMetaDataOnly
Does this volume only contain metadata?- Returns:
- true if volume only contains meta-data
-
isNewHeader
Is this the new header format? (We do not currently support the old format.)- Returns:
- true if using new header format
-
isNewInode
Is this the new inode format? (We do not currently support the old format.)- Returns:
- true if using new inode format
-
setDevname
Set the device name.- Parameters:
devname- the device name
-
setDumpDate
Set dump date.- Parameters:
dumpDate- the dump date
-
setFilesystem
Set the last mountpoint.- Parameters:
fileSystem- the last mountpoint
-
setFirstRecord
Set the inode of the first record.- Parameters:
firstrec- the first record
-
setFlags
Set the miscellaneous flags.- Parameters:
flags- flags
-
setHostname
Set the hostname.- Parameters:
hostname- the host name
-
setLabel
Set dump label.- Parameters:
label- the label
-
setLevel
Set level.- Parameters:
level- the level
-
setNTRec
Set the number of records per tape block.- Parameters:
ntrec- the number of records per tape block
-
setPreviousDumpDate
Set previous dump date.- Parameters:
previousDumpDate- the previous dump dat
-
setVolume
Set volume (tape) number.- Parameters:
volume- the volume number
-