|
|||||||||
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
public abstract class AbstractFileSystemMedium
Field Summary | |
---|---|
static boolean |
CHECK_DIRECTORY_CONSISTENCY
|
protected static java.lang.String |
COMMIT_MARKER_NAME
|
protected CompressionArguments |
compressionArguments
Compression arguments These arguments may be interpreted specifically depending on the medium type. |
protected static java.lang.String |
DATA_DIRECTORY_SUFFIX
Suffix added to the archive name to create the data directory (containing the manifest and trace) |
protected EncryptionPolicy |
encryptionPolicy
Encryption arguments |
protected FileSystemPolicy |
fileSystemPolicy
Base storage policy |
protected static java.lang.String |
MANIFEST_FILE
Manifest name |
protected static java.lang.String |
TARGET_BACKUP_FILE_PREFIX
Name used for target configuration backup |
protected static java.lang.String |
TARGET_BACKUP_FILE_SUFFIX
|
protected static FileTool |
tool
File processing 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 | |
---|---|
AbstractFileSystemMedium()
|
Method Summary | |
---|---|
protected FileSystemDriver |
buildBaseDriver(boolean main)
|
protected FileSystemDriver |
buildStorageDriver(java.io.File storageDir)
|
boolean |
checkArchiveCompatibility(java.io.File archive)
Checks that the archive provided as argument belongs to this medium |
protected abstract void |
checkFileSystemPolicy()
|
ActionReport |
checkMediumState(int action)
Valide diverses regles de gestion, notamment le fait que la gestion du cryptage est activee ou desactivee explicitement. |
protected void |
checkRepository()
Look for uncommitted archives and destroy them Also destroy temporary recovery locations |
protected void |
clearRelatedCaches()
|
void |
commitMerge(ProcessContext context)
On vide les caches lors de la fusion. |
IndicatorMap |
computeIndicators()
Computes indicators on the archives stored by the medium. |
protected java.io.File |
computeMarkerFile(java.io.File archive)
|
protected java.io.File |
computeMarkerFile(java.io.File archive,
boolean ensureParentDir)
|
protected void |
copyAttributes(java.lang.Object clone)
|
protected abstract void |
deleteArchive(java.io.File archive)
|
void |
deleteArchives(java.util.GregorianCalendar fromDate,
ProcessContext context)
Delete the archives that have been created between fromDate and toDate |
void |
destroyRepository()
Destroy all archives. |
protected void |
destroyTemporaryFile(java.io.File archive)
|
void |
doAfterDelete()
Callback which is invoked after deletion |
void |
doBeforeDelete()
Callback which is invoked before deletion |
protected abstract EntryArchiveData |
getArchiveData(java.lang.String entry,
java.io.File archive)
Retourne le status de l'entree, dans l'archive specifiee. |
protected abstract java.lang.String |
getArchiveExtension()
|
abstract long |
getArchiveSize(java.io.File archive,
boolean forceComputation)
|
CompressionArguments |
getCompressionArguments()
|
java.io.File |
getDataDirectory(java.io.File archive)
Builds the data directory associated to the archive file provided as argument. |
java.lang.String |
getDisplayArchivePath()
|
EncryptionPolicy |
getEncryptionPolicy()
|
FileSystemPolicy |
getFileSystemPolicy()
|
History |
getHistory()
Return the history of all operations performed on the medium (merges, backups, ...) |
EntryArchiveData[] |
getHistory(java.lang.String entry)
Return the entry's history |
java.io.File |
getLastArchive()
|
abstract java.io.File |
getLastArchive(java.lang.String backupScheme,
java.util.GregorianCalendar date)
Retourne la derniere archive precedant une date donnee |
java.lang.String |
getManifestName()
|
void |
install()
Set up all necessary objects for the medium (for instance file system drivers) |
protected boolean |
isCommitted(java.io.File archive)
|
boolean |
isPreBackupCheckUseful()
Tells whether it is useful to perform a pre-check before backup. |
protected abstract boolean |
isWorkingDirectory(java.io.File f)
Introduced in Areca v6.2 Tells whether the file is a working directory or not |
abstract java.io.File[] |
listArchives(java.util.GregorianCalendar fromDate,
java.util.GregorianCalendar toDate)
|
protected void |
markCommitted(java.io.File archive)
|
protected abstract boolean |
matchArchiveName(java.io.File f)
Introduced in Areca v6.0 Caution : will return 'false' for archives that have been built with previous versions of Areca |
void |
setCompressionArguments(CompressionArguments compressionArguments)
|
void |
setEncryptionPolicy(EncryptionPolicy encryptionPolicy)
|
void |
setFileSystemPolicy(FileSystemPolicy fileSystemPolicy)
|
void |
setTarget(AbstractRecoveryTarget target,
boolean revalidate)
Set the medium's target |
protected abstract 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) |
protected void |
storeTargetConfigBackup(ProcessContext context)
Creates a copy of the target's XML configuration and stores it in the main backup directory. |
java.lang.String |
toString()
|
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 |
Methods inherited from interface com.application.areca.ArchiveMedium |
---|
checkArchives, closeSimulation, commitBackup, getDescription, getEntries, getLogicalView, merge, open, recover, rollbackBackup, rollbackMerge, search, simulateEntryProcessing, store, supportsBackupScheme |
Methods inherited from interface com.myJava.object.Duplicable |
---|
duplicate |
Field Detail |
---|
public static final boolean CHECK_DIRECTORY_CONSISTENCY
protected static final java.lang.String COMMIT_MARKER_NAME
protected static final java.lang.String DATA_DIRECTORY_SUFFIX
protected static final java.lang.String MANIFEST_FILE
protected static final java.lang.String TARGET_BACKUP_FILE_PREFIX
protected static final java.lang.String TARGET_BACKUP_FILE_SUFFIX
protected static final FileTool tool
protected EncryptionPolicy encryptionPolicy
protected FileSystemPolicy fileSystemPolicy
protected CompressionArguments compressionArguments
Constructor Detail |
---|
public AbstractFileSystemMedium()
Method Detail |
---|
public boolean checkArchiveCompatibility(java.io.File archive)
public ActionReport checkMediumState(int action)
checkMediumState
in interface ArchiveMedium
public void commitMerge(ProcessContext context) throws ApplicationException
commitMerge
in interface ArchiveMedium
ApplicationException
public IndicatorMap computeIndicators() throws ApplicationException
ArchiveMedium
computeIndicators
in interface ArchiveMedium
ApplicationException
public void deleteArchives(java.util.GregorianCalendar fromDate, ProcessContext context) throws ApplicationException
ArchiveMedium
deleteArchives
in interface ArchiveMedium
ApplicationException
public void destroyRepository() throws ApplicationException
ArchiveMedium
destroyRepository
in interface ArchiveMedium
ApplicationException
public void doAfterDelete()
ArchiveMedium
doAfterDelete
in interface ArchiveMedium
public void doBeforeDelete()
ArchiveMedium
doBeforeDelete
in interface ArchiveMedium
public abstract long getArchiveSize(java.io.File archive, boolean forceComputation) throws ApplicationException
ApplicationException
public CompressionArguments getCompressionArguments()
public java.io.File getDataDirectory(java.io.File archive)
public java.lang.String getDisplayArchivePath()
public EncryptionPolicy getEncryptionPolicy()
public FileSystemPolicy getFileSystemPolicy()
public History getHistory()
ArchiveMedium
getHistory
in interface ArchiveMedium
public EntryArchiveData[] getHistory(java.lang.String entry) throws ApplicationException
ArchiveMedium
getHistory
in interface ArchiveMedium
ApplicationException
public java.io.File getLastArchive() throws ApplicationException
ApplicationException
public abstract java.io.File getLastArchive(java.lang.String backupScheme, java.util.GregorianCalendar date) throws ApplicationException
ApplicationException
public java.lang.String getManifestName()
public void install() throws ApplicationException
ArchiveMedium
install
in interface ArchiveMedium
install
in class AbstractMedium
ApplicationException
public boolean isPreBackupCheckUseful()
ArchiveMedium
isPreBackupCheckUseful
in interface ArchiveMedium
public abstract java.io.File[] listArchives(java.util.GregorianCalendar fromDate, java.util.GregorianCalendar toDate)
public void setCompressionArguments(CompressionArguments compressionArguments)
public void setEncryptionPolicy(EncryptionPolicy encryptionPolicy)
public void setFileSystemPolicy(FileSystemPolicy fileSystemPolicy)
public void setTarget(AbstractRecoveryTarget target, boolean revalidate)
ArchiveMedium
setTarget
in interface ArchiveMedium
public java.lang.String toString()
toString
in class java.lang.Object
protected FileSystemDriver buildBaseDriver(boolean main) throws ApplicationException
ApplicationException
protected FileSystemDriver buildStorageDriver(java.io.File storageDir) throws ApplicationException
ApplicationException
protected abstract void checkFileSystemPolicy()
protected void checkRepository()
protected void clearRelatedCaches()
protected java.io.File computeMarkerFile(java.io.File archive)
protected java.io.File computeMarkerFile(java.io.File archive, boolean ensureParentDir) throws java.io.IOException
java.io.IOException
protected void copyAttributes(java.lang.Object clone)
copyAttributes
in class AbstractMedium
protected abstract void deleteArchive(java.io.File archive) throws java.io.IOException
java.io.IOException
protected void destroyTemporaryFile(java.io.File archive)
protected abstract EntryArchiveData getArchiveData(java.lang.String entry, java.io.File archive) throws ApplicationException
entry
- archive
-
ApplicationException
protected abstract java.lang.String getArchiveExtension()
protected boolean isCommitted(java.io.File archive)
protected abstract boolean isWorkingDirectory(java.io.File f)
protected void markCommitted(java.io.File archive) throws java.io.IOException
java.io.IOException
protected abstract boolean matchArchiveName(java.io.File f)
protected abstract void storeFileInArchive(FileSystemRecoveryEntry entry, java.io.InputStream in, ProcessContext context) throws java.io.IOException, ApplicationException, TaskCancelledException
java.io.IOException
ApplicationException
TaskCancelledException
protected void storeTargetConfigBackup(ProcessContext context) throws ApplicationException
ApplicationException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |