|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ArchiveHandler
Base interface for archive handlers.
Handles :
- Merge actions
- Whole archive recovery actions
- Backup actions
Field Summary | |
---|---|
static short |
MODE_MERGE
|
static short |
MODE_RECOVER
|
Method Summary | |
---|---|
void |
archiveDeleted(java.io.File archive)
Callback after archive deletion |
boolean |
autonomousArchives()
Tells whether the handler builds autonomous archives |
void |
close(ProcessContext context)
Close the handler |
RecoveryFilterMap |
dispatchEntries(java.io.File[] archives,
java.lang.String[] entriesToRecover)
Return, for the array of entries passed as argument, the archives that will have to be recovered among the archive list passed as argument. |
java.io.File |
getContentFile(java.io.File archive)
Ugly but no time to do better |
AbstractIncrementalFileSystemMedium |
getMedium()
Medium to which the handler is associated |
void |
init(ProcessContext context)
Init the handler |
void |
recoverRawData(java.io.File[] archivesToRecover,
RecoveryFilterMap filtersByArchive,
short mode,
ProcessContext context)
Restore the data |
void |
setMedium(AbstractIncrementalFileSystemMedium medium)
Medium to which the handler is associated |
void |
store(FileSystemRecoveryEntry entry,
java.io.InputStream in,
java.io.OutputStream out,
ProcessContext context)
The outputStream is provided by the Medium itself. |
boolean |
supportsImageBackup()
Tells whether the handler supports image backups or not (some handlers are inherently incompatible with image backups) |
Methods inherited from interface com.myJava.object.Duplicable |
---|
duplicate |
Field Detail |
---|
static final short MODE_MERGE
static final short MODE_RECOVER
Method Detail |
---|
AbstractIncrementalFileSystemMedium getMedium()
void setMedium(AbstractIncrementalFileSystemMedium medium)
void store(FileSystemRecoveryEntry entry, java.io.InputStream in, java.io.OutputStream out, ProcessContext context) throws ApplicationException, java.io.IOException, TaskCancelledException
ApplicationException
java.io.IOException
TaskCancelledException
void recoverRawData(java.io.File[] archivesToRecover, RecoveryFilterMap filtersByArchive, short mode, ProcessContext context) throws java.io.IOException, ApplicationException, TaskCancelledException
java.io.IOException
ApplicationException
TaskCancelledException
RecoveryFilterMap dispatchEntries(java.io.File[] archives, java.lang.String[] entriesToRecover) throws ApplicationException, java.io.IOException
ApplicationException
java.io.IOException
void init(ProcessContext context) throws java.io.IOException
java.io.IOException
void close(ProcessContext context) throws java.io.IOException, ApplicationException
java.io.IOException
ApplicationException
void archiveDeleted(java.io.File archive) throws java.io.IOException
java.io.IOException
boolean supportsImageBackup()
boolean autonomousArchives()
java.io.File getContentFile(java.io.File archive)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |