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.String
getBackupPath(int mediumID)
Gibt den Ordnernamen zurück, in den Daten des angegebenen Medium gespeichert werden sollenboolean
hasMediumCapacity(long containerSize, int mediumIndexSize)
Gibt zurück, ob für einen Container der Größe ContainerSize noch auf dem aktuellen Medium Platz istjava.lang.String
toString()
Methods inherited from class de.bsvrz.ars.ars.backup.plugins.AbstractFileSystemBackup
backupContainer, closeMediumAfterBackup, getAllContFileNames, openMediumBeforeBackup, restoreContainer
Methods 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:AbstractFileSystemBackup
Gibt zurück, ob für einen Container der Größe ContainerSize noch auf dem aktuellen Medium Platz ist- Specified by:
hasMediumCapacity
in 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:AbstractFileSystemBackup
Gibt den Ordnernamen zurück, in den Daten des angegebenen Medium gespeichert werden sollen- Specified by:
getBackupPath
in classAbstractFileSystemBackup
- Parameters:
mediumID
- medien-ID- Returns:
- Ordnernamen
-
toString
public java.lang.String toString()- Overrides:
toString
in classAbstractFileSystemBackup
-