This content has been marked as final.
Show 2 replies
-
1. Re: Production Profiler Update
clebert.suconic Jun 26, 2006 11:18 AM (in response to nickman)Yes... that aligns to what I was thinking.
I like the idea on hide the collector inside the ThreadController. (I'm not sure if we will still need Factories)
So, we will use something like:ThreadController.pushMeasure(opCategory, opName); Object returnValue = super.invokeHome(mi); ThreadController.popMeasure(opCategory, opName);
At this point we don't have the category. But that's something we should add. -
2. Re: Production Profiler Update
nickman Jun 26, 2006 2:06 PM (in response to nickman)Looks good.
So in BasicController, we can implement something like this:public static void pushMeasure(String category, String nodeName) { OperationMetricCollector collector = factory.newCollector(category, nodeName); getController().pushMeasure(collector); } public static void popMeasure(String category, String nodeName) { OperationMetricCollector collector = getController().popMeasure(); factory.closeCollectorAndSubmit(collector); } public static void popFailure(String category, String nodeName) { OperationMetricCollector collector = getController().popMeasure(); collector.setLocalStat("Failures", 1L); // Allows us to aggregate failures on this operation factory.closeCollectorAndSubmit(collector); }