public abstract class BackupFileSystemAdapter extends java.lang.Object implements IBackupFileSystem
Constructor and Description |
---|
BackupFileSystemAdapter() |
Modifier and Type | Method and Description |
---|---|
void |
cleanup()
Runs cleanup or set retention
|
void |
download(AbstractBackupPath path,
java.io.OutputStream os)
Write the contents of the specified remote path to the output stream and
close
|
int |
getActivecount()
Get number of active upload or downloads
|
java.util.Iterator<AbstractBackupPath> |
list(java.lang.String path,
java.util.Date start,
java.util.Date till)
List all files in the backup location for the specified time range.
|
java.util.Iterator<AbstractBackupPath> |
listPrefixes(java.util.Date date)
Get a list of prefixes for the cluster available in backup for the specified date
|
void |
shutdown()
Give the file system a chance to terminate any thread pools, etc.
|
void |
upload(AbstractBackupPath path,
java.io.InputStream in)
Upload/Backup to the specified location with contents from the input
stream.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
download
public void download(AbstractBackupPath path, java.io.OutputStream os) throws BackupRestoreException
IBackupFileSystem
download
in interface IBackupFileSystem
BackupRestoreException
public void upload(AbstractBackupPath path, java.io.InputStream in) throws BackupRestoreException
IBackupFileSystem
upload
in interface IBackupFileSystem
BackupRestoreException
public java.util.Iterator<AbstractBackupPath> list(java.lang.String path, java.util.Date start, java.util.Date till)
IBackupFileSystem
list
in interface IBackupFileSystem
public java.util.Iterator<AbstractBackupPath> listPrefixes(java.util.Date date)
IBackupFileSystem
listPrefixes
in interface IBackupFileSystem
public void cleanup()
IBackupFileSystem
cleanup
in interface IBackupFileSystem
public int getActivecount()
IBackupFileSystem
getActivecount
in interface IBackupFileSystem
public void shutdown()
IBackupFileSystem
shutdown
in interface IBackupFileSystem