public interface

IntegrityCheckCallback

com.atlassian.bitbucket.scm.integrity.IntegrityCheckCallback

Class Overview

Used by an SCM to report integrity check results as they become available.

Summary

Public Methods
void onError(Repository repository, KeyedMessage message)
Called when the SCM encounters a problem while checking the integrity of a specific repository.
void onError(KeyedMessage message)
Called when the SCM encounters a problem that cannot be expressed in terms of pull requests or repositories.
void onExtraPullRequest(Repository repository, long pullRequestId)
Invoked when the SCM encounters a pull request that does not exist according to the host application.
void onMissingPullRequest(Repository repository, long pullRequestId)
Invoked when the required SCM-level data for a pull request is missing.

Public Methods

public void onError (Repository repository, KeyedMessage message)

Called when the SCM encounters a problem while checking the integrity of a specific repository.

Parameters
repository the repository in which the error originated
message a detailed description that can be used by administrators to debug the problem

public void onError (KeyedMessage message)

Called when the SCM encounters a problem that cannot be expressed in terms of pull requests or repositories.

Parameters
message a detailed description that can be used by administrators to debug the problem

public void onExtraPullRequest (Repository repository, long pullRequestId)

Invoked when the SCM encounters a pull request that does not exist according to the host application.

Parameters
repository the repository in which the pull request resides
pullRequestId the ID of the pull request

public void onMissingPullRequest (Repository repository, long pullRequestId)

Invoked when the required SCM-level data for a pull request is missing.

Parameters
repository the repository in which the pull request resides
pullRequestId the ID of the pull request