Package de.bsvrz.ars.ars.backup.plugins
Class FileSystemBackupImpl
java.lang.Object
de.bsvrz.ars.ars.backup.plugins.AbstractFileSystemBackup
de.bsvrz.ars.ars.backup.plugins.FileSystemBackupImpl
- All Implemented Interfaces:
BackupImplementation
public class FileSystemBackupImpl extends AbstractFileSystemBackup
Diese Klasse ist für die Sicherung von Containern auf dem Filesystem verantwortlich.
-
Field Summary
Fields inherited from class de.bsvrz.ars.ars.backup.plugins.AbstractFileSystemBackup
_maxContainersPerZip, _maxMediumSizeKb, backupBasePath, currentBackupPath, currentSpaceOccupiedByContainers, currentSpaceOccupiedByZipfiles, logger, PROP_BACKUP_CONTAINER_PER_ZIP, PROP_BACKUP_DIR, PROP_BACKUP_MEDIUMSIZE -
Constructor Summary
Constructors Constructor Description FileSystemBackupImpl(java.util.Properties props)Erstellt ein neues FileSystemBackupImpl-Objekt -
Method Summary
Modifier and Type Method Description java.lang.StringgetBackupPath(int mediumID)Gibt den Ordnernamen zurück, in den Daten des angegebenen Medium gespeichert werden sollenbooleanhasMediumCapacity(long containerSize, int mediumIndexSize)Gibt zurück, ob für einen Container der Größe ContainerSize noch auf dem aktuellen Medium Platz istjava.lang.StringtoString()Methods inherited from class de.bsvrz.ars.ars.backup.plugins.AbstractFileSystemBackup
backupContainer, closeMediumAfterBackup, getAllContFileNames, openMediumBeforeBackup, restoreContainerMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Constructor Details
-
FileSystemBackupImpl
public FileSystemBackupImpl(java.util.Properties props)Erstellt ein neues FileSystemBackupImpl-Objekt- Parameters:
props- Backup-Properties (Parameter)
-
-
Method Details
-
hasMediumCapacity
public boolean hasMediumCapacity(long containerSize, int mediumIndexSize)Description copied from class:AbstractFileSystemBackupGibt zurück, ob für einen Container der Größe ContainerSize noch auf dem aktuellen Medium Platz ist- Specified by:
hasMediumCapacityin classAbstractFileSystemBackup- Parameters:
containerSize- Container-Größe in bytesmediumIndexSize- Geschätzte Größe des Medium-Indexes (Indexdatei)- Returns:
- true: Es ist Platz vorhanden, false: Es ist kein Platz vorhanden
-
getBackupPath
@NotNull public java.lang.String getBackupPath(int mediumID)Description copied from class:AbstractFileSystemBackupGibt den Ordnernamen zurück, in den Daten des angegebenen Medium gespeichert werden sollen- Specified by:
getBackupPathin classAbstractFileSystemBackup- Parameters:
mediumID- medien-ID- Returns:
- Ordnernamen
-
toString
public java.lang.String toString()- Overrides:
toStringin classAbstractFileSystemBackup
-