|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.application.areca.AbstractMedium
com.application.areca.impl.AbstractFileSystemMedium
com.application.areca.impl.AbstractIncrementalFileSystemMedium
com.application.areca.impl.IncrementalZipMedium
public class IncrementalZipMedium
Incremental storage support which uses an archive to store the data.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.application.areca.impl.AbstractIncrementalFileSystemMedium |
---|
AbstractIncrementalFileSystemMedium.CheckHash |
Field Summary |
---|
Fields inherited from class com.application.areca.impl.AbstractIncrementalFileSystemMedium |
---|
CHECK_DESTINATION, CONTENT_FILE, DEBUG_MODE, handler, HASH_FILE, imageBackups, METADATA_FILE, RESERVED_NAMES, TMP_MERGE_LOCATION, TRACE_FILE, trackPermissions |
Fields inherited from class com.application.areca.impl.AbstractFileSystemMedium |
---|
CHECK_DIRECTORY_CONSISTENCY, COMMIT_MARKER_NAME, compressionArguments, DATA_DIRECTORY_SUFFIX, encryptionPolicy, fileSystemPolicy, MANIFEST_FILE, TARGET_BACKUP_FILE_PREFIX, TARGET_BACKUP_FILE_SUFFIX, tool |
Fields inherited from class com.application.areca.AbstractMedium |
---|
history, HISTORY_NAME, target |
Fields inherited from interface com.application.areca.TargetActions |
---|
ACTION_ALL, ACTION_BACKUP, ACTION_DESCRIBE, ACTION_INDICATORS, ACTION_MERGE_OR_DELETE, ACTION_RECOVER, ACTION_SIMULATE |
Fields inherited from interface com.application.areca.indicator.IndicatorTypes |
---|
N_APS, N_NOA, N_NOF, N_PSR, N_SFS, N_SOH, N_SRR, N_SWH, T_APS, T_NOA, T_NOF, T_PSR, T_SFS, T_SOH, T_SRR, T_SWH |
Constructor Summary | |
---|---|
IncrementalZipMedium()
|
Method Summary | |
---|---|
protected void |
buildArchive(ProcessContext context)
Buid the archive |
protected ArchiveAdapter |
buildArchiveAdapter(java.io.File f,
boolean write,
ProcessContext context)
Builds an ArchiveAdapter for the file passed as argument. |
protected void |
buildMergedArchiveFromDirectory(ProcessContext context)
|
void |
cleanLocalCopies(java.util.List copies,
ProcessContext context)
|
protected void |
closeArchive(ProcessContext context)
|
void |
completeLocalCopyCleaning(java.io.File copy,
ProcessContext context)
|
protected void |
computeMergeDirectories(ProcessContext context)
|
Duplicable |
duplicate()
Create a copy of the Duplicable |
java.io.File[] |
ensureLocalCopy(java.io.File[] archivesToProcess,
boolean overrideRecoveredFiles,
java.io.File destination,
RecoveryFilterMap filtersByArchive,
ProcessContext context)
Ensure that the stored files are present on the local disk. |
protected java.lang.String |
getArchiveExtension()
|
java.lang.String |
getDescription()
Return a description of the storage medium |
int |
getMaxRetries()
|
void |
open(Manifest manifest,
ProcessContext context,
java.lang.String backupScheme)
Prepares the backup |
protected void |
prepareContext(ProcessContext context)
|
protected void |
registerUnstoredFile(FileSystemRecoveryEntry entry,
ProcessContext context)
|
boolean |
retrySupported()
|
protected void |
storeFileInArchive(FileSystemRecoveryEntry entry,
java.io.InputStream in,
ProcessContext context)
Stocke le fichier passe en argument dans l'archive (independemment des filtres, ou politique de stockage; il s'agit la d'une methode purement utilitaire; en pratique : zip ou repertoire) |
boolean |
supportsBackupScheme(java.lang.String backupScheme)
Tells whether the backup scheme passed as argument is supported by the medium or not |
Methods inherited from class com.application.areca.AbstractMedium |
---|
equals, getHistoryName, getTarget, hashCode, processEntryArchiveData |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public IncrementalZipMedium()
Method Detail |
---|
public java.lang.String getDescription()
ArchiveMedium
protected void buildArchive(ProcessContext context) throws java.io.IOException, ApplicationException
buildArchive
in class AbstractIncrementalFileSystemMedium
java.io.IOException
ApplicationException
public int getMaxRetries()
getMaxRetries
in class AbstractIncrementalFileSystemMedium
public boolean retrySupported()
retrySupported
in class AbstractIncrementalFileSystemMedium
protected void storeFileInArchive(FileSystemRecoveryEntry entry, java.io.InputStream in, ProcessContext context) throws java.io.IOException, ApplicationException, TaskCancelledException
AbstractFileSystemMedium
storeFileInArchive
in class AbstractFileSystemMedium
java.io.IOException
ApplicationException
TaskCancelledException
public void open(Manifest manifest, ProcessContext context, java.lang.String backupScheme) throws ApplicationException
AbstractIncrementalFileSystemMedium
open
in interface ArchiveMedium
open
in class AbstractIncrementalFileSystemMedium
ApplicationException
protected void closeArchive(ProcessContext context) throws java.io.IOException
closeArchive
in class AbstractIncrementalFileSystemMedium
java.io.IOException
public boolean supportsBackupScheme(java.lang.String backupScheme)
ArchiveMedium
supportsBackupScheme
in interface ArchiveMedium
supportsBackupScheme
in class AbstractIncrementalFileSystemMedium
protected void prepareContext(ProcessContext context)
prepareContext
in class AbstractIncrementalFileSystemMedium
protected ArchiveAdapter buildArchiveAdapter(java.io.File f, boolean write, ProcessContext context) throws java.io.IOException, ApplicationException
java.io.IOException
ApplicationException
public Duplicable duplicate()
Duplicable
protected java.lang.String getArchiveExtension()
getArchiveExtension
in class AbstractFileSystemMedium
public java.io.File[] ensureLocalCopy(java.io.File[] archivesToProcess, boolean overrideRecoveredFiles, java.io.File destination, RecoveryFilterMap filtersByArchive, ProcessContext context) throws java.io.IOException, ApplicationException, TaskCancelledException
AbstractIncrementalFileSystemMedium
ensureLocalCopy
in class AbstractIncrementalFileSystemMedium
java.io.IOException
ApplicationException
TaskCancelledException
public void completeLocalCopyCleaning(java.io.File copy, ProcessContext context) throws java.io.IOException, ApplicationException
completeLocalCopyCleaning
in class AbstractIncrementalFileSystemMedium
java.io.IOException
ApplicationException
public void cleanLocalCopies(java.util.List copies, ProcessContext context) throws java.io.IOException, ApplicationException
cleanLocalCopies
in class AbstractIncrementalFileSystemMedium
java.io.IOException
ApplicationException
protected void registerUnstoredFile(FileSystemRecoveryEntry entry, ProcessContext context)
registerUnstoredFile
in class AbstractIncrementalFileSystemMedium
protected void computeMergeDirectories(ProcessContext context) throws ApplicationException
computeMergeDirectories
in class AbstractIncrementalFileSystemMedium
ApplicationException
protected void buildMergedArchiveFromDirectory(ProcessContext context) throws ApplicationException
buildMergedArchiveFromDirectory
in class AbstractIncrementalFileSystemMedium
ApplicationException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |