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.
    • Method Detail

      • startSync

        Y2YSyncCronJobModel startSync​(java.lang.String jobCode,
                                      SyncExecutionService.ExecutionMode executionMode)
        Starts synchronization using Y2YSyncJobModel defined by a jobCode. This method creates instance of Y2YSyncCronJobModel connected to a given Y2YSyncCronJobModel under the hood each time it is called.
        Parameters:
        jobCode - Code of the Y2YSyncJobModel used for synchronization
        executionMode - ExecutionMode (SYNC or ASYNC)
      • startSync

        Y2YSyncCronJobModel startSync​(Y2YSyncJobModel job,
                                      SyncExecutionService.ExecutionMode executionMode)
        Starts synchronization using Y2YSyncJobModel. This method creates instance of Y2YSyncCronJobModel connected to a given Y2YSyncCronJobModel under the hood each time it is called.
        Parameters:
        job - instance of the Y2YSyncJobModel used for synchronization
        executionMode - ExecutionMode (SYNC or ASYNC)
      • getAllSyncJobs

        java.util.Collection<Y2YSyncJobModel> getAllSyncJobs()
        Returns collection of all sync jobs in the system.
      • createSyncJobForDataHub

        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. Models are not saved.