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 IClusterService
protected 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 TypeMethodDescriptionboolean
protected StringBuilder
buildStatusList
(Object[] args, AbstractBatch.Status... statuses) protected boolean
containsOnlyErrorStatus
(List<AbstractBatch.Status> statuses) int
int
countIncomingBatchesInError
(String channelId) int
int
deleteIncomingBatch
(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) void
insertIncomingBatch
(ISqlTransaction transaction, IncomingBatch batch) void
insertIncomingBatch
(IncomingBatch batch) boolean
listIncomingBatches
(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) void
markIncomingBatchesOk
(String nodeId) void
void
removingIncomingBatches
(String nodeId) void
setReadyQueues
(String sourceNodeId, Collection<String> queues) toStringList
(List<AbstractBatch.Status> statuses) int
updateIncomingBatch
(ISqlTransaction transaction, IncomingBatch batch) int
updateIncomingBatch
(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:
getNodesInError
in interfaceIIncomingBatchService
-
refreshIncomingBatch
- Specified by:
refreshIncomingBatch
in interfaceIIncomingBatchService
-
findIncomingBatch
- Specified by:
findIncomingBatch
in interfaceIIncomingBatchService
-
countIncomingBatchesInError
public int countIncomingBatchesInError()- Specified by:
countIncomingBatchesInError
in interfaceIIncomingBatchService
-
countIncomingBatchesInError
- Specified by:
countIncomingBatchesInError
in interfaceIIncomingBatchService
-
getIncomingBatchesLatestUpdateSql
- Specified by:
getIncomingBatchesLatestUpdateSql
in interfaceIIncomingBatchService
-
findIncomingBatchErrors
- Specified by:
findIncomingBatchErrors
in interfaceIIncomingBatchService
-
markIncomingBatchesOk
- Specified by:
markIncomingBatchesOk
in interfaceIIncomingBatchService
-
removingIncomingBatches
- Specified by:
removingIncomingBatches
in interfaceIIncomingBatchService
-
listIncomingBatchesInErrorFor
- Specified by:
listIncomingBatchesInErrorFor
in interfaceIIncomingBatchService
-
isRecordOkBatchesEnabled
public boolean isRecordOkBatchesEnabled()- Specified by:
isRecordOkBatchesEnabled
in interfaceIIncomingBatchService
-
listIncomingBatchTimes
public List<Date> listIncomingBatchTimes(List<String> nodeIds, List<String> channels, List<AbstractBatch.Status> statuses, List<Long> loads, boolean ascending) - Specified by:
listIncomingBatchTimes
in 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:
listIncomingBatches
in interfaceIIncomingBatchService
-
listIncomingBatchesWithLimit
public List<IncomingBatch> listIncomingBatchesWithLimit(int offset, int limit, List<FilterCriterion> filter, String orderColumn, String orderDirection) - Specified by:
listIncomingBatchesWithLimit
in interfaceIIncomingBatchService
-
countIncomingBatchesWithLimit
- Specified by:
countIncomingBatchesWithLimit
in interfaceIIncomingBatchService
-
containsOnlyErrorStatus
-
toStringList
-
acquireIncomingBatch
- Specified by:
acquireIncomingBatch
in interfaceIIncomingBatchService
-
insertIncomingBatch
- Specified by:
insertIncomingBatch
in interfaceIIncomingBatchService
-
insertIncomingBatch
- Specified by:
insertIncomingBatch
in interfaceIIncomingBatchService
-
deleteIncomingBatch
- Specified by:
deleteIncomingBatch
in interfaceIIncomingBatchService
-
updateIncomingBatch
- Specified by:
updateIncomingBatch
in interfaceIIncomingBatchService
-
updateIncomingBatch
- Specified by:
updateIncomingBatch
in interfaceIIncomingBatchService
-
findMaxBatchIdsByChannel
- Specified by:
findMaxBatchIdsByChannel
in interfaceIIncomingBatchService
-
findIncomingBatchSummaryByNode
public List<IncomingBatchSummary> findIncomingBatchSummaryByNode(String nodeId, Date sinceCreateTime, AbstractBatch.Status... statuses) - Specified by:
findIncomingBatchSummaryByNode
in interfaceIIncomingBatchService
-
buildStatusList
-
findIncomingBatchSummaryByChannel
public List<IncomingBatchSummary> findIncomingBatchSummaryByChannel(AbstractBatch.Status... statuses) - Specified by:
findIncomingBatchSummaryByChannel
in interfaceIIncomingBatchService
-
findIncomingBatchSummary
- Specified by:
findIncomingBatchSummary
in interfaceIIncomingBatchService
-
findIncomingBatchSummaryByNodeAndChannel
public List<IncomingBatchSummary> findIncomingBatchSummaryByNodeAndChannel(String nodeId, String channelId, Date sinceCreateTime, AbstractBatch.Status... statuses) - Specified by:
findIncomingBatchSummaryByNodeAndChannel
in interfaceIIncomingBatchService
-
findLastUpdatedByChannel
- Specified by:
findLastUpdatedByChannel
in interfaceIIncomingBatchService
-
getAllBatches
- Specified by:
getAllBatches
in interfaceIIncomingBatchService
-
getReadyQueues
- Specified by:
getReadyQueues
in interfaceIIncomingBatchService
-
setReadyQueues
- Specified by:
setReadyQueues
in interfaceIIncomingBatchService
-