jacson logo courtesy from Doris & Frank.
Jacson How it works?
2005-10-04 00:11:20 0.90

How it works?

Chunks and Events

Basically Jacson works on a pipeline of chunks. A chunk (after some consideration about making it an object, but this would loose the power of regular expressions which is helpful in this context) is a String. A chunk could be a line in a logfile or a sequence of fields in a database or words in a natural text. During scanning of input chunks are ...

  1. ... obtained from a Source or from one or more generic Sources.
  2. ... feed through a sequence of Filters.
  3. ... passed to one ore more Evaluators.
  4. ... Filters and Evaluators can forward Events to one or more Reports.

To make a picture of it.


The main point is that that process is structured recursivly: One can define new evaluators by composing existing filters and evaluators. This requires no programming only configuration via XML.

We can make a somewhat more detailed picture of it, where one eval is itself constructed from filters and other evals. To make it not that complicated, filters have been condensed.

A different perspective to look at Jacson is the temporal one:

Chronologically the process is structured in two phases:

  1. Scanning of the input (when the chunks are handled).
  2. The summary of collected information.
Both Filters and Evaluators can create output by firing events at a Report object during both of the above phases.

Essential is, that the mentioned devices Sources, Filters, Evaluators and Reports are plugable Java Classes and their use and interaction can be configured by an configuration file which is a piece of XML.

From the flexibility Jacson is (like Ant) somewhat between a programming language and a configurable program. It is rather like a collection of building bricks which are limited but can be arranged to do something different from time to time. And in case you really need Jacson to something not yet implemented, all forementioned entities implement easy interfaces and you can program an extension of your own. Like with Ant. So I'd be happy if Jacson can grow from "useful for me" to "useful for somebody else".

Sourceforge Logo