org.sandev.basics.structs
Class DeliveryStreamStruct

java.lang.Object
  extended byorg.sandev.basics.structs.DeliveryStreamStruct
Direct Known Subclasses:
DeliveryStream

public class DeliveryStreamStruct
extends java.lang.Object

A DeliveryStream is a collection of messages that a MessageDriver is expecting to receive from a source. The messages may arrive in any order. There are two collections to specify. One holds expected input (messages we expect to receive), and the other holds erroneous input (messages we should not receive). Anything not matching either expected input or erroneous input is simply ignored.


Field Summary
protected  MessageDescriptionStruct[] erroneousInput
          Descriptions of messages we should not receive.
protected  MessageDescriptionStruct[] expectedInput
          Descriptions of messages we expect to receive.
protected  java.lang.String sourceInstanceName
          This is the instanceName of the source we are expecting this stream of input from.
 
Constructor Summary
DeliveryStreamStruct()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

sourceInstanceName

protected java.lang.String sourceInstanceName
This is the instanceName of the source we are expecting this stream of input from. The MessageDriver reads its subscription information from the TestScript, rather than from its configuration parameters, since it may be subscribing to different sources for different tests within a config. The instance name must be specified as listed in the Configuration that holds the MessageDriver that is running the TestScript that contains this DeliveryStream.

declared default value: ""
declared invalid value: "SANDEV_INVALID_INSTANCENAME"
Length in characters, normal: 30 max: 80

expectedInput

protected MessageDescriptionStruct[] expectedInput
Descriptions of messages we expect to receive. If we fail to find all the messages described here, then that's flagged as a problem. A matching message is first sent to the Validator, and if the Validator confirms that it's VALID, then we consider it to be successfully received. Otherwise it's not considered to have been received successfully.


erroneousInput

protected MessageDescriptionStruct[] erroneousInput
Descriptions of messages we should not receive. If we receive any messages matching these descriptions then that's flagged as a problem. A matching message is first sent to the Validator, and if the Validator says it's INVALID then it's a problem. Otherwise it's not considered erroneous input.

Constructor Detail

DeliveryStreamStruct

public DeliveryStreamStruct()