public interface

ScmMirrorCommandFactory

com.atlassian.bitbucket.scm.mirror.ScmMirrorCommandFactory

Summary

Public Methods
@Nonnull Command<Void> synchronize(MirrorSyncCommandParameters parameters, MirrorSyncCallback callback)
@Nonnull Command<Void> updateRefs(MirrorUpdateRefsCommandParameters parameters)
Applies the provided ref changes in the repository.

Public Methods

@Nonnull public Command<Void> synchronize (MirrorSyncCommandParameters parameters, MirrorSyncCallback callback)

Parameters
parameters describes what to synchronize
callback callback to process synchronization details
Returns
  • the command

@Nonnull public Command<Void> updateRefs (MirrorUpdateRefsCommandParameters parameters)

Applies the provided ref changes in the repository. If one or more of the updates cannot be performed (e.g. the toHash does not exist in the repository or the fromHash does not match the current value in the repository), the command will apply all ref updates that can be safely applied, then throw a MirrorUpdateRefsCommandFailedException.

Parameters
parameters describes what ref changes to apply
Returns
  • the command