Package org.jgroups.tests
Class ParseMessages
java.lang.Object
org.jgroups.tests.ParseMessages
- Direct Known Subclasses:
ParseMessagesFields
Parses messages out of a captured file and writes them to stdout
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static classprotected static class -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final shortprotected static boolean -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected InputStreamprotected static Viewprotected static voidhelp()static voidstatic voidparse(byte[] buf, int offset, int length, BiConsumer<Short, Message> msg_consumer, BiConsumer<Short, MessageBatch> batch_consumer, Consumer<GossipData> gossip_consumer, boolean tcp, boolean gossip) voidparse(InputStream in, BiConsumer<Short, Message> msg_consumer, BiConsumer<Short, MessageBatch> batch_consumer, Consumer<GossipData> gossip_consumer, boolean tcp, boolean gossip) protected static voidprotected static voidreadMappings(String filename)
-
Field Details
-
GMS_ID
protected static final short GMS_ID -
show_views
protected static boolean show_views
-
-
Constructor Details
-
ParseMessages
public ParseMessages()
-
-
Method Details
-
parse
public static void parse(byte[] buf, int offset, int length, BiConsumer<Short, Message> msg_consumer, BiConsumer<Short, MessageBatch> batch_consumer, Consumer<GossipData> gossip_consumer, boolean tcp, boolean gossip) -
parse
public void parse(InputStream in, BiConsumer<Short, Message> msg_consumer, BiConsumer<Short, throws FileNotFoundExceptionMessageBatch> batch_consumer, Consumer<GossipData> gossip_consumer, boolean tcp, boolean gossip) - Throws:
FileNotFoundException
-
main
- Throws:
Exception
-
createInputStream
-
parseDiscoveryResponse
- Throws:
Exception
-
getView
-
help
protected static void help() -
readMappings
- Throws:
IOException
-