|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ArchiveMedium
Interface that defines an abstract storage medium.
Method Summary | |
---|---|
void |
checkArchives(java.lang.Object destination,
boolean checkOnlyArchiveContent,
java.util.GregorianCalendar date,
ProcessContext context)
Check the archive denoted by the date passed as argument. |
ActionReport |
checkMediumState(int action)
Check the medium's state |
void |
closeSimulation(ProcessContext context)
Closes the simulation and returns all unprocessed entries (ie entries which have been deleted). |
void |
commitBackup(ProcessContext context)
Validate the backup |
void |
commitMerge(ProcessContext context)
Validate the "merge" |
IndicatorMap |
computeIndicators()
Computes indicators on the archives stored by the medium. |
void |
deleteArchives(java.util.GregorianCalendar fromDate,
ProcessContext context)
Delete the archives that have been created between fromDate and toDate |
void |
destroyRepository()
Destroy all archives. |
void |
doAfterDelete()
Callback which is invoked after deletion |
void |
doBeforeDelete()
Callback which is invoked before deletion |
java.lang.String |
getDescription()
Return a description of the storage medium |
java.util.List |
getEntries(AggregatedViewContext context,
java.lang.String root,
java.util.GregorianCalendar date)
Return the content of the archive matching the date passed as argument |
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.util.List |
getLogicalView(AggregatedViewContext context,
java.lang.String root,
boolean aggregatedView)
Return a "logical view" of the target's content |
AbstractRecoveryTarget |
getTarget()
Return the target to which the medium is bound |
void |
install()
Set up all necessary objects for the medium (for instance file system drivers) |
boolean |
isPreBackupCheckUseful()
Tells whether it is useful to perform a pre-check before backup. |
void |
merge(java.util.GregorianCalendar fromDate,
java.util.GregorianCalendar toDate,
Manifest manifest,
boolean keepDeletedEntries,
ProcessContext context)
Merge the archives that have been created between fromDate and toDate. |
void |
open(Manifest manifest,
ProcessContext context,
java.lang.String backupScheme)
Open the medium. |
void |
recover(java.lang.Object destination,
java.lang.String[] filter,
java.util.GregorianCalendar date,
boolean keepDeletedEntries,
boolean checkRecoveredFiles,
ProcessContext context)
Recovers all entries matching the filter passed as argument, as of the date passed as argument. |
void |
rollbackBackup(ProcessContext context)
Cancel the backup |
void |
rollbackMerge(ProcessContext context)
Cancel the "merge" |
TargetSearchResult |
search(SearchCriteria criteria)
Searches entries within the archives |
void |
setTarget(AbstractRecoveryTarget target,
boolean revalidate)
Set the medium's target |
void |
simulateEntryProcessing(RecoveryEntry entry,
boolean haltOnFirstDifference,
ProcessContext context)
Simulates the processing of the entry passed as argument. |
void |
store(RecoveryEntry entry,
ProcessContext context)
Stores the entry passed as argument |
boolean |
supportsBackupScheme(java.lang.String backupScheme)
Tells whether the backup scheme passed as argument is supported by the medium or not |
Methods inherited from interface com.myJava.object.Duplicable |
---|
duplicate |
Method Detail |
---|
ActionReport checkMediumState(int action)
void store(RecoveryEntry entry, ProcessContext context) throws StoreException, ApplicationException, TaskCancelledException
StoreException
ApplicationException
TaskCancelledException
void merge(java.util.GregorianCalendar fromDate, java.util.GregorianCalendar toDate, Manifest manifest, boolean keepDeletedEntries, ProcessContext context) throws ApplicationException, TaskCancelledException
ApplicationException
TaskCancelledException
void deleteArchives(java.util.GregorianCalendar fromDate, ProcessContext context) throws ApplicationException, TaskCancelledException
ApplicationException
TaskCancelledException
void recover(java.lang.Object destination, java.lang.String[] filter, java.util.GregorianCalendar date, boolean keepDeletedEntries, boolean checkRecoveredFiles, ProcessContext context) throws ApplicationException, TaskCancelledException
ApplicationException
TaskCancelledException
void checkArchives(java.lang.Object destination, boolean checkOnlyArchiveContent, java.util.GregorianCalendar date, ProcessContext context) throws ApplicationException, TaskCancelledException
ProcessContext.getUncheckedRecoveredFiles()
and
ProcessContext.getInvalidRecoveredFiles()
).
ApplicationException
TaskCancelledException
void destroyRepository() throws ApplicationException, TaskCancelledException
ApplicationException
TaskCancelledException
void open(Manifest manifest, ProcessContext context, java.lang.String backupScheme) throws ApplicationException
ApplicationException
void commitBackup(ProcessContext context) throws ApplicationException
ApplicationException
void rollbackBackup(ProcessContext context) throws ApplicationException
ApplicationException
void commitMerge(ProcessContext context) throws ApplicationException
ApplicationException
void rollbackMerge(ProcessContext context) throws ApplicationException
ApplicationException
AbstractRecoveryTarget getTarget()
java.lang.String getDescription()
History getHistory()
java.util.List getEntries(AggregatedViewContext context, java.lang.String root, java.util.GregorianCalendar date) throws ApplicationException
ApplicationException
java.util.List getLogicalView(AggregatedViewContext context, java.lang.String root, boolean aggregatedView) throws ApplicationException
ApplicationException
EntryArchiveData[] getHistory(java.lang.String entry) throws ApplicationException
ApplicationException
void doBeforeDelete()
void doAfterDelete()
void simulateEntryProcessing(RecoveryEntry entry, boolean haltOnFirstDifference, ProcessContext context) throws ApplicationException
ApplicationException
void closeSimulation(ProcessContext context) throws ApplicationException
ApplicationException
boolean isPreBackupCheckUseful()
IndicatorMap computeIndicators() throws ApplicationException, TaskCancelledException
ApplicationException
TaskCancelledException
TargetSearchResult search(SearchCriteria criteria) throws ApplicationException
ApplicationException
void install() throws ApplicationException
ApplicationException
void setTarget(AbstractRecoveryTarget target, boolean revalidate)
boolean supportsBackupScheme(java.lang.String backupScheme)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |