Package org.opentestfactory.messages
Class GenericNotification
java.lang.Object
org.opentestfactory.messages.OTFMessage
org.opentestfactory.messages.GenericNotification
- Direct Known Subclasses:
AbstractWorkerJobState
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 Summary
FieldsFields inherited from class org.opentestfactory.messages.OTFMessage
apiVersion, NAME_KEY, WORKFLOW_ID_KEY -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedGenericNotification(String apiVersion, String name, String workflowId) -
Method Summary
Methods inherited from class org.opentestfactory.messages.OTFMessage
addMetadata, checkKind, equals, getApiVersion, getMetadata, hashCode, setApiVersion, setMetadata
-
Field Details
-
NOTIFICATION_KIND
- See Also:
-
-
Constructor Details
-
GenericNotification
-
-
Method Details
-
getKind
- Overrides:
getKindin classOTFMessage
-
name
Shortcut to get mandatory metadata name.- Returns:
- the name
-
workflowId
Shortcut to get mandatory metadata workflow_id.- Returns:
- the name
-