public class GoogleEncryptedFileSystem extends AbstractFileSystem
pathProvider
Constructor and Description |
---|
GoogleEncryptedFileSystem(com.google.inject.Provider<AbstractBackupPath> pathProvider,
IConfiguration config,
ICredentialGeneric credential,
BackupMetrics backupMetrics,
BackupNotificationMgr backupNotificationManager) |
Modifier and Type | Method and Description |
---|---|
void |
cleanup()
Runs cleanup or set retention
|
void |
deleteFiles(java.util.List<java.nio.file.Path> remotePaths) |
protected boolean |
doesRemoteFileExist(java.nio.file.Path remotePath) |
protected void |
downloadFileImpl(AbstractBackupPath path,
java.lang.String suffix) |
long |
getFileSize(java.lang.String remotePath)
Get the size of the remote object
|
java.util.Iterator<java.lang.String> |
listFileSystem(java.lang.String prefix,
java.lang.String delimiter,
java.lang.String marker)
List all the files with the given prefix, delimiter, and marker.
|
void |
shutdown()
Give the file system a chance to terminate any thread pools, etc.
|
protected long |
uploadFileImpl(AbstractBackupPath path) |
addObserver, asyncDownloadFile, asyncUploadAndDelete, checkObjectExists, clearCache, deleteRemoteFiles, downloadFile, getDownloadTasksQueued, getPrefix, getShard, getUploadTasksQueued, list, listPrefixes, notifyEventFailure, notifyEventStart, notifyEventStop, notifyEventSuccess, removeObserver, uploadAndDelete
@Inject public GoogleEncryptedFileSystem(com.google.inject.Provider<AbstractBackupPath> pathProvider, IConfiguration config, ICredentialGeneric credential, BackupMetrics backupMetrics, BackupNotificationMgr backupNotificationManager)
protected void downloadFileImpl(AbstractBackupPath path, java.lang.String suffix) throws BackupRestoreException
downloadFileImpl
in class AbstractFileSystem
BackupRestoreException
protected boolean doesRemoteFileExist(java.nio.file.Path remotePath)
doesRemoteFileExist
in class AbstractFileSystem
public java.util.Iterator<java.lang.String> listFileSystem(java.lang.String prefix, java.lang.String delimiter, java.lang.String marker)
IBackupFileSystem
prefix
- Common prefix of the elements to search in the backup file system.delimiter
- All the object will end with this delimiter.marker
- Start the fetch with this as the first object.public void cleanup()
IBackupFileSystem
public void shutdown()
IBackupFileSystem
protected long uploadFileImpl(AbstractBackupPath path) throws BackupRestoreException
uploadFileImpl
in class AbstractFileSystem
BackupRestoreException
public long getFileSize(java.lang.String remotePath) throws BackupRestoreException
IBackupFileSystem
remotePath
- Location of the object on the remote file system.BackupRestoreException
- in case of failure to read object denoted by remotePath or any
other error.public void deleteFiles(java.util.List<java.nio.file.Path> remotePaths) throws BackupRestoreException
deleteFiles
in class AbstractFileSystem
BackupRestoreException