Example #1
0
 @SuppressWarnings("deprecation")
 protected static void performSynchronization(final SyncItemJob job) {
   final SyncItemCronJob cronJob = job.newExecution();
   cronJob.setLogToDatabase(false);
   cronJob.setLogToFile(false);
   cronJob.setForceUpdate(false);
   if (LOG.isDebugEnabled()) {
     LOG.debug(
         "Generating cronjob "
             + cronJob.getCode()
             + " to synchronize staged to online version, configuring ...");
   }
   job.configureFullVersionSync(cronJob);
   if (LOG.isDebugEnabled()) {
     LOG.debug("Starting synchronization, this may take a while ...");
   }
   job.perform(cronJob, true);
 }