@NotThreadSafe public static class BackupService.BackupActivity extends BackupService.Activity
BackupService.Activity
subclass that performs content backup operations.Modifier and Type | Field and Description |
---|---|
protected BlockingQueue<NodeKey> |
changedDocumentQueue |
protected ExecutorService |
changedDocumentWorker |
protected BackupOptions |
options |
backupDirectory, binaryDirectory, binaryStore, changeDirectory, documentStore, problems, repositoryCache
Modifier | Constructor and Description |
---|---|
protected |
BackupActivity(File backupDirectory,
LocalDocumentStore documentStore,
BinaryStore binaryStore,
RepositoryCache repositoryCache,
BackupOptions options) |
Modifier and Type | Method and Description |
---|---|
Problems |
execute()
Execute the activity, using the repository state as it currently exists.
|
protected boolean |
initializeAreaOnDisk()
Initialize the backup area on disk, ensuring that the backup location does exist.
|
protected void |
writeToChangedArea(Iterable<BinaryKey> unusedBinaries) |
protected void |
writeToChangedArea(SchematicEntry entry,
BackupDocumentWriter changesWriter) |
protected void |
writeToContentArea(BinaryKey key,
InputStream binaryContent) |
protected void |
writeToContentArea(SchematicEntry document,
BackupDocumentWriter contentWriter) |
backupLocation, repositoryName
protected final ExecutorService changedDocumentWorker
protected final BlockingQueue<NodeKey> changedDocumentQueue
protected final BackupOptions options
protected BackupActivity(File backupDirectory, LocalDocumentStore documentStore, BinaryStore binaryStore, RepositoryCache repositoryCache, BackupOptions options)
protected boolean initializeAreaOnDisk()
protected void writeToContentArea(SchematicEntry document, BackupDocumentWriter contentWriter)
protected void writeToContentArea(BinaryKey key, InputStream binaryContent)
protected void writeToChangedArea(SchematicEntry entry, BackupDocumentWriter changesWriter)
public Problems execute()
BackupService.Activity
execute
in class BackupService.Activity
Copyright © 2008–2016 JBoss, a division of Red Hat. All rights reserved.