public class BackupClientImpl extends Object implements BackupClient
| Constructor and Description |
|---|
BackupClientImpl(ClientTransport transport,
FormAuthentication formAuthentication,
String urlPath)
Constructor.
|
BackupClientImpl(ClientTransport transport,
String urlPath)
Constructor.
|
BackupClientImpl(ClientTransport transport,
String login,
String pass,
String urlPath)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
String |
drop(boolean forceClose,
String repositoryName,
String workspaceName)
Drop workspace or repository.
|
String |
info()
Get information about backup service.
|
String |
list()
Get information about the current backups (in progress).
|
String |
listCompleted()
Get information about the completed (ready to restore) backups.
|
String |
restore(String repositoryName,
String workspaceName,
String backupId,
InputStream config,
String backupSetPath,
boolean removeExists)
Restore repository or workspace from backup file.
|
String |
restores(String repositoryName,
String workspaceName)
Get information about current restores of repository or workspace.
|
String |
startBackUp(String repositoryName,
String workspaceName,
String backupDir)
Start backup of repository or workspace.
|
String |
startIncrementalBackUp(String repositoryName,
String workspaceName,
String backupDir,
long incr)
Start Incremental Backup of repository or workspace.
|
String |
status(String backupId)
Get Status of backup.
|
String |
stop(String backupId)
Stop backup.
|
public BackupClientImpl(ClientTransport transport, String urlPath)
transport - ClientTransport implementation.urlPath - url path.public BackupClientImpl(ClientTransport transport, String login, String pass, String urlPath)
transport - ClientTransport implementation.login - user login.pass - user password.urlPath - url path.public BackupClientImpl(ClientTransport transport, FormAuthentication formAuthentication, String urlPath)
transport - ClientTransport implementation.formAuthentication - form authentication.urlPath - url path.public String startBackUp(String repositoryName, String workspaceName, String backupDir) throws IOException, BackupExecuteException
startBackUp in interface BackupClientrepositoryName - String, the repository name.workspaceName - String, the workspace name.backupDir - path to backup folder on remote serverIOException - transport exception.BackupExecuteException - backup client internal exception.public String startIncrementalBackUp(String repositoryName, String workspaceName, String backupDir, long incr) throws IOException, BackupExecuteException
startIncrementalBackUp in interface BackupClientrepositoryName - String, the repository nameworkspaceName - String, the workspace namebackupDir - path to backup folder on remote serverincr - incremental job period.IOException - transport exceptionBackupExecuteException - backup client internal exceptionpublic String status(String backupId) throws IOException, BackupExecuteException
status in interface BackupClientbackupId - the backup identifier.IOException - transport exception.BackupExecuteException - backup client internal exception.public String stop(String backupId) throws IOException, BackupExecuteException
stop in interface BackupClientbackupId - the backup identifierIOException - transport exceptionBackupExecuteException - backup client internal exceptionpublic String restore(String repositoryName, String workspaceName, String backupId, InputStream config, String backupSetPath, boolean removeExists) throws IOException, BackupExecuteException
restore in interface BackupClientrepositoryName - String, the repository nameworkspaceName - String, the workspace namebackupId - the backup identifierconfig - InputStream contains workspace configurationbackupSetPath - String, path to backup set directory on server sideremoveExists - boolean. if 'true' then will be removed(clean db, value storage, index) existed repository/workspace.IOException - transport exceptionBackupExecuteException - backup client internal exceptionpublic String drop(boolean forceClose, String repositoryName, String workspaceName) throws IOException, BackupExecuteException
drop in interface BackupClientforceClose - force sessions close on repository or workspacerepositoryName - String, the repository nameworkspaceName - String, the workspace nameIOException - transport exceptionBackupExecuteException - backup client internal exceptionpublic String info() throws IOException, BackupExecuteException
info in interface BackupClientIOException - transport exceptionBackupExecuteException - backup client internal exceptionpublic String list() throws IOException, BackupExecuteException
list in interface BackupClientIOException - transport exceptionBackupExecuteException - backup client internal exceptionpublic String listCompleted() throws IOException, BackupExecuteException
listCompleted in interface BackupClientIOException - transport exceptionBackupExecuteException - backup client internal exceptionpublic String restores(String repositoryName, String workspaceName) throws IOException, BackupExecuteException
restores in interface BackupClientrepositoryName - String, the repository nameworkspaceName - String, the workspace nameIOException - transport exceptionBackupExecuteException - backup client internal exceptionCopyright © 2015 eXo Platform SAS. All Rights Reserved.