Interface ProgressFacade
- All Known Implementing Classes:
ProgressFacadeImpl
@PublicApi
public interface ProgressFacade
Exposes methods used to track batch processes in Assets
-
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.
-
Method Details
-
getProgress
Get the progress for the current progress id.- Throws:
InsightException
-
isInProgress
Determine if the progress is in progress or not- Returns:
- true if the progress is in progress i.e. Insight is working on it
- Throws:
InsightException
-
isProgressFinished
Returns true if the progress is completed.- Returns:
- will return false if there is no progress with the current id
- Throws:
InsightException
-
waitForProgressToComplete
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- Throws:
InterruptedException
InsightException
-