On 7/14/2012 3:40 PM, Jacopo Cappellato wrote:
On Jul 14, 2012, at 4:18 PM, Adrian Crum wrote:
At first glance, this might seem like a duplication of ServerHitBin.java, but
it isn't. The metrics Java code will be in the base component, and it is
designed to be used to measure any part of the project, not just web app
requests.
-Adrian
I know that there are features in the ServerHitBin class to gather stats about
services and entities, but I don't remember how they are implemented and if
they are fully used.
Jacopo
The ServerHitBin entity and service methods are not used currently.
Metrics could be kept for entities, but I don't think that they would be
meaningful - so I didn't add them. If someone comes up with a need for
entity metrics, then the capability can be added easily.
In a nutshell, the ServerHitBin code is quite heavy - it uses the entity
engine to store the metrics. The design I used is from SEDA - it is
meant to be used in a "feedback loop" that is used to control web
application response times, so it is small and fast. Also, ServerHitBin
stats are kept for every request, but the metrics code is more strategic
- you maintain metrics only in the areas you are concerned with.
-Adrian