Examples of PerformanceMonitorFactory


Examples of org.fishwife.jrugged.PerformanceMonitorFactory

    public void testSetPerformanceMonitorFactory() throws Throwable {
        ProceedingJoinPoint mockPjp = createPjpMock(mockSignature, 1);
        expect(mockPjp.proceed()).andReturn(null);
        replay(mockPjp);

        PerformanceMonitorFactory factory = new PerformanceMonitorFactory();
        aspect.setPerformanceMonitorFactory(factory);

        aspect.monitor(mockPjp, mockAnnotation);

        assertSame(factory, aspect.getPerformanceMonitorFactory());
View Full Code Here

Examples of org.fishwife.jrugged.PerformanceMonitorFactory

    private volatile PerformanceMonitorFactory performanceMonitorFactory;

    /** Default constructor. */
    public PerformanceMonitorAspect() {
        performanceMonitorFactory = new PerformanceMonitorFactory();
    }
View Full Code Here

Examples of org.fishwife.jrugged.PerformanceMonitorFactory

    @RequestMapping("/aspectPerformanceMonitor/stats")
    public ModelAndView viewPerformanceMonitor(HttpServletRequest request,
            HttpServletResponse response) throws Exception {
        final StringBuilder sb = new StringBuilder();
        PerformanceMonitorFactory factory = performanceAspect.getPerformanceMonitorFactory();
        for (String monitorName : factory.getPerformanceMonitorNames()) {
            PerformanceMonitor m = factory.findPerformanceMonitor(monitorName);
            sb.append(String.format("[%s]", monitorName)).append("\n");
            // Go through all methods and invoke those with ManagedAttribute
            // marker annotations
            Method[] methods = m.getClass().getMethods();
            for (Method monitorMethod : methods) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.