Package org.springframework.util

Examples of org.springframework.util.StopWatch.stop()


      returnValue = invocation.proceed();
      return returnValue;
    }
    catch (Throwable ex) {
      if(stopWatch.isRunning()) {
        stopWatch.stop();
      }
      exitThroughException = true;
      writeToLog(logger,
          replacePlaceholders(this.exceptionMessage, invocation, null, ex, stopWatch.getTotalTimeMillis()), ex);
      throw ex;
View Full Code Here


      throw ex;
    }
    finally {
      if (!exitThroughException) {
        if(stopWatch.isRunning()) {
          stopWatch.stop();
        }
        writeToLog(logger,
            replacePlaceholders(this.exitMessage, invocation, returnValue, null, stopWatch.getTotalTimeMillis()));
      }
    }
View Full Code Here

  void reloadRootModule() {
    StopWatch watch = new StopWatch();
    watch.start();
    Impala.reloadRootModule();
    watch.stop();
    String rootName = Impala.getRootModuleDefinition().getName();
    InteractiveCommandUtils.printReloadInfo(rootName, rootName, watch);
  }
 
  void reloadModule(String moduleToReload, CommandState commandState) {
View Full Code Here

    if (!Impala.reload(moduleToReload)) {
      actualModule = Impala.reloadLike(moduleToReload);
    } else {
      actualModule = moduleToReload;
    }
    watch.stop();

    if (moduleToReload != null)
      commandState.addProperty(ACTUAL_MODULE_RELOADED, new CommandPropertyValue(moduleToReload));
    InteractiveCommandUtils.printReloadInfo(moduleToReload, actualModule, watch);
  }
View Full Code Here

    stopWatch.start(name);
    try {
      return invocation.proceed();
    }
    finally {
      stopWatch.stop();
      logger.trace(stopWatch.shortSummary());
    }
  }

}
View Full Code Here

              result = (Boolean) testExpr.evaluate();
          } catch (Exception e) {
            e.printStackTrace();
          }
    }
    clock.stop();
//        System.out.println(clock.prettyPrint());
        /**!
         * 其次是MVEL,看看效率如何
         */
        clock.start("MVEL");
View Full Code Here

         */
        clock.start("MVEL");
        for(int i=0;i<count;i++){
          result = (Boolean)ScriptEvaluator.evalWithMVEL(test.substring(2, test.length()-1),beans);
        }
        clock.stop();
        System.out.println(clock.prettyPrint());
       
  }
}
View Full Code Here

      returnValue = invocation.proceed();
      return returnValue;
    }
    catch (Throwable ex) {
      if(stopWatch.isRunning()) {
        stopWatch.stop();
      }
      exitThroughException = true;
      writeToLog(logger,
          replacePlaceholders(this.exceptionMessage, invocation, null, ex, stopWatch.getTotalTimeMillis()), ex);
      throw ex;
View Full Code Here

      throw ex;
    }
    finally {
      if (!exitThroughException) {
        if(stopWatch.isRunning()) {
          stopWatch.stop();
        }
        writeToLog(logger,
            replacePlaceholders(this.exitMessage, invocation, returnValue, null, stopWatch.getTotalTimeMillis()));
      }
    }
View Full Code Here

        String argValue = null;
        try {
           clock.start(call.toShortString());
           return call.proceed();
        } finally {
           clock.stop();
           StringBuffer sb = new StringBuffer();
           sb.append("\n");
           sb.append(clock.prettyPrint());
          
           Object[] args = call.getArgs();
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.