public class AndesClientOutputParser extends Object
| Constructor and Description |
|---|
AndesClientOutputParser(String filePath)
Creates an output parse for andes with a give file path.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
checkIfMessagesAreInOrder()
Checks if messages are received in the correct order.
|
boolean |
checkIfTransactedRollbackPreservesOrder(long messagesPerRollback)
Check whether all the messages are received in-order when subscriber rollbacks
after certain number of messages.
|
Map<Long,Integer> |
getDuplicatedMessages()
Gets the map used for message duplication.
|
long |
numberDuplicatedMessages()
Parse the file and get the number of duplicate message IDs.
|
void |
printDuplicateMessages()
Prints duplicated message IDs
Suppressing "UnusedDeclaration" as this could be used for debugging purposes
|
void |
printMessagesMap()
Prints the map that contains received messages.
|
void |
printMessagesSorted()
Prints received message IDs in sorted.
|
void |
printMissingMessages(int numberOfSentMessages)
Prints missing message IDs.
|
boolean |
transactedOperations(long operationOccurredIndex)
Check whether all the messages are transacted
|
public AndesClientOutputParser(String filePath) throws IOException
filePath - The file path for received messages.IOExceptionpublic Map<Long,Integer> getDuplicatedMessages()
public boolean checkIfMessagesAreInOrder()
public void printMissingMessages(int numberOfSentMessages)
numberOfSentMessages - Number of messages to print.public void printDuplicateMessages()
public void printMessagesMap()
public void printMessagesSorted()
public boolean transactedOperations(long operationOccurredIndex)
throws FileNotFoundException
operationOccurredIndex - Index of the operation occurred messageFileNotFoundExceptionpublic boolean checkIfTransactedRollbackPreservesOrder(long messagesPerRollback)
throws FileNotFoundException
messagesPerRollback - Number of messages received per rollbackFileNotFoundExceptionpublic long numberDuplicatedMessages()
Copyright © 2019 WSO2. All rights reserved.