Class ScanStatusPoller
- java.lang.Object
-
- org.jenkinsci.plugins.fodupload.polling.ScanStatusPoller
-
public class ScanStatusPoller extends Object
-
-
Constructor Summary
Constructors Constructor Description ScanStatusPoller(FodApiConnection apiConnection, int pollingInterval, PrintStream logger)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ScanSummaryDTO
getScanSummary(int releaseId, int scanId)
PollReleaseStatusResult
pollReleaseStatus(int releaseId, int scanId, String correlationId)
Polls the release statusvoid
printScanSummary(ScanSummaryDTO scanSummaryDTO)
-
-
-
Constructor Detail
-
ScanStatusPoller
public ScanStatusPoller(FodApiConnection apiConnection, int pollingInterval, PrintStream logger)
Constructor- Parameters:
apiConnection
- apiConnection connection to usepollingInterval
- the polling interval in minuteslogger
- the PrintStream that will be logged to
-
-
Method Detail
-
pollReleaseStatus
public PollReleaseStatusResult pollReleaseStatus(int releaseId, int scanId, String correlationId) throws IOException, InterruptedException
Polls the release status- Parameters:
releaseId
- release idscanId
- scan id of the releasecorrelationId
- correlation id related to scan id at_return true if status is completed | cancelled.- Throws:
IOException
- in certain casesInterruptedException
- in certain cases
-
printScanSummary
public void printScanSummary(ScanSummaryDTO scanSummaryDTO)
-
getScanSummary
public ScanSummaryDTO getScanSummary(int releaseId, int scanId) throws IOException
- Throws:
IOException
-
-