public class ALDWorkflowEvent extends ALDEvent
Modifier and Type | Class and Description |
---|---|
static class |
ALDWorkflowEvent.ALDWorkflowEventType
Types of events.
|
Modifier and Type | Field and Description |
---|---|
protected ALDWorkflowEvent.ALDWorkflowEventType |
eType
Type of the event.
|
protected Object |
info
Object containing information about event.
|
private static Integer |
nextTimeStamp
Count for (almost) unique time stamps (we allow wrap around).
|
private Integer |
timeStamp
This is not a real time stamp rather an integer incremented each time
a new event is instantiate with the only exception of using
new ALDWorkflowEvent( event) |
eventMessage
source
Constructor and Description |
---|
ALDWorkflowEvent(ALDWorkflowEvent event)
Constructor.
|
ALDWorkflowEvent(Object s,
ALDWorkflowEvent.ALDWorkflowEventType e)
Constructor.
|
ALDWorkflowEvent(Object s,
ALDWorkflowEvent.ALDWorkflowEventType e,
Object info)
Constructor.
|
ALDWorkflowEvent(Object s,
ALDWorkflowEvent.ALDWorkflowEventType e,
String msg,
Object info)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
ALDWorkflowEvent |
createCopy()
Create a clone of this event with the same time stamp
|
ALDWorkflowEvent.ALDWorkflowEventType |
getEventType()
Returns type of event.
|
Object |
getInfo()
Get the info object of this workflow event.
|
Integer |
getTimeStamp()
Returns the timestamp of this event.
|
getEventMessage, getEventMessage
getSource, toString
protected ALDWorkflowEvent.ALDWorkflowEventType eType
protected Object info
In case of successful workflow operations the object contains the (node, edge, etc.)
ID of the related workflow object. In case of failure the member references an object
of type ALDWorkflowRunFailureInfo
.
private final Integer timeStamp
new ALDWorkflowEvent( event)
private static Integer nextTimeStamp
public ALDWorkflowEvent(Object s, ALDWorkflowEvent.ALDWorkflowEventType e)
s
- Source object of the event.e
- Event type.public ALDWorkflowEvent(Object s, ALDWorkflowEvent.ALDWorkflowEventType e, Object info)
aldWorkflow
- Source object of the event.e
- Event type.info
- Information associated with this event.public ALDWorkflowEvent(Object s, ALDWorkflowEvent.ALDWorkflowEventType e, String msg, Object info)
s
- Source object of the event.e
- Event type.msg
- Message for the event.info
- Id of work flow object associated with this event.public ALDWorkflowEvent(ALDWorkflowEvent event)
event
- public ALDWorkflowEvent.ALDWorkflowEventType getEventType()
public Object getInfo()
The info object may contain additional information about the event, e.g., in case of failures it informs about which exceptions were thrown that caused the workflow to fail.
public Integer getTimeStamp()
public ALDWorkflowEvent createCopy()
Copyright © 2010–2021 Martin Luther University Halle-Wittenberg, Institute of Computer Science, Pattern Recognition and Bioinformatics. All rights reserved.