Class InitialLoadService
java.lang.Object
org.jumpmind.symmetric.service.impl.AbstractService
org.jumpmind.symmetric.service.impl.InitialLoadService
- All Implemented Interfaces:
IInitialLoadService,IService
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ISymmetricEngineprotected IExtensionServiceprotected intprotected final org.slf4j.Loggerprotected booleanFields inherited from class org.jumpmind.symmetric.service.impl.AbstractService
parameterService, platform, sqlTemplate, sqlTemplateDirty, symmetricDialect, tablePrefix -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcancelAllLoadsForTarget(String targetNodeId) voidcancelLoad(TableReloadStatus status) protected List<NodeSecurity>protected List<TriggerRouter>getTriggerRoutersForNodeGroup(Map<String, List<TriggerRouter>> triggerRoutersByNodeGroup, String nodeGroupId) protected booleanisOkayToQueueLoad(NodeSecurity nodeSecurity) protected booleanisValidLoadTarget(String targetNodeId) protected voidlogActiveLoadCount(int activeLoadCount, int loadCountToProcess) voidprocessInitialLoadEnabledFlag(Node identity, ProcessInfo processInfo) If a load has been queued up by setting the initial load enabled or reverse initial load enabled flags, then the router service will insert the reload events.protected voidprocessTableRequestLoads(Node source, ProcessInfo processInfo) voidqueueLoads(boolean force) protected voidsendLoadBasedOnConfig(NodeSecurity security, boolean isReverse, ProcessInfo processInfo) Methods inherited from class org.jumpmind.symmetric.service.impl.AbstractService
assertNotNull, buildBatchOrderBy, buildBatchParams, buildBatchWhere, buildBatchWhereFromFilter, close, createSqlReplacementTokens, getJdbcTemplate, getParameterService, getSql, getSymmetricDialect, getTablePrefix, getTargetDialect, getTargetPlatform, getTargetPlatform, isCalledFromSymmetricAdminTool, isSet, isStreamClosedByClient, isSymmetricTable, logOnce, maxDate, readAcks, sendAck, setSqlMap, synchronize, toNodeIds, toNodeIds
-
Field Details
-
log
protected final org.slf4j.Logger log -
engine
-
extensionService
-
syncTriggersBeforeInitialLoadAttempted
protected boolean syncTriggersBeforeInitialLoadAttempted -
lastLoadCountToProcess
protected int lastLoadCountToProcess
-
-
Constructor Details
-
InitialLoadService
-
-
Method Details
-
queueLoads
public void queueLoads(boolean force) - Specified by:
queueLoadsin interfaceIInitialLoadService
-
cancelLoad
- Specified by:
cancelLoadin interfaceIInitialLoadService
-
cancelAllLoadsForTarget
- Specified by:
cancelAllLoadsForTargetin interfaceIInitialLoadService
-
processInitialLoadEnabledFlag
If a load has been queued up by setting the initial load enabled or reverse initial load enabled flags, then the router service will insert the reload events. This process will not run at the same time sync triggers is running. -
sendLoadBasedOnConfig
protected void sendLoadBasedOnConfig(NodeSecurity security, boolean isReverse, ProcessInfo processInfo) -
processTableRequestLoads
-
logActiveLoadCount
protected void logActiveLoadCount(int activeLoadCount, int loadCountToProcess) -
getTriggerRoutersForNodeGroup
protected List<TriggerRouter> getTriggerRoutersForNodeGroup(Map<String, List<TriggerRouter>> triggerRoutersByNodeGroup, String nodeGroupId) -
findNodesThatAreReadyForInitialLoad
-
isOkayToQueueLoad
-
isValidLoadTarget
-