Package de.hybris.y2ysync.services
Interface SyncExecutionService
- All Known Implementing Classes:
DefaultSyncExecutionService
public interface SyncExecutionService
Service responsible for starting Y2Y synchronization as well for creating sync jobs for stream configuration
containers.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enumDetermines how the underlyingY2YSyncCronJobModelshould be executed - asynchronous or synchronous. -
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.startSync(Y2YSyncJobModel job, SyncExecutionService.ExecutionMode executionMode) Starts synchronization usingY2YSyncJobModel.startSync(String jobCode, SyncExecutionService.ExecutionMode executionMode) Starts synchronization usingY2YSyncJobModeldefined by ajobCode.
-
Method Details
-
startSync
Starts synchronization usingY2YSyncJobModeldefined by ajobCode. This method creates instance ofY2YSyncCronJobModelconnected to a givenY2YSyncCronJobModelunder the hood each time it is called.- Parameters:
jobCode- Code of theY2YSyncJobModelused for synchronizationexecutionMode-ExecutionMode(SYNC or ASYNC)
-
startSync
Y2YSyncCronJobModel startSync(Y2YSyncJobModel job, SyncExecutionService.ExecutionMode executionMode) Starts synchronization usingY2YSyncJobModel. This method creates instance ofY2YSyncCronJobModelconnected to a givenY2YSyncCronJobModelunder the hood each time it is called.- Parameters:
job- instance of theY2YSyncJobModelused for synchronizationexecutionMode-ExecutionMode(SYNC or ASYNC)
-
getAllSyncJobs
Collection<Y2YSyncJobModel> getAllSyncJobs()Returns collection of all sync jobs in the system. -
getSyncJobsForContainer
Returns collection of all sync jobs for given Y2YStreamConfigurationContainer. -
createSyncJobForDataHub
Y2YSyncJobModel createSyncJobForDataHub(String code, Y2YStreamConfigurationContainerModel container) Creates sync job configured for DataHub sync for a givencontainer. Models are not saved. -
createSyncJobForDataHub
Y2YSyncJobModel createSyncJobForDataHub(String code, Y2YStreamConfigurationContainerModel container, String dataHubUrl) Creates sync job configured for DataHub sync for a givencontainerwith customdataHubUrl. Models are not saved. -
createSyncJobForZip
Creates sync job configured for Zip sync for a givencontainer.
-