Package restx.common.metrics.api

Examples of restx.common.metrics.api.Monitor.stop()


            out.println("UNEXPECTED SERVER ERROR:");
            out.print(ex.getMessage());
        } finally {
            try { restxRequest.closeContentStream(); } catch (Exception ex) { }
            try { restxResponse.close(); } catch (Exception ex) { }
            monitor.stop();
            stopwatch.stop();
            restxResponse.getLogLevel().log(logger, restxRequest, restxResponse, stopwatch);
            MDC.clear();
        }
    }
View Full Code Here


        Monitor monitor = timer.time();
        ComponentBox<T> box;
        try {
            box = engine.newComponent(satisfiedBOM);
        } finally {
            monitor.stop();
        }

        if (box instanceof BoundlessComponentBox && box.pick().isPresent()
                && box.pick().get().getComponent() == this) {
            // do not store nor customize the factory itself
View Full Code Here

                    + " <WITH> " + customizer.getClass().getSimpleName()).time();
            try {
                logger.info("{} - customizing {} with {}", id, name, customizer);
                box = box.customize(customizer);
            } finally {
                monitor.stop();
            }
        }

        warehouse.checkIn(box, satisfiedBOM);
        return warehouse.checkOut(box.getName());
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.