public class RssDetectionServiceImpl extends Object implements RssDetectionService
Constructor and Description |
---|
RssDetectionServiceImpl() |
Modifier and Type | Method and Description |
---|---|
ErrorCollection |
canEnqueue(long repositoryId)
Checks whether Bamboo can enqueue RSS detection for the given repository.
|
Future<Boolean> |
enqueue(long repositoryId)
Enqueue RSS detection for repository with the given ID.
|
Future<Boolean> |
enqueue(long repositoryId,
boolean force)
Enqueue RSS detection for repository with the given ID.
|
boolean |
isInProgress(long repositoryId) |
void |
postConstruct() |
boolean |
runRssDetection(long repositoryId,
boolean forced)
Runs Repository-stored Specs detection for the given repository.
|
Future<Boolean> |
shutdown()
Shut down the RSS detection service and the underlying thread pool.
|
@PostConstruct public void postConstruct()
@NotNull public Future<Boolean> enqueue(long repositoryId)
RssDetectionService
enqueue
in interface RssDetectionService
repositoryId
- ID of the linked repositorypublic boolean isInProgress(long repositoryId)
isInProgress
in interface RssDetectionService
@NotNull public Future<Boolean> enqueue(long repositoryId, boolean force)
RssDetectionService
enqueue
in interface RssDetectionService
repositoryId
- ID of the linked repositoryforce
- if true, specs import is executed even if no new commits are found in the repository@NotNull public Future<Boolean> shutdown()
RssDetectionService
shutdown
in interface RssDetectionService
@NotNull public ErrorCollection canEnqueue(long repositoryId)
RssDetectionService
This method will not attempt to connect to the repository. It will only validate repository's configuration and global Bamboo settings.
canEnqueue
in interface RssDetectionService
repositoryId
- ID of the repositorypublic boolean runRssDetection(long repositoryId, boolean forced) throws IOException, RepositoryException
IOException
RepositoryException
Copyright © 2019 Atlassian Software Systems Pty Ltd. All rights reserved.