public interface MigrationService
| Modifier and Type | Method and Description |
|---|---|
Optional<Job> |
cancelExport(long jobId)
Cancels the export job.
|
Optional<Job> |
cancelImport(long jobId)
Cancels the import job.
|
Optional<Job> |
getExportJob(long jobId)
Retrieves the export job.
|
Optional<Job> |
getImportJob(long jobId)
Retrieves the import job.
|
Stream<Scope> |
previewExport(ExportRequest request)
Resolves export items without triggering an export.
|
Page<JobMessage> |
searchExportJobMessages(MigrationJobMessageSearchRequest request,
PageRequest pageRequest)
Finds all
job messages matching the supplied request object for an export job. |
Page<JobMessage> |
searchImportJobMessages(MigrationJobMessageSearchRequest request,
PageRequest pageRequest)
Finds all
job messages matching the supplied request object for an import job. |
Job |
startExport(ExportRequest request)
Export the repositories specified in the
export request. |
Job |
startImport(ImportRequest request)
Import the data contained in the archive specified in the
import request. |
@Nonnull Optional<Job> cancelExport(long jobId)
jobId - the ID of the export jobOptional.empty() if the export job doesn't existIllegalStateException - if the job has been canceled already, or if it had endedJob@Nonnull Optional<Job> cancelImport(long jobId)
jobId - the ID of the import jobOptional.empty() if the import job doesn't existIllegalStateException - if the job has been canceled already, or if it had endedJob@Nonnull Optional<Job> getExportJob(long jobId)
jobId - the ID of the export jobJob@Nonnull Optional<Job> getImportJob(long jobId)
jobId - the ID of the import jobJob@Nonnull Stream<Scope> previewExport(@Nonnull ExportRequest request)
request - a request object describing the repositories to be exported@Nonnull Page<JobMessage> searchExportJobMessages(@Nonnull MigrationJobMessageSearchRequest request, @Nonnull PageRequest pageRequest)
job messages matching the supplied request object for an export job.request - the requestpageRequest - the page requestjob messagesIllegalArgumentException - if the job ID on the request
is not an export job ID@Nonnull Page<JobMessage> searchImportJobMessages(@Nonnull MigrationJobMessageSearchRequest request, @Nonnull PageRequest pageRequest)
job messages matching the supplied request object for an import job.request - the requestpageRequest - the page requestjob messagesIllegalArgumentException - if the job ID on the request
is not an import job ID@Nonnull Job startExport(@Nonnull ExportRequest request)
export request.request - a request object describing the repositories to be exportedMaxConcurrentMigrationJobsException - if the maximum number of concurrent migration jobs are already
running on this nodeExportRequest@Nonnull Job startImport(@Nonnull ImportRequest request)
import request.request - a request object specifying the archive to importMaxConcurrentMigrationJobsException - if the maximum number of concurrent migration jobs are already
running on this nodeImportRequestCopyright © 2019 Atlassian. All rights reserved.