Package gov.nasa.arc.mct.util.internal

Examples of gov.nasa.arc.mct.util.internal.ElapsedTimer.startInterval()


    protected class NodeViewManifestationListener extends AbstractViewListener {
       
        @Override
        public void actionPerformed(TreeExpansionEvent event) {
            final ElapsedTimer timer = new ElapsedTimer();
            timer.startInterval();
           
            JTree tree = (JTree) event.getSource();
            final DefaultTreeModel treeModel = (DefaultTreeModel) tree.getModel();

            final MCTMutableTreeNode selectedNode = node;
View Full Code Here


    ExecutionResult result; 
    List<Policy> list = map.get(categoryKey);
    if (list == null)
      return new ExecutionResult(context, true, "No policies registered for " + categoryKey);
    ElapsedTimer categoryTimer = new ElapsedTimer();
    categoryTimer.startInterval();
    for (Policy policy : list) {
      ElapsedTimer policyTimer = new ElapsedTimer();
      policyTimer.startInterval();
      result = policy.execute(context);
      policyTimer.stopInterval();
View Full Code Here

      return new ExecutionResult(context, true, "No policies registered for " + categoryKey);
    ElapsedTimer categoryTimer = new ElapsedTimer();
    categoryTimer.startInterval();
    for (Policy policy : list) {
      ElapsedTimer policyTimer = new ElapsedTimer();
      policyTimer.startInterval();
      result = policy.execute(context);
      policyTimer.stopInterval();
      PERF_LOGGER.debug("time to execute policy {0} {1}", policy.getClass().getName(), policyTimer.getIntervalInMillis());
      if (!result.getStatus()) {
        LOGGER.debug("Policy category {} failed on policy {}", categoryKey, policy.getClass().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.