Package com.betfair.tornjak.monitor

Examples of com.betfair.tornjak.monitor.Monitor


    public Object monitorMethod(final ProceedingJoinPoint pjp) throws Throwable {

        final MonitorMethod annotation = getAnnotation(pjp);

        Monitor monitor = monitorRegistry.getMonitor(annotation.monitorName());
        if (monitor == null) {
            throw new IllegalArgumentException("The monitor named " + annotation.monitorName() + " is not defined.");
        }
        if (!(monitor instanceof PassiveMethodMonitor)) {
            throw new IllegalArgumentException("The monitor named " + annotation.monitorName() + " is not a method monitor (passive or active).");
View Full Code Here

TOP

Related Classes of com.betfair.tornjak.monitor.Monitor

Copyright © 2018 www.massapicom. 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.