|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.application.areca.impl.handler.AbstractArchiveHandler
com.application.areca.impl.handler.DefaultArchiveHandler
public class DefaultArchiveHandler
Default handler : handles standard files.
Field Summary |
---|
Fields inherited from class com.application.areca.impl.handler.AbstractArchiveHandler |
---|
medium |
Fields inherited from interface com.application.areca.impl.handler.ArchiveHandler |
---|
MODE_MERGE, MODE_RECOVER |
Constructor Summary | |
---|---|
DefaultArchiveHandler()
|
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. |
Duplicable |
duplicate()
Create a copy of the Duplicable |
java.io.File |
getContentFile(java.io.File archive)
Ugly but no time to do better |
void |
init(ProcessContext context)
Init the handler |
void |
recoverRawData(java.io.File[] archivesToRecover,
RecoveryFilterMap filtersByArchive,
short mode,
ProcessContext context)
Restore the data |
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 class com.application.areca.impl.handler.AbstractArchiveHandler |
---|
equals, getMedium, hashCode, setMedium |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultArchiveHandler()
Method Detail |
---|
public void store(FileSystemRecoveryEntry entry, java.io.InputStream in, java.io.OutputStream out, ProcessContext context) throws ApplicationException, java.io.IOException, TaskCancelledException
ArchiveHandler
ApplicationException
java.io.IOException
TaskCancelledException
public void recoverRawData(java.io.File[] archivesToRecover, RecoveryFilterMap filtersByArchive, short mode, ProcessContext context) throws java.io.IOException, ApplicationException, TaskCancelledException
ArchiveHandler
java.io.IOException
ApplicationException
TaskCancelledException
public void archiveDeleted(java.io.File archive) throws java.io.IOException
ArchiveHandler
java.io.IOException
public void close(ProcessContext context) throws java.io.IOException
ArchiveHandler
java.io.IOException
public void init(ProcessContext context) throws java.io.IOException
ArchiveHandler
java.io.IOException
public Duplicable duplicate()
Duplicable
public RecoveryFilterMap dispatchEntries(java.io.File[] archives, java.lang.String[] entriesToRecover) throws ApplicationException, java.io.IOException
ArchiveHandler
ApplicationException
java.io.IOException
public boolean supportsImageBackup()
ArchiveHandler
public java.io.File getContentFile(java.io.File archive)
ArchiveHandler
public boolean autonomousArchives()
ArchiveHandler
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |