Class IncomingBatchService
java.lang.Object
org.jumpmind.symmetric.service.impl.AbstractService
org.jumpmind.symmetric.service.impl.IncomingBatchService
- All Implemented Interfaces:
IIncomingBatchService,IService
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected IClusterServiceprotected Map<String,Collection<String>> Fields inherited from class org.jumpmind.symmetric.service.impl.AbstractService
log, parameterService, platform, sqlTemplate, sqlTemplateDirty, symmetricDialect, tablePrefix -
Constructor Summary
ConstructorsConstructorDescriptionIncomingBatchService(IParameterService parameterService, ISymmetricDialect symmetricDialect, IClusterService clusterService) -
Method Summary
Modifier and TypeMethodDescriptionbooleanprotected StringBuilderbuildStatusList(Object[] args, AbstractBatch.Status... statuses) protected booleancontainsOnlyErrorStatus(List<AbstractBatch.Status> statuses) intintcountIncomingBatchesInError(String channelId) intintdeleteIncomingBatch(IncomingBatch batch) findIncomingBatch(long batchId, String nodeId) findIncomingBatchErrors(int maxRows) findIncomingBatchSummary(AbstractBatch.Status... statuses) findIncomingBatchSummaryByChannel(AbstractBatch.Status... statuses) findIncomingBatchSummaryByNode(String nodeId, Date sinceCreateTime, AbstractBatch.Status... statuses) findIncomingBatchSummaryByNodeAndChannel(String nodeId, String channelId, Date sinceCreateTime, AbstractBatch.Status... statuses) getReadyQueues(String sourceNodeId) voidinsertIncomingBatch(ISqlTransaction transaction, IncomingBatch batch) voidinsertIncomingBatch(IncomingBatch batch) booleanlistIncomingBatches(List<String> nodeIds, List<String> channels, List<AbstractBatch.Status> statuses, List<Long> loads, Date startAtCreateTime, Date startAtLastUpdateTime, int maxRowsToRetrieve, boolean ascending) listIncomingBatchesInErrorFor(String nodeId) listIncomingBatchesWithLimit(int offset, int limit, List<FilterCriterion> filter, String orderColumn, String orderDirection) listIncomingBatchTimes(List<String> nodeIds, List<String> channels, List<AbstractBatch.Status> statuses, List<Long> loads, boolean ascending) voidmarkIncomingBatchesOk(String nodeId) voidvoidremovingIncomingBatches(String nodeId) voidsetReadyQueues(String sourceNodeId, Collection<String> queues) toStringList(List<AbstractBatch.Status> statuses) intupdateIncomingBatch(ISqlTransaction transaction, IncomingBatch batch) intupdateIncomingBatch(IncomingBatch batch) 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
-
clusterService
-
readyQueuesCache
-
-
Constructor Details
-
IncomingBatchService
public IncomingBatchService(IParameterService parameterService, ISymmetricDialect symmetricDialect, IClusterService clusterService)
-
-
Method Details
-
getNodesInError
- Specified by:
getNodesInErrorin interfaceIIncomingBatchService
-
refreshIncomingBatch
- Specified by:
refreshIncomingBatchin interfaceIIncomingBatchService
-
findIncomingBatch
- Specified by:
findIncomingBatchin interfaceIIncomingBatchService
-
countIncomingBatchesInError
public int countIncomingBatchesInError()- Specified by:
countIncomingBatchesInErrorin interfaceIIncomingBatchService
-
countIncomingBatchesInError
- Specified by:
countIncomingBatchesInErrorin interfaceIIncomingBatchService
-
getIncomingBatchesLatestUpdateSql
- Specified by:
getIncomingBatchesLatestUpdateSqlin interfaceIIncomingBatchService
-
findIncomingBatchErrors
- Specified by:
findIncomingBatchErrorsin interfaceIIncomingBatchService
-
markIncomingBatchesOk
- Specified by:
markIncomingBatchesOkin interfaceIIncomingBatchService
-
removingIncomingBatches
- Specified by:
removingIncomingBatchesin interfaceIIncomingBatchService
-
listIncomingBatchesInErrorFor
- Specified by:
listIncomingBatchesInErrorForin interfaceIIncomingBatchService
-
isRecordOkBatchesEnabled
public boolean isRecordOkBatchesEnabled()- Specified by:
isRecordOkBatchesEnabledin interfaceIIncomingBatchService
-
listIncomingBatchTimes
public List<Date> listIncomingBatchTimes(List<String> nodeIds, List<String> channels, List<AbstractBatch.Status> statuses, List<Long> loads, boolean ascending) - Specified by:
listIncomingBatchTimesin interfaceIIncomingBatchService
-
listIncomingBatches
public List<IncomingBatch> listIncomingBatches(List<String> nodeIds, List<String> channels, List<AbstractBatch.Status> statuses, List<Long> loads, Date startAtCreateTime, Date startAtLastUpdateTime, int maxRowsToRetrieve, boolean ascending) - Specified by:
listIncomingBatchesin interfaceIIncomingBatchService
-
listIncomingBatchesWithLimit
public List<IncomingBatch> listIncomingBatchesWithLimit(int offset, int limit, List<FilterCriterion> filter, String orderColumn, String orderDirection) - Specified by:
listIncomingBatchesWithLimitin interfaceIIncomingBatchService
-
countIncomingBatchesWithLimit
- Specified by:
countIncomingBatchesWithLimitin interfaceIIncomingBatchService
-
containsOnlyErrorStatus
-
toStringList
-
acquireIncomingBatch
- Specified by:
acquireIncomingBatchin interfaceIIncomingBatchService
-
insertIncomingBatch
- Specified by:
insertIncomingBatchin interfaceIIncomingBatchService
-
insertIncomingBatch
- Specified by:
insertIncomingBatchin interfaceIIncomingBatchService
-
deleteIncomingBatch
- Specified by:
deleteIncomingBatchin interfaceIIncomingBatchService
-
updateIncomingBatch
- Specified by:
updateIncomingBatchin interfaceIIncomingBatchService
-
updateIncomingBatch
- Specified by:
updateIncomingBatchin interfaceIIncomingBatchService
-
findMaxBatchIdsByChannel
- Specified by:
findMaxBatchIdsByChannelin interfaceIIncomingBatchService
-
findIncomingBatchSummaryByNode
public List<IncomingBatchSummary> findIncomingBatchSummaryByNode(String nodeId, Date sinceCreateTime, AbstractBatch.Status... statuses) - Specified by:
findIncomingBatchSummaryByNodein interfaceIIncomingBatchService
-
buildStatusList
-
findIncomingBatchSummaryByChannel
public List<IncomingBatchSummary> findIncomingBatchSummaryByChannel(AbstractBatch.Status... statuses) - Specified by:
findIncomingBatchSummaryByChannelin interfaceIIncomingBatchService
-
findIncomingBatchSummary
- Specified by:
findIncomingBatchSummaryin interfaceIIncomingBatchService
-
findIncomingBatchSummaryByNodeAndChannel
public List<IncomingBatchSummary> findIncomingBatchSummaryByNodeAndChannel(String nodeId, String channelId, Date sinceCreateTime, AbstractBatch.Status... statuses) - Specified by:
findIncomingBatchSummaryByNodeAndChannelin interfaceIIncomingBatchService
-
findLastUpdatedByChannel
- Specified by:
findLastUpdatedByChannelin interfaceIIncomingBatchService
-
getAllBatches
- Specified by:
getAllBatchesin interfaceIIncomingBatchService
-
getReadyQueues
- Specified by:
getReadyQueuesin interfaceIIncomingBatchService
-
setReadyQueues
- Specified by:
setReadyQueuesin interfaceIIncomingBatchService
-