testEnvironment
Class ReceivalCheck

java.lang.Object
  extended by testEnvironment.ReceivalCheck

final class ReceivalCheck
extends java.lang.Object

Can be used to validate if a message sent, was received as well or dropped for some reason.

For performance reasons, only an identifying integer (4 bytes) is saved for each message for later comparison.

Author:
Karl-Peter Fuchs

Method Summary
protected static void addReceivedMessage(int messageID)
          Removes the bypassed message identifier from notYetReceived list.
protected static void addSentMessage(int messageID)
          Saves the bypassed message identifier in the notYetReceived list.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

addSentMessage

protected static void addSentMessage(int messageID)
Saves the bypassed message identifier in the notYetReceived list. If the checkInterval is reached, a check for lost messages is performed. Gets called by ClientSimulator every time it sends a new message.

See Also:
checkInterval

addReceivedMessage

protected static void addReceivedMessage(int messageID)
Removes the bypassed message identifier from notYetReceived list. Gets called by ClientSimulator every time it receives a reply.

See Also:
notYetReceived