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 TypeMethodDescriptionboolean
areAllLoadBatchesComplete
(String nodeId) int
cancelLoadBatches
(long loadId) void
copyOutgoingBatches
(String channelId, long startBatchId, String fromNodeId, String toNodeId) int
countOutgoingBatches
(List<String> nodeIds, List<String> channels, List<AbstractBatch.Status> statuses, List<Long> loads) int
int
countOutgoingBatchesInError
(String channelId) int
int
countOutgoingBatchesUnsent
(String channelId) int
int
int[]
int
countUnsentBatchesByTargetNode
(String nodeId, boolean includeHeartbeats) long
countUnsentRowsByTargetNode
(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) getReadyQueues
(boolean refreshCache) getReadyQueues
(String nodeId, boolean refreshCache) void
insertOutgoingBatch
(ISqlTransaction transaction, OutgoingBatch outgoingBatch) void
insertOutgoingBatch
(OutgoingBatch outgoingBatch) void
insertOutgoingBatches
(ISqlTransaction transaction, List<OutgoingBatch> batches, int flushSize, boolean isCommon) boolean
isInitialLoadComplete
(String nodeId) boolean
isUnsentDataOnChannelForNode
(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) void
markAllAsSentForNode
(String nodeId, boolean includeConfigChannel) void
markAllConfigAsSentForNode
(String nodeId) void
void
void
updateOutgoingBatch
(ISqlTransaction transaction, OutgoingBatch outgoingBatch) void
updateOutgoingBatch
(OutgoingBatch batch) void
updateOutgoingBatches
(List<OutgoingBatch> batches) void
updateOutgoingBatches
(ISqlTransaction transaction, List<OutgoingBatch> batches, int flushSize) void
updateOutgoingBatchStatus
(ISqlTransaction transaction, AbstractBatch.Status status, String nodeId, long startBatchId, long endBatchId) void
updateOutgoingError
(long batchId, String nodeId) void
updateOutgoingFinalizeBatchStatusByStatus
(ISqlTransaction transaction, String targetNodeId, long loadId, long minBatchId, String fromStatus, String toStatus) void
updateOutgoingLoadBatchStatusByStatus
(ISqlTransaction transaction, String targetNodeId, long loadId, long startDataBatchId, long endDataBatchId, String fromStatus, String toStatus) void
updateOutgoingSetupBatchStatusByStatus
(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() -
getReadyQueues
-
getReadyQueues
-
getReadyChannelsFromDb
Map<String,ReadyChannels> getReadyChannelsFromDb()
-