Class GenericNotification

java.lang.Object
org.opentestfactory.messages.OTFMessage
org.opentestfactory.messages.GenericNotification
Direct Known Subclasses:
AbstractWorkerJobState

public abstract class GenericNotification extends OTFMessage
Abstract Notification base class. As the json Notification event is rather generic, we decided to strong type Notification into a set of subclass. Use Selector to filter the desired message by using shape discriminators
  • Field Details

  • Constructor Details

    • GenericNotification

      protected GenericNotification(String apiVersion, String name, String workflowId)
  • Method Details

    • getKind

      public String getKind()
      Overrides:
      getKind in class OTFMessage
    • name

      public String name()
      Shortcut to get mandatory metadata name.
      Returns:
      the name
    • workflowId

      public String workflowId()
      Shortcut to get mandatory metadata workflow_id.
      Returns:
      the name