Class BitbucketServerStateProvider


  • public class BitbucketServerStateProvider
    extends Object
    Provides Bitbucket instance state.
    Since:
    9.5
    • Constructor Detail

      • BitbucketServerStateProvider

        @Inject
        public BitbucketServerStateProvider​(com.atlassian.stash.rest.client.applinks.ApplinkStashClientFactory stashClientFactory)
    • Method Detail

      • getStateError

        @NotNull
        public @NotNull Optional<String> getStateError​(@NotNull
                                                       @NotNull VcsRepositoryData repositoryData)
        Gets the Bitbucket instance state error message if any. If nothing is returned, the instance is operational and in a RUNNING state.
        Parameters:
        repositoryData - repository data to check
        Returns:
        error message if the one exists, empty otherwise