Package org.opentestfactory.messages
Class AbstractWorkerJobState
java.lang.Object
org.opentestfactory.messages.OTFMessage
org.opentestfactory.messages.GenericNotification
org.opentestfactory.messages.AbstractWorkerJobState
- Direct Known Subclasses:
WorkerJobComplete,WorkerJobStarted
Here is the base class for messages emitted by workers when they begin working on a workflow
(@see
WorkerJobStarted) and when their work on the workflow is complete (@see WorkerJobComplete)- Author:
- edegenetais
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic class -
Field Summary
FieldsFields inherited from class org.opentestfactory.messages.GenericNotification
NOTIFICATION_KINDFields inherited from class org.opentestfactory.messages.OTFMessage
apiVersion, NAME_KEY, WORKFLOW_ID_KEY -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractWorkerJobState(String apiVersion, String name, String workflowId, AbstractWorkerJobState.WorkerJob workerState) -
Method Summary
Methods inherited from class org.opentestfactory.messages.GenericNotification
getKind, name, workflowIdMethods inherited from class org.opentestfactory.messages.OTFMessage
addMetadata, checkKind, equals, getApiVersion, getMetadata, hashCode, setApiVersion, setMetadata
-
Field Details
-
spec
-
-
Constructor Details
-
AbstractWorkerJobState
protected AbstractWorkerJobState(String apiVersion, String name, String workflowId, AbstractWorkerJobState.WorkerJob workerState)
-
-
Method Details
-
checkStatus
protected final void checkStatus(AbstractWorkerJobState.WorkerJob spec1) throws InvalidOtfMessageException - Throws:
InvalidOtfMessageException
-
workerId
-
getSpec
-