public class DefaultSyncExecutionService extends java.lang.Object implements SyncExecutionService
SyncExecutionService.ExecutionMode| Constructor and Description |
|---|
DefaultSyncExecutionService() |
| Modifier and Type | Method and Description |
|---|---|
Y2YSyncJobModel |
createSyncJobForDataHub(java.lang.String code,
Y2YStreamConfigurationContainerModel container)
Creates sync job configured for DataHub sync for a given
container. |
Y2YSyncJobModel |
createSyncJobForDataHub(java.lang.String code,
Y2YStreamConfigurationContainerModel container,
java.lang.String dataHubUrl)
Creates sync job configured for DataHub sync for a given
container with custom
dataHubUrl. |
Y2YSyncJobModel |
createSyncJobForZip(java.lang.String code,
Y2YStreamConfigurationContainerModel container)
Creates sync job configured for Zip sync for a given
container. |
java.util.Collection<Y2YSyncJobModel> |
getAllSyncJobs()
Returns collection of all sync jobs in the system.
|
java.util.Collection<Y2YSyncJobModel> |
getSyncJobsForContainer(Y2YStreamConfigurationContainerModel container)
Returns collection of all sync jobs for given Y2YStreamConfigurationContainer.
|
void |
setCronJobService(CronJobService cronJobService) |
void |
setFlexibleSearchService(FlexibleSearchService flexibleSearchService) |
void |
setModelService(ModelService modelService) |
Y2YSyncCronJobModel |
startSync(java.lang.String jobCode,
SyncExecutionService.ExecutionMode executionMode)
Starts synchronization using
Y2YSyncJobModel defined by a jobCode. |
Y2YSyncCronJobModel |
startSync(Y2YSyncJobModel job,
SyncExecutionService.ExecutionMode executionMode)
Starts synchronization using
Y2YSyncJobModel. |
public Y2YSyncCronJobModel startSync(java.lang.String jobCode, SyncExecutionService.ExecutionMode executionMode)
SyncExecutionServiceY2YSyncJobModel defined by a jobCode. This method creates
instance of Y2YSyncCronJobModel connected to a given Y2YSyncCronJobModel under the hood
each time it is called.startSync in interface SyncExecutionServicejobCode - Code of the Y2YSyncJobModel used for synchronizationexecutionMode - ExecutionMode (SYNC or ASYNC)public Y2YSyncCronJobModel startSync(Y2YSyncJobModel job, SyncExecutionService.ExecutionMode executionMode)
SyncExecutionServiceY2YSyncJobModel. This method creates instance of
Y2YSyncCronJobModel connected to a given Y2YSyncCronJobModel under the hood each time it
is called.startSync in interface SyncExecutionServicejob - instance of the Y2YSyncJobModel used for synchronizationexecutionMode - ExecutionMode (SYNC or ASYNC)public java.util.Collection<Y2YSyncJobModel> getAllSyncJobs()
SyncExecutionServicegetAllSyncJobs in interface SyncExecutionServicepublic java.util.Collection<Y2YSyncJobModel> getSyncJobsForContainer(Y2YStreamConfigurationContainerModel container)
SyncExecutionServicegetSyncJobsForContainer in interface SyncExecutionServicepublic Y2YSyncJobModel createSyncJobForDataHub(java.lang.String code, Y2YStreamConfigurationContainerModel container)
SyncExecutionServicecontainer. Models are not saved.createSyncJobForDataHub in interface SyncExecutionServicepublic Y2YSyncJobModel createSyncJobForDataHub(java.lang.String code, Y2YStreamConfigurationContainerModel container, java.lang.String dataHubUrl)
SyncExecutionServicecontainer with custom
dataHubUrl. Models are not saved.createSyncJobForDataHub in interface SyncExecutionServicepublic Y2YSyncJobModel createSyncJobForZip(java.lang.String code, Y2YStreamConfigurationContainerModel container)
SyncExecutionServicecontainer.createSyncJobForZip in interface SyncExecutionServicepublic void setModelService(ModelService modelService)
public void setCronJobService(CronJobService cronJobService)
public void setFlexibleSearchService(FlexibleSearchService flexibleSearchService)
Copyright © 2018 SAP SE. All Rights Reserved.