public class CatalogVersionSyncMaster extends AbstractCatalogVersionSyncMaster
| Constructor and Description |
|---|
CatalogVersionSyncMaster(CatalogVersionSyncJob job,
CatalogVersionSyncCronJob cronJob) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doReadSchedules(SyncScheduleReader scheduleReader,
int lastLine) |
void |
doSynchronization() |
protected int |
doSyncTurn() |
void |
dump(SyncSchedule record) |
SyncSchedule |
fetchNext(CatalogVersionSyncWorker worker) |
protected int |
getCurrentDumpCount() |
protected int |
getCurrentDumpDeadlockCount() |
int |
getCurrentTurn() |
boolean |
hasErrors() |
void |
incrementProcessedItemsCount(int weight) |
boolean |
isIgnoreErrors() |
protected void |
notifyError(CatalogVersionSyncWorker worker,
SyncSchedule scheduledItem,
java.lang.Exception exception) |
protected boolean |
notifyFinished(CatalogVersionSyncWorker worker,
SyncSchedule schedule) |
protected void |
notifyWorkerDied(CatalogVersionSyncWorker worker) |
void |
runExclusiveIfNecessary(SyncSchedule schedule,
java.lang.Runnable r) |
protected void |
setFirstTurnTotal(int firstTurnTotal) |
protected void |
waitForEmptyQueue() |
protected void |
waitForWorkersToDie() |
getAllAttributeConfig, getAttributeConfig, getCatalogManager, getCatalogRequiredAttributes, getCatalogVersionAttribute, getCronJob, getJobpublic CatalogVersionSyncMaster(CatalogVersionSyncJob job, CatalogVersionSyncCronJob cronJob)
public final boolean isIgnoreErrors()
public final SyncSchedule fetchNext(CatalogVersionSyncWorker worker) throws java.lang.InterruptedException
java.lang.InterruptedExceptionprotected int getCurrentDumpCount()
protected int getCurrentDumpDeadlockCount()
protected boolean notifyFinished(CatalogVersionSyncWorker worker, SyncSchedule schedule)
public void runExclusiveIfNecessary(SyncSchedule schedule, java.lang.Runnable r)
public void dump(SyncSchedule record)
protected void waitForWorkersToDie()
protected void waitForEmptyQueue()
public void doSynchronization()
throws AbortCronJobException
AbortCronJobExceptionprotected int doSyncTurn()
throws AbortCronJobException
AbortCronJobExceptionprotected void doReadSchedules(SyncScheduleReader scheduleReader, int lastLine) throws AbortCronJobException
AbortCronJobExceptionprotected void notifyError(CatalogVersionSyncWorker worker, SyncSchedule scheduledItem, java.lang.Exception exception)
scheduledItem - the scheduled item which caused the errorexception - the errorjava.lang.RuntimeException - for any runtime exception unless ignore mode is choseJaloSystemException - for all non-runtime exception unless ignore mode is chosenprotected void notifyWorkerDied(CatalogVersionSyncWorker worker)
public boolean hasErrors()
public int getCurrentTurn()
protected void setFirstTurnTotal(int firstTurnTotal)
public void incrementProcessedItemsCount(int weight)
Copyright © 2018 SAP SE. All Rights Reserved.