Examples of startInterval()


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

    @Override
    public Map<String, SortedMap<Long, Map<String, String>>> getData(Set<String> feedIDs, TimeUnit timeUnit, long startTime,
            long endTime) {
        final ElapsedTimer timer = new ElapsedTimer();
        timer.startInterval();
       
        Map<String, TreeMap<Long, Map<String, String>>> cachedData = getCachedData();
       
        Map<String, SortedMap<Long, Map<String, String>>> returnedData = new HashMap<String, SortedMap<Long, Map<String, String>>>();
View Full Code Here

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

    }

    @Override
    public Map<String, PartitionTimestamps> putData(Map<String, Map<Long, Map<String, String>>> value, TimeUnit timeUnit) {
        final ElapsedTimer timer = new ElapsedTimer();
        timer.startInterval();
       
        Map<String, PartitionTimestamps> timestamps = new HashMap<String, PartitionTimestamps>();
        Map<String, TreeMap<Long, Map<String, String>>> cachedData = getCachedData();

        for (Entry<String, Map<Long, Map<String, String>>> entry : value.entrySet()) {
View Full Code Here

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

    }
   
    @Override
    public void putData(Map<String, Map<Long, Map<String, String>>> value, TimeUnit timeUnit, MetaDataBuffer metadata, int metadataIndex) {
        final ElapsedTimer timer = new ElapsedTimer();
        timer.startInterval();
       
        Map<String, TreeMap<Long, Map<String, String>>> cachedData = getCachedData();

        for (Entry<String, Map<Long, Map<String, String>>> entry : value.entrySet()) {
            String feedID = entry.getKey();
View Full Code Here

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

       
        feedIDs = new HashSet<String>(feedIDs);
        int feedSize = feedIDs.size();
        Map<String, List<Map<String, String>>> returnedData = new HashMap<String, List<Map<String,String>>>();
        for (DataProvider dataRetrieval : dataProviders) {
            timer.startInterval();

            Map<String, SortedMap<Long, Map<String, String>>> obtainedValues = dataRetrieval
                    .getData(feedIDs, startTime, endTime, timeUnit);
           
            for (Entry<String, SortedMap<Long, Map<String, String>>> entry: obtainedValues.entrySet()) {
View Full Code Here

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

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

    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

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

      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.