Event formats
The format of an Event Integration Facility (EIF) event consists of a header, the event body, and an ending sequence.
The Classic data server sends EIF events to an event server in the ASCII (ISO-8859-1) code set. The structure of an event message includes the following elements:
- header
- The event header identifies the start of the event and the format
of the event information.
HEADER Offset Data Description 0 c'<START>>' Beginning of header, character sequence denoting the start of the event 8 x'00000000' Message ID (not used) C x'00000000' Message "from" (not used) 10 x'00000000' Message "to" (not used) 14 x'00000000' Message type (not used) 18 x'00000000' IPC message type (not used) 1C x'nnnnnnnn' Message length (includes the length of data from offset x'24' to the end of the event, including the END sequence) 20 x'00000024' Header data length (some senders fill this in, but typically not used) 24 Beginning of the data
- body
- The body of the event message contains data that describes the
event.
The format of the body consists of an event class name followed by the attributes of that event. The event class is a classification of an event that describes the attributes of the event to the event server. Each attribute is in the format attribute=value. The event class name and the attributes are delimited by a semi-colon (;).
For example, the event class
replication_restored
contains a specific set of attribute values, such assubscription_name=STRING
, that indicate how the event is sent to the event server. - end
- The ending sequence identifies the end of the event message.
END sequence (offset n + 24 - 5) c'END' Character sequence denoting the beginning of the end. x'0A01' Last two bytes