com.ibm.ia.testdriver.data

Interface EventSource<T>

  • Type Parameters:
    T - The type of meta data object related to each event returned by this event sources iterator. See EventSourceIterator.getRelatedEventMetaData(String).
    All Superinterfaces:
    java.lang.Iterable<Event>


    public interface EventSource<T>
    extends java.lang.Iterable<Event>
    An EventSource represents a source of events that can be submitted to a solution. Use the iterator() method to obtain a Iterator that can be used with the TestDriver.submitEvents(Iterator) method. To re-submit the collection of events in the same order, create a new iterator instance.
    • Field Summary

      Fields 
      Modifier and Type Field and Description
      static int SKIP_NO_FAILURES
      Do not skip any failures.
      static int SKIP_UNRECOGNISED_EVENTS
      Skip any events that are unrecognised by the solution.
    • Method Summary

      Methods 
      Modifier and Type Method and Description
      EventSourceIterator<T> iterator() 
      • Methods inherited from interface java.lang.Iterable

        forEach, spliterator
    • Field Detail

      • SKIP_NO_FAILURES

        static final int SKIP_NO_FAILURES
        Do not skip any failures. An exception will be thrown when the first problem is encountered.
        See Also:
        Constant Field Values
      • SKIP_UNRECOGNISED_EVENTS

        static final int SKIP_UNRECOGNISED_EVENTS
        Skip any events that are unrecognised by the solution. Unrecognised events will not trigger an exception.
        See Also:
        Constant Field Values

© Copyright IBM 2016