|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.application.areca.AbstractRecoveryTarget
com.application.areca.impl.FileSystemRecoveryTarget
public class FileSystemRecoveryTarget
Target implementation that handles files.
Field Summary | |
---|---|
protected boolean |
followSubdirectories
|
static java.lang.String |
RECOVERY_LOCATION_SUFFIX
|
protected java.util.Set |
sources
|
protected java.lang.String |
sourcesRoot
|
protected boolean |
trackEmptyDirectories
|
protected boolean |
trackSymlinks
Tells whether symbolic are considered as normal files or as symbolic links |
Fields inherited from class com.application.areca.AbstractRecoveryTarget |
---|
BACKUP_SCHEME_DIFFERENTIAL, BACKUP_SCHEME_FULL, BACKUP_SCHEME_INCREMENTAL, comments, createSecurityCopyOnBackup, filterGroup, group, id, medium, postProcessors, preProcessors, running, targetName, uid |
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.HistoryEntryTypes |
---|
HISTO_BACKUP, HISTO_BACKUP_CANCEL, HISTO_DELETE, HISTO_MERGE, HISTO_MERGE_CANCEL, HISTO_RECOVER |
Constructor Summary | |
---|---|
FileSystemRecoveryTarget()
|
Method Summary | |
---|---|
Manifest |
buildDefaultMergeManifest(java.util.GregorianCalendar fromDate,
java.util.GregorianCalendar toDate)
|
ActionReport |
checkTargetState(int action)
Check the target's state |
void |
commitBackup(ProcessContext context)
Commit the backup and release the lock on the target |
protected void |
copyAttributes(java.lang.Object clone)
|
Duplicable |
duplicate()
Create a copy of the Duplicable |
java.lang.String |
getSourceDirectory()
|
java.util.Set |
getSources()
|
java.lang.String |
getSourcesRoot()
|
protected java.lang.String |
getSpecificTargetDescription()
|
boolean |
isFollowSubdirectories()
|
boolean |
isTrackEmptyDirectories()
|
boolean |
isTrackSymlinks()
|
RecoveryEntry |
nextElement(ProcessContext context)
Returns the next element. |
void |
open(Manifest manifest,
ProcessContext context,
java.lang.String backupScheme)
Open and lock the target |
void |
processArchiveCheck(java.lang.String destination,
boolean checkOnlyArchiveContent,
java.util.GregorianCalendar date,
ProcessContext context)
Check the archive's content |
void |
processRecoverImpl(java.lang.String destination,
java.util.GregorianCalendar date,
java.lang.String entry,
boolean checkRecoveredEntries,
ProcessContext context)
Recover a specific entry |
void |
processRecoverImpl(java.lang.String destination,
java.lang.String[] filters,
java.util.GregorianCalendar date,
boolean keepDeletedEntries,
boolean checkRecoveredEntries,
ProcessContext context)
Recover the data |
SimulationResult |
processSimulateImpl(ProcessContext context,
boolean returnDetailedResults)
Launch a simulation process. |
void |
setFollowSubdirectories(boolean followSubdirectories)
|
void |
setSources(java.util.Set sources)
|
void |
setTrackEmptyDirectories(boolean trackEmptyDirectories)
|
void |
setTrackSymlinks(boolean trackSymlinks)
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String RECOVERY_LOCATION_SUFFIX
protected java.lang.String sourcesRoot
protected java.util.Set sources
protected boolean followSubdirectories
protected boolean trackEmptyDirectories
protected boolean trackSymlinks
Constructor Detail |
---|
public FileSystemRecoveryTarget()
Method Detail |
---|
public Duplicable duplicate()
Duplicable
duplicate
in interface Duplicable
protected void copyAttributes(java.lang.Object clone)
copyAttributes
in class AbstractRecoveryTarget
public void setSources(java.util.Set sources)
public boolean isFollowSubdirectories()
public void setFollowSubdirectories(boolean followSubdirectories)
public boolean isTrackEmptyDirectories()
public void setTrackEmptyDirectories(boolean trackEmptyDirectories)
public java.util.Set getSources()
public java.lang.String getSourcesRoot()
public java.lang.String getSourceDirectory()
public boolean isTrackSymlinks()
public void setTrackSymlinks(boolean trackSymlinks)
public void commitBackup(ProcessContext context) throws ApplicationException
AbstractRecoveryTarget
commitBackup
in class AbstractRecoveryTarget
ApplicationException
public RecoveryEntry nextElement(ProcessContext context) throws ApplicationException
nextElement
in class AbstractRecoveryTarget
ApplicationException
public void open(Manifest manifest, ProcessContext context, java.lang.String backupScheme) throws ApplicationException
AbstractRecoveryTarget
open
in class AbstractRecoveryTarget
ApplicationException
public SimulationResult processSimulateImpl(ProcessContext context, boolean returnDetailedResults) throws ApplicationException
AbstractRecoveryTarget
processSimulateImpl
in class AbstractRecoveryTarget
ApplicationException
public void processArchiveCheck(java.lang.String destination, boolean checkOnlyArchiveContent, java.util.GregorianCalendar date, ProcessContext context) throws ApplicationException
AbstractRecoveryTarget
processArchiveCheck
in class AbstractRecoveryTarget
ApplicationException
public void processRecoverImpl(java.lang.String destination, java.lang.String[] filters, java.util.GregorianCalendar date, boolean keepDeletedEntries, boolean checkRecoveredEntries, ProcessContext context) throws ApplicationException
processRecoverImpl
in class AbstractRecoveryTarget
ApplicationException
public void processRecoverImpl(java.lang.String destination, java.util.GregorianCalendar date, java.lang.String entry, boolean checkRecoveredEntries, ProcessContext context) throws ApplicationException
processRecoverImpl
in class AbstractRecoveryTarget
ApplicationException
protected java.lang.String getSpecificTargetDescription()
getSpecificTargetDescription
in class AbstractRecoveryTarget
public ActionReport checkTargetState(int action)
checkTargetState
in class AbstractRecoveryTarget
public Manifest buildDefaultMergeManifest(java.util.GregorianCalendar fromDate, java.util.GregorianCalendar toDate) throws ApplicationException
buildDefaultMergeManifest
in class AbstractRecoveryTarget
ApplicationException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |