Class SyncResult
- java.lang.Object
-
- de.hybris.platform.catalog.synchronization.SyncResult
-
public class SyncResult extends java.lang.ObjectRepresents results of the synchronization.
-
-
Constructor Summary
Constructors Constructor Description SyncResult(SyncItemCronJobModel syncCronJob)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SyncItemCronJobModelgetCronJob()booleanisError()Gets whether the synchronization was not successfully.booleanisFinished()Gets whether the synchronization is not running anymore.booleanisRunning()Gets whether the synchronization is still running.booleanisSuccessful()Gets whether the synchronization was successfully.
-
-
-
Constructor Detail
-
SyncResult
public SyncResult(SyncItemCronJobModel syncCronJob)
-
-
Method Detail
-
isSuccessful
public boolean isSuccessful()
Gets whether the synchronization was successfully.- Returns:
- true if synchronization was successfully
- Throws:
java.lang.IllegalStateException- in case synchronization is still running.
-
isError
public boolean isError()
Gets whether the synchronization was not successfully.- Returns:
- true if synchronization was not successfully
- Throws:
java.lang.IllegalStateException- in case synchronization is still running.
-
isRunning
public boolean isRunning()
Gets whether the synchronization is still running.- Returns:
- true if synchronization is still running
-
isFinished
public boolean isFinished()
Gets whether the synchronization is not running anymore.- Returns:
- true if synchronization is not running
-
getCronJob
public SyncItemCronJobModel getCronJob()
-
-