use of jetbrains.buildServer.serverSide.maintenance.BackupProcess in project teamcity-rest by JetBrains.
the class ServerRequest method getBackupStatus.
/**
* @return current backup status
*/
@GET
@Path("/backup")
@Produces({ "text/plain" })
@ApiOperation(value = "Get the latest backup status.", nickname = "getBackupStatus")
public String getBackupStatus() {
BackupProcessManager backupManager = myServiceLocator.getSingletonService(BackupProcessManager.class);
final BackupProcess backupProcess = backupManager.getCurrentBackupProcess();
if (backupProcess == null) {
return "Idle";
}
return backupProcess.getProgressStatus().name();
}
Aggregations