Package de.hybris.y2ysync.services.impl
Class DefaultSyncExecutionService
java.lang.Object
de.hybris.y2ysync.services.impl.DefaultSyncExecutionService
- All Implemented Interfaces:
SyncExecutionService
-
Nested Class Summary
Nested classes/interfaces inherited from interface de.hybris.y2ysync.services.SyncExecutionService
SyncExecutionService.ExecutionMode -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateSyncJobForDataHub(String code, Y2YStreamConfigurationContainerModel container) Creates sync job configured for DataHub sync for a givencontainer.createSyncJobForDataHub(String code, Y2YStreamConfigurationContainerModel container, String dataHubUrl) Creates sync job configured for DataHub sync for a givencontainerwith customdataHubUrl.createSyncJobForZip(String code, Y2YStreamConfigurationContainerModel container) Creates sync job configured for Zip sync for a givencontainer.Returns collection of all sync jobs in the system.Returns collection of all sync jobs for given Y2YStreamConfigurationContainer.voidsetCronJobService(CronJobService cronJobService) voidsetFlexibleSearchService(FlexibleSearchService flexibleSearchService) voidsetModelService(ModelService modelService) startSync(Y2YSyncJobModel job, SyncExecutionService.ExecutionMode executionMode) Starts synchronization usingY2YSyncJobModel.startSync(String jobCode, SyncExecutionService.ExecutionMode executionMode) Starts synchronization usingY2YSyncJobModeldefined by ajobCode.
-
Constructor Details
-
DefaultSyncExecutionService
public DefaultSyncExecutionService()
-
-
Method Details
-
startSync
public Y2YSyncCronJobModel startSync(String jobCode, SyncExecutionService.ExecutionMode executionMode) Description copied from interface:SyncExecutionServiceStarts synchronization usingY2YSyncJobModeldefined by ajobCode. This method creates instance ofY2YSyncCronJobModelconnected to a givenY2YSyncCronJobModelunder the hood each time it is called.- Specified by:
startSyncin interfaceSyncExecutionService- Parameters:
jobCode- Code of theY2YSyncJobModelused for synchronizationexecutionMode-ExecutionMode(SYNC or ASYNC)
-
startSync
public Y2YSyncCronJobModel startSync(Y2YSyncJobModel job, SyncExecutionService.ExecutionMode executionMode) Description copied from interface:SyncExecutionServiceStarts synchronization usingY2YSyncJobModel. This method creates instance ofY2YSyncCronJobModelconnected to a givenY2YSyncCronJobModelunder the hood each time it is called.- Specified by:
startSyncin interfaceSyncExecutionService- Parameters:
job- instance of theY2YSyncJobModelused for synchronizationexecutionMode-ExecutionMode(SYNC or ASYNC)
-
getAllSyncJobs
Description copied from interface:SyncExecutionServiceReturns collection of all sync jobs in the system.- Specified by:
getAllSyncJobsin interfaceSyncExecutionService
-
getSyncJobsForContainer
public Collection<Y2YSyncJobModel> getSyncJobsForContainer(Y2YStreamConfigurationContainerModel container) Description copied from interface:SyncExecutionServiceReturns collection of all sync jobs for given Y2YStreamConfigurationContainer.- Specified by:
getSyncJobsForContainerin interfaceSyncExecutionService
-
createSyncJobForDataHub
public Y2YSyncJobModel createSyncJobForDataHub(String code, Y2YStreamConfigurationContainerModel container) Description copied from interface:SyncExecutionServiceCreates sync job configured for DataHub sync for a givencontainer. Models are not saved.- Specified by:
createSyncJobForDataHubin interfaceSyncExecutionService
-
createSyncJobForDataHub
public Y2YSyncJobModel createSyncJobForDataHub(String code, Y2YStreamConfigurationContainerModel container, String dataHubUrl) Description copied from interface:SyncExecutionServiceCreates sync job configured for DataHub sync for a givencontainerwith customdataHubUrl. Models are not saved.- Specified by:
createSyncJobForDataHubin interfaceSyncExecutionService
-
createSyncJobForZip
public Y2YSyncJobModel createSyncJobForZip(String code, Y2YStreamConfigurationContainerModel container) Description copied from interface:SyncExecutionServiceCreates sync job configured for Zip sync for a givencontainer.- Specified by:
createSyncJobForZipin interfaceSyncExecutionService
-
setModelService
-
setCronJobService
-
setFlexibleSearchService
-