Package org.jumpmind.symmetric.model
Class OutgoingBatches
java.lang.Object
org.jumpmind.symmetric.model.OutgoingBatches
- All Implemented Interfaces:
Serializable
A container for
OutgoingBatch
s.- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addActiveChannel
(NodeChannel nodeChannel) boolean
boolean
boolean
int
countBatches
(boolean includeOnlyErrors) filterBatchesForChannel
(String channelId) filterBatchesForChannel
(Channel channel) Removes all batches associated with the provided channel from this object.filterBatchesForChannels
(Set<String> channels) Removes all batches that are not associated with an 'activeChannel'.getBatchesForChannel
(String channelId) getBatchesForChannel
(Channel channel) getBatchesForChannels
(Set<String> channelIds) void
void
removeThreadChannelBatches
(String channelId) void
setActiveChannels
(Set<NodeChannel> activeChannels) void
setBatches
(List<OutgoingBatch> batches) void
sortChannels
(List<NodeChannel> channels)
-
Constructor Details
-
OutgoingBatches
-
OutgoingBatches
public OutgoingBatches()
-
-
Method Details
-
containsBatches
public boolean containsBatches() -
getActiveChannels
-
addActiveChannel
-
setActiveChannels
-
getBatches
-
setBatches
-
filterBatchesForChannel
Removes all batches associated with the provided channel from this object.- Parameters:
channel
- - channel for which corresponding batches are removed- Returns:
- A list of the batches removed
-
countBatches
public int countBatches(boolean includeOnlyErrors) -
filterBatchesForChannel
-
filterBatchesForChannels
-
removeNonLoadBatches
public void removeNonLoadBatches() -
removeThreadChannelBatches
-
containsLoadBatches
public boolean containsLoadBatches() -
containsBatchesInError
public boolean containsBatchesInError() -
getBatchesForChannel
-
getBatchesForChannel
-
getBatchesForChannels
-
filterBatchesForInactiveChannels
Removes all batches that are not associated with an 'activeChannel'.- Returns:
- List of batches that were filtered
-
sortChannels
-