public class TransientEventPoster
A simple object that posts events at a rapid rate in order to test the event
service. The Poster may be used inside of a component/controller in order to
carry out a test, or it may be used with the attached main method (which
John Hubbard (firstname.lastname@example.org)
Fields inherited from interface atst.cs.services.event.IEventTest
public TransientEventPoster(boolean mark,
Constructs an event poster object. The values are all passed in at object
construction so that they may be finalized as this provides (likely
small) performance improvements.
mark - Whether or not to print a '.' every 10K events.
maxEvents - The total number of events to post.
stable - Whether to include a count value in the outgoing event in
order to test in-order reception.
eventName - The name to post events with.
eps - The number of Events Per Second to post.
This is a best attempt and does not guarantee that events will
be posted this quickly but only that they will not be posted
much faster or slower. (Think ± 1%)
eventSize - The approximate size (in bytes) of the event. A string of this
length is created and attached to the event. In reality the
actual size of the event will be larger because things like a
times tamp and the source are also included. (By most event
strategy - The posting strategy to use.
public static void main(java.lang.String args)
Parses that args, starts StandAlone services, constructs a
NewTransientEventPoster object, executes the test, and then stops the
args - Command line args to parse (should be of the form