WIre event should be defined in the participant support lib
Reported by Ben Hood | November 4th, 2011 @ 12:25 PM | in 1.0 (closed)
We need to move the definition of the WireEvent into the participant support library. This should also include porting the necessary serialization support for it into the same lib, i.e. merge the scala JSONSerilizationUtils into the java JSONHelper.
Also, whilst doing this, we should rename it to
ChangeEvent (and remove the existing kernel
ChangeEvent, since the non-PairChagneEvent hierarchy isn't
required), and straighten the event definition to look like
this:
- Id (string, mandatory)
- Previous version (string, optional) *
- Version (string, mandatory)
- Last update (timestamp, optional)
- Attributes (string -> object map, optional)
This lines up the event definition to look like an extended version of the ScanResultEntry.
When mapping these internally, the type of ChangeEvent created should depend on the usage of the endpoint it is sent to in a pair. For example, an event that comes in could be an upstream event for use in one pair, and a downstream event for another.
(*) The previous version is only ever used when generating a downstream correlated change event. In this case, the "previous version" is the upstream version, and the "version" is the downstream version.
Comments and changes to this ticket
-

Paul Jones November 4th, 2011 @ 01:40 PM
- Assigned user changed from John Wright to Paul Jones
- State changed from new to open
-

Ben Hood November 4th, 2011 @ 01:50 PM
(from [ce5281c4b3d5e7d2209045af46011be355084688]) [#409] Move Wire Event into Participant Support library. https://github.com/lshift/diffa/commit/ce5281c4b3d5e7d2209045af4601...
-

Paul Jones November 4th, 2011 @ 01:51 PM
- Assigned user changed from Paul Jones to Ben Hood
- State changed from open to resolved
Pull request raised and ready for QA.
-

Ben Hood November 4th, 2011 @ 03:24 PM
(from [32661cf0a3192f1f7435200e3c1eb66881422edb]) Merge pull request #104 from lshift/409
[#409] Move Wire Event into Participant Support library. https://github.com/lshift/diffa/commit/32661cf0a3192f1f7435200e3c1e...
-

Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป
A Real Time Differencing Tool.
People watching this ticket
Tags
Referenced by
-
396
Digest attributes should be sent as a map
The format of the events was changed in #409, so I
believ...