![]() |
Code Examples
A repository of 155 code examples for BeepBeep
|
Creates complex events out of low-level events occurring to files. More...
Static Public Member Functions | |
static void | main (String[] args) |
Creates complex events out of low-level events occurring to files.
Each basic event represents an operation done on a Java iterator. It is an array made of at least two elements:
The operation can be either "open", "close", "read" or "write". When the operation is "write" or "read", the array contains two more elements:
The goal is to produce a high-level stream where each event summarizes the "lifecycle" of a file. When a file is closed, a "complex" FileOperation event should be produced, summarizing the operations done on this file during the time it was open:
The pipeline allows resets, which means that if the same file is reopened at a later time, a new complex event will eventually be output for this new interaction.
The global pipeline is illustrated as follows:
<img src={}/doc-files/complex/FileAccess.png" alt="Pipeline" />
Definition at line 87 of file FileDemo.java.