Okidoki-Sensor

Okidoki-Sensor

Where?

https://scm.ops4j.org/repos/ops4j/laboratory/users/tonit/incubator/okidoki/okidoki-sensor

What?

A file system sensor tracking changes.

Implementation Goals

event-storm proofness

If you observe a folder and changes happen in bulk (say you observe the target folder of a compile output) there should be just one event for all of the changes ("wait until the storm is over")

Drawbacks

Subsequent checking each file for modification is not very efficient.
A better way would be a file-system based notification system.
Not sure if this possible in a cross platform manner.

Until now, the current implementation works pretty fine and Disk-Activity is pretty low.

OSGi Integration

  • implemented using the extender pattern