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 ISymmetricEngine
protected IExtensionService
protected int
protected final org.slf4j.Logger
protected boolean
Fields inherited from class org.jumpmind.symmetric.service.impl.AbstractService
parameterService, platform, sqlTemplate, sqlTemplateDirty, symmetricDialect, tablePrefix
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
cancelAllLoadsForTarget
(String targetNodeId) void
cancelLoad
(TableReloadStatus status) protected List<NodeSecurity>
protected List<TriggerRouter>
getTriggerRoutersForNodeGroup
(Map<String, List<TriggerRouter>> triggerRoutersByNodeGroup, String nodeGroupId) protected boolean
isOkayToQueueLoad
(NodeSecurity nodeSecurity) protected boolean
isValidLoadTarget
(String targetNodeId) protected void
logActiveLoadCount
(int activeLoadCount, int loadCountToProcess) void
processInitialLoadEnabledFlag
(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 void
processTableRequestLoads
(Node source, ProcessInfo processInfo) void
queueLoads
(boolean force) protected void
sendLoadBasedOnConfig
(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:
queueLoads
in interfaceIInitialLoadService
-
cancelLoad
- Specified by:
cancelLoad
in interfaceIInitialLoadService
-
cancelAllLoadsForTarget
- Specified by:
cancelAllLoadsForTarget
in 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
-