Package org.jumpmind.symmetric.service
Interface IOutgoingBatchService
- All Known Implementing Classes:
OutgoingBatchService
public interface IOutgoingBatchService
This service provides an API to access to the outgoing batch table.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanareAllLoadBatchesComplete(String nodeId) intcancelLoadBatches(long loadId) voidcopyOutgoingBatches(String channelId, long startBatchId, String fromNodeId, String toNodeId) intcountOutgoingBatches(List<String> nodeIds, List<String> channels, List<AbstractBatch.Status> statuses, List<Long> loads) intintcountOutgoingBatchesInError(String channelId) intintcountOutgoingBatchesUnsent(String channelId) intintint[]intcountUnsentBatchesByTargetNode(String nodeId, boolean includeHeartbeats) longcountUnsentRowsByTargetNode(String nodeId) findOutgoingBatch(long batchId, String nodeId) findOutgoingBatchSummary(AbstractBatch.Status... statuses) findOutgoingBatchSummaryByChannel(AbstractBatch.Status... statuses) findOutgoingBatchSummaryByNode(String nodeId, Date sinceCreateTime, AbstractBatch.Status... statuses) getOutgoingBatchByLoad(long loadI) getOutgoingBatchByLoadRangeAndTable(long loadId, long startBatchId, long endBatchId, String tableName) getOutgoingBatchErrors(int maxRows) getOutgoingBatches(String nodeId, boolean includeDisabledChannels) getOutgoingBatches(String nodeId, String channelId, boolean includeDisabledChannels) getOutgoingBatches(String nodeId, String channelThread, NodeGroupLinkAction eventAction, NodeGroupLinkAction defaultEventAction, boolean includeDisabledChannels) getOutgoingBatchRange(long startBatchId, long endBatchId) getOutgoingBatchRange(String nodeId, Date startDate, Date endDate, String... channels) voidinsertOutgoingBatch(ISqlTransaction transaction, OutgoingBatch outgoingBatch) voidinsertOutgoingBatch(OutgoingBatch outgoingBatch) voidinsertOutgoingBatches(ISqlTransaction transaction, List<OutgoingBatch> batches, int flushSize, boolean isCommon) booleanisInitialLoadComplete(String nodeId) booleanisUnsentDataOnChannelForNode(String channelId, String nodeId) listOutgoingBatches(List<String> nodeIds, List<String> channels, List<AbstractBatch.Status> statuses, List<Long> loads, long startAtBatchId, Date startAtLastUpdateTime, int rowsExpected, boolean ascending) listOutgoingBatchesWithLimit(int offset, int limit, List<FilterCriterion> filter, String orderColumn, String orderDirection) voidmarkAllAsSentForNode(String nodeId, boolean includeConfigChannel) voidmarkAllConfigAsSentForNode(String nodeId) voidvoidvoidupdateOutgoingBatch(ISqlTransaction transaction, OutgoingBatch outgoingBatch) voidupdateOutgoingBatch(OutgoingBatch batch) voidupdateOutgoingBatches(List<OutgoingBatch> batches) voidupdateOutgoingBatches(ISqlTransaction transaction, List<OutgoingBatch> batches, int flushSize) voidupdateOutgoingBatchStatus(ISqlTransaction transaction, AbstractBatch.Status status, String nodeId, long startBatchId, long endBatchId) voidupdateOutgoingError(long batchId, String nodeId) voidupdateOutgoingFinalizeBatchStatusByStatus(ISqlTransaction transaction, String targetNodeId, long loadId, long minBatchId, String fromStatus, String toStatus) voidupdateOutgoingLoadBatchStatusByStatus(ISqlTransaction transaction, String targetNodeId, long loadId, long startDataBatchId, long endDataBatchId, String fromStatus, String toStatus) voidupdateOutgoingSetupBatchStatusByStatus(ISqlTransaction transaction, String targetNodeId, long loadId, long maxBatchId, String fromStatus, String toStatus)
-
Method Details
-
getNodesInError
-
updateOutgoingError
-
markAllAsSentForNode
-
markAllConfigAsSentForNode
-
updateAbandonedRoutingBatches
void updateAbandonedRoutingBatches() -
findOutgoingBatch
-
getOutgoingBatches
-
getOutgoingBatches
OutgoingBatches getOutgoingBatches(String nodeId, String channelId, boolean includeDisabledChannels) -
getOutgoingBatches
OutgoingBatches getOutgoingBatches(String nodeId, String channelThread, NodeGroupLinkAction eventAction, NodeGroupLinkAction defaultEventAction, boolean includeDisabledChannels) -
getOutgoingBatchRange
-
getOutgoingBatchByLoad
-
getOutgoingBatchByLoadRangeAndTable
OutgoingBatches getOutgoingBatchByLoadRangeAndTable(long loadId, long startBatchId, long endBatchId, String tableName) -
cancelLoadBatches
int cancelLoadBatches(long loadId) -
getOutgoingBatchRange
OutgoingBatches getOutgoingBatchRange(String nodeId, Date startDate, Date endDate, String... channels) -
getOutgoingBatchErrors
-
isInitialLoadComplete
-
areAllLoadBatchesComplete
-
isUnsentDataOnChannelForNode
-
updateOutgoingBatch
-
updateOutgoingBatchStatus
void updateOutgoingBatchStatus(ISqlTransaction transaction, AbstractBatch.Status status, String nodeId, long startBatchId, long endBatchId) -
updateOutgoingSetupBatchStatusByStatus
void updateOutgoingSetupBatchStatusByStatus(ISqlTransaction transaction, String targetNodeId, long loadId, long maxBatchId, String fromStatus, String toStatus) -
updateOutgoingLoadBatchStatusByStatus
void updateOutgoingLoadBatchStatusByStatus(ISqlTransaction transaction, String targetNodeId, long loadId, long startDataBatchId, long endDataBatchId, String fromStatus, String toStatus) -
updateOutgoingFinalizeBatchStatusByStatus
void updateOutgoingFinalizeBatchStatusByStatus(ISqlTransaction transaction, String targetNodeId, long loadId, long minBatchId, String fromStatus, String toStatus) -
updateCommonBatchExtractStatistics
-
updateOutgoingBatch
-
updateOutgoingBatches
-
updateOutgoingBatches
-
insertOutgoingBatch
-
insertOutgoingBatch
-
insertOutgoingBatches
void insertOutgoingBatches(ISqlTransaction transaction, List<OutgoingBatch> batches, int flushSize, boolean isCommon) -
countOutgoingBatchesInError
int countOutgoingBatchesInError() -
getOutgoingBatchesLatestUpdateSql
Date getOutgoingBatchesLatestUpdateSql() -
countOutgoingBatchesUnsent
int countOutgoingBatchesUnsent() -
countOutgoingNonSystemBatchesRowsUnsent
int[] countOutgoingNonSystemBatchesRowsUnsent() -
countOutgoingBatchesInError
-
countOutgoingBatchesUnsent
-
countOutgoingBatchesUnsentHeartbeat
int countOutgoingBatchesUnsentHeartbeat() -
countOutgoingBatchesPendingByChannel
-
countUnsentRowsByTargetNode
-
countUnsentBatchesByTargetNode
-
findOutgoingBatchSummary
-
findOutgoingBatchSummaryByChannel
-
findOutgoingBatchSummaryByNode
List<OutgoingBatchSummary> findOutgoingBatchSummaryByNode(String nodeId, Date sinceCreateTime, AbstractBatch.Status... statuses) -
countOutgoingBatches
-
listOutgoingBatches
-
listOutgoingBatchesWithLimit
List<OutgoingBatch> listOutgoingBatchesWithLimit(int offset, int limit, List<FilterCriterion> filter, String orderColumn, String orderDirection) -
countOutgoingBatchesWithLimit
-
copyOutgoingBatches
-
getAllBatches
-
getBatchesInProgress
List<OutgoingBatch> getBatchesInProgress()
-