/** * Resets the current invocation stats */ public void resetInvocationStats() { invokeStats.resetStats(); }
/** * Converts the method invocation stats into a detyped nested map structure. * The format is: * * {methodName => {statisticTypeName => longValue}} * * @return A map indexed by method name with map values indexed by statistic type */ public Map<String, Map<String, Long>> getDetypedInvocationStatistics() { return invokeStats.toDetypedMap(); }
this.invokeStats.callIn(); this.invokeStats.updateStats(m, elapsed); this.invokeStats.callOut();
/** * A default implementation of destroying the container service (no-op). * The concrete container classes should override this method to introduce * implementation specific destroy behaviour. */ protected void destroyService() throws Exception { cleanENC(); localProxyFactory.destroy(); ejbModule.removeLocalHome(this); beanClass = null; homeInterface = null; remoteInterface = null; localHomeInterface = null; localInterface = null; methodPermissionsCache.clear(); // InvocationStatistics holds refs to Methods from // application classes, so to avoid a classloader // leak, lets not just resetStats() but also replace // the object invokeStats.resetStats(); // in case someone else has a ref invokeStats = new InvocationStatistics(); marshalledInvocationMapping.clear(); }
HashMap timesMap = new HashMap(times.getStats()); Iterator iter = timesMap.entrySet().iterator(); while (iter.hasNext())