|
|||||||||
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.DeltaArchiveHandler
public class DeltaArchiveHandler
Handler that processes delta archives.
Field Summary | |
---|---|
protected static java.lang.String |
SEQUENCE_FILE
sequence filename |
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 | |
---|---|
DeltaArchiveHandler()
|
Method Summary | |
---|---|
void |
archiveDeleted(java.io.File archive)
Delete the local sequence files associated to the deleted archive |
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 |
java.lang.String |
getSequenceFileName()
Return the final sequence file name |
void |
init(ProcessContext context)
Init the handler |
void |
recoverRawData(java.io.File[] archivesToRecover,
RecoveryFilterMap filtersByArchive,
short mode,
ProcessContext context)
Restore the data |
protected void |
recoverRawFile(java.io.File f,
java.io.File target,
java.io.File[] localFiles,
int i,
java.lang.String localPath,
int mode,
ProcessContext context)
|
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 |
Field Detail |
---|
protected static final java.lang.String SEQUENCE_FILE
Constructor Detail |
---|
public DeltaArchiveHandler()
Method Detail |
---|
public java.lang.String getSequenceFileName()
public void close(ProcessContext context) throws java.io.IOException, ApplicationException
ArchiveHandler
java.io.IOException
ApplicationException
public void init(ProcessContext context) throws java.io.IOException
ArchiveHandler
java.io.IOException
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 archiveDeleted(java.io.File archive) throws java.io.IOException
java.io.IOException
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
protected void recoverRawFile(java.io.File f, java.io.File target, java.io.File[] localFiles, int i, java.lang.String localPath, int mode, ProcessContext context) throws java.io.IOException, TaskCancelledException, ApplicationException
java.io.IOException
TaskCancelledException
ApplicationException
public RecoveryFilterMap dispatchEntries(java.io.File[] archives, java.lang.String[] entriesToRecover) throws ApplicationException, java.io.IOException
ArchiveHandler
ApplicationException
java.io.IOException
public Duplicable duplicate()
Duplicable
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 |