Class DefaultSnCronJobProgressTrackerFactory.SnCronJobProgressTracker
java.lang.Object
de.hybris.platform.searchservices.core.service.impl.DefaultSnCronJobProgressTrackerFactory.SnCronJobProgressTracker
- All Implemented Interfaces:
SnCloseableProgressTracker,SnProgressTracker,Closeable,AutoCloseable
- Enclosing class:
- DefaultSnCronJobProgressTrackerFactory
protected class DefaultSnCronJobProgressTrackerFactory.SnCronJobProgressTracker
extends Object
implements SnCloseableProgressTracker
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Returns the current progress.booleanChecks whether cancellation was requested or not.protected CronJobModelvoidRequests cancellation.voidsetProgress(Double value) Sets the current progress.
-
Field Details
-
cronJobCode
-
cronJobProgressTracker
-
-
Constructor Details
-
SnCronJobProgressTracker
-
-
Method Details
-
getProgress
Description copied from interface:SnProgressTrackerReturns the current progress.- Specified by:
getProgressin interfaceSnProgressTracker- Returns:
- the current progress
-
setProgress
Description copied from interface:SnProgressTrackerSets the current progress.- Specified by:
setProgressin interfaceSnProgressTracker
-
requestCancellation
public void requestCancellation()Description copied from interface:SnProgressTrackerRequests cancellation.- Specified by:
requestCancellationin interfaceSnProgressTracker
-
isCancellationRequested
public boolean isCancellationRequested()Description copied from interface:SnProgressTrackerChecks whether cancellation was requested or not.- Specified by:
isCancellationRequestedin interfaceSnProgressTracker- Returns:
trueif cancellation was requested,falseotherwise
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
loadCronJob
-