← Back to team overview

syncany-team team mailing list archive

Syncany Watch Operation


Dear all,

while implementing GUI / Daemon, I would like to discuss with you the
opportunity to hook into WatchOperation to get the following information :
- is it running / stopped / paused ? ==> already ok via AtomicBoolean
within WatchOperation
- which files (name / size) are being downloaded / uploaded (UpOperation
and DownOperation) (not possible at this stage.

Here are options I have in mind :
1/ try to use NotificationListener and adapt it to publish messages
relating to currently uploaded/downloaded files (filename & size) .
2/ implement an eventBus (like Google Guava Event Bus

Is it possible to modify NotificationListener way of working to embedded
extra information (like a Map<String, Serialisable> of params ? EventBus
principle allows "decoupling" publisher from subscriber, which is nice

what do you think ?

Vincent Wiencek

Follow ups