Enum EventType

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<EventType>

    public enum EventType
    extends java.lang.Enum<EventType>
    Events (messages) passed between the slave and the master.
    • Enum Constant Detail

      • BOOTSTRAP

        public static final EventType BOOTSTRAP
      • SUITE_STARTED

        public static final EventType SUITE_STARTED
      • SUITE_FAILURE

        public static final EventType SUITE_FAILURE
      • SUITE_COMPLETED

        public static final EventType SUITE_COMPLETED
      • APPEND_STDOUT

        public static final EventType APPEND_STDOUT
      • APPEND_STDERR

        public static final EventType APPEND_STDERR
      • TEST_STARTED

        public static final EventType TEST_STARTED
      • TEST_FAILURE

        public static final EventType TEST_FAILURE
      • TEST_IGNORED_ASSUMPTION

        public static final EventType TEST_IGNORED_ASSUMPTION
      • TEST_IGNORED

        public static final EventType TEST_IGNORED
      • TEST_FINISHED

        public static final EventType TEST_FINISHED
    • Field Detail

      • eventClass

        public final java.lang.Class<? extends RemoteEvent> eventClass
        Concrete class associated with the given event type.
    • Constructor Detail

      • EventType

        private EventType​(java.lang.Class<? extends RemoteEvent> eventClass)
        Initialize with concrete event class.
    • Method Detail

      • values

        public static EventType[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (EventType c : EventType.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static EventType valueOf​(java.lang.String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • deserialize

        public RemoteEvent deserialize​(JsonReader input)
                                throws java.io.IOException
        Deserialize a given event type from stream.
        Throws:
        java.io.IOException