Package org.jumpmind.symmetric.model
Class OutgoingBatches
java.lang.Object
org.jumpmind.symmetric.model.OutgoingBatches
- All Implemented Interfaces:
Serializable
A container for
OutgoingBatchs.- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddActiveChannel(NodeChannel nodeChannel) booleanbooleanbooleanintcountBatches(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) voidvoidremoveThreadChannelBatches(String channelId) voidsetActiveChannels(Set<NodeChannel> activeChannels) voidsetBatches(List<OutgoingBatch> batches) voidsortChannels(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
-