public interface PluginBulkContentCommandFactory
standard commands
which have been optimized
to work on large sets of data at once. The intention is to give SCM implementors an opportunity to
leverage SCM-specific capabilities to gather data more efficiently than making repeated calls to
standard commands.Modifier and Type | Method and Description |
---|---|
com.atlassian.bitbucket.scm.Command<Void> |
commits(com.atlassian.bitbucket.repository.Repository repository,
com.atlassian.bitbucket.scm.bulk.BulkCommitsCommandParameters parameters,
com.atlassian.bitbucket.scm.bulk.BulkCommitCallback callback)
Streams commits from one or more repositories, providing a set of matching repositories for each.
|
com.atlassian.bitbucket.scm.Command<Void> |
contents(com.atlassian.bitbucket.repository.Repository repository,
com.atlassian.bitbucket.scm.bulk.BulkContentCommandParameters parameters,
com.atlassian.bitbucket.scm.bulk.BulkContentCallback callback) |
com.atlassian.bitbucket.scm.Command<Void> |
traverseCommits(com.atlassian.bitbucket.repository.Repository repository,
com.atlassian.bitbucket.scm.bulk.BulkTraverseCommitsCommandParameters parameters,
com.atlassian.bitbucket.scm.bulk.BulkTraversalCallback callback)
Stream commits from one or more repositories, in topological order.
|
@Nonnull com.atlassian.bitbucket.scm.Command<Void> commits(@Nonnull com.atlassian.bitbucket.repository.Repository repository, @Nonnull com.atlassian.bitbucket.scm.bulk.BulkCommitsCommandParameters parameters, @Nonnull com.atlassian.bitbucket.scm.bulk.BulkCommitCallback callback)
Implementors: For performance reasons, it is expected that commits to be streamed will be identified using their
full IDs
. Implementations are not required to attempt
to match short hashes. Where possible, implementations should not scale with the number of repositories
from which commits are being requested. Not matching short IDs is intended to help facilitate such optimization.
repository
- one of the repositories for which commits should be streamedparameters
- parameters describing the commits to streamcallback
- a callback to receive the requested commitscalled
, will stream commits to the provided callback@Nonnull com.atlassian.bitbucket.scm.Command<Void> contents(@Nonnull com.atlassian.bitbucket.repository.Repository repository, @Nonnull com.atlassian.bitbucket.scm.bulk.BulkContentCommandParameters parameters, @Nonnull com.atlassian.bitbucket.scm.bulk.BulkContentCallback callback)
repository
- the repository to get contents fromparameters
- to specify where to get contents fromcallback
- to process resulting content@Nonnull com.atlassian.bitbucket.scm.Command<Void> traverseCommits(@Nonnull com.atlassian.bitbucket.repository.Repository repository, @Nonnull com.atlassian.bitbucket.scm.bulk.BulkTraverseCommitsCommandParameters parameters, @Nonnull com.atlassian.bitbucket.scm.bulk.BulkTraversalCallback callback)
repository
- one of the repositories for which commits should be streamedparameters
- parameters describing the commits to include in the traversalcallback
- a callback to receive the requested commitscalled
, will stream commits, topologically ordered, to the
provided callbackCopyright © 2024 Atlassian. All rights reserved.