Class ProgressFacadeImpl
java.lang.Object
com.riadalabs.jira.plugins.insight.channel.external.api.facade.impl.ProgressFacadeImpl
- All Implemented Interfaces:
ProgressFacade
-
Constructor Summary
ConstructorsConstructorDescriptionProgressFacadeImpl
(com.riadalabs.jira.plugins.insight.services.progress.ProgressService progressService) -
Method Summary
Modifier and TypeMethodDescriptionGet the progress for the current progress id.boolean
Determine if the progress is in progress or notboolean
Returns true if the progress is completed.void
waitForProgressToComplete
(Progress progress) Wait for the progress to complete.
-
Constructor Details
-
ProgressFacadeImpl
public ProgressFacadeImpl(com.riadalabs.jira.plugins.insight.services.progress.ProgressService progressService)
-
-
Method Details
-
getProgress
Description copied from interface:ProgressFacade
Get the progress for the current progress id.- Specified by:
getProgress
in interfaceProgressFacade
- Throws:
InsightException
-
isInProgress
Description copied from interface:ProgressFacade
Determine if the progress is in progress or not- Specified by:
isInProgress
in interfaceProgressFacade
- Returns:
- true if the progress is in progress i.e. Insight is working on it
- Throws:
InsightException
-
isProgressFinished
Description copied from interface:ProgressFacade
Returns true if the progress is completed.- Specified by:
isProgressFinished
in interfaceProgressFacade
- Returns:
- will return false if there is no progress with the current id
- Throws:
InsightException
-
waitForProgressToComplete
public void waitForProgressToComplete(Progress progress) throws InsightException, InterruptedException Description copied from interface:ProgressFacade
Wait for the progress to complete. This call will wait for an infinite time or until an interrupted exception is thrown. Will stop waiting if the progress is updated to finished, canceled, error or if there is no progress running as specified by the parameter- Specified by:
waitForProgressToComplete
in interfaceProgressFacade
- Throws:
InsightException
InterruptedException
-