locationtech/geomesa — pull request #160 by elahrvivaz (2014-07-28 17:31:55+00:00)
Title: GEOMESA-107 keeping query stats

Adding an option to the data store config (default true) to collect query stats. Added instrumentation into the AccumuloFeatureReader.
The persisting of stats is done in an asynchronous background thread - not all stats are guaranteed to be written, but in exchange it consumes less resources.
The initial instrumentation is fairly light, as I didn't want to pollute the code too much. Considered using aspects, but it seemed like overkill at the moment - plus a lot of the underlying methods we'd be intercepting are undergoing change.