@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 |
backupDirectory, binaryDirectory, binaryStore, changeDirectory, documentStore, problems, repositoryCache
Modifier | Constructor and Description |
---|---|
protected |
BackupService.BackupActivity(File backupDirectory,
LocalDocumentStore documentStore,
BinaryStore binaryStore,
RepositoryCache repositoryCache,
long documentsPerFile,
boolean compress) |
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 document) |
protected void |
writeToContentArea(BinaryKey key,
InputStream binaryContent) |
protected void |
writeToContentArea(SchematicEntry document) |
backupLocation, repositoryName
protected final ExecutorService changedDocumentWorker
protected final BlockingQueue<NodeKey> changedDocumentQueue
protected BackupService.BackupActivity(File backupDirectory, LocalDocumentStore documentStore, BinaryStore binaryStore, RepositoryCache repositoryCache, long documentsPerFile, boolean compress)
protected boolean initializeAreaOnDisk()
protected void writeToContentArea(SchematicEntry document)
protected void writeToContentArea(BinaryKey key, InputStream binaryContent)
protected void writeToChangedArea(SchematicEntry document)
public Problems execute()
BackupService.Activity
execute
in class BackupService.Activity
Copyright © 2008-2014 JBoss, a division of Red Hat. All Rights Reserved.