Examples of markTimeBegin()


Examples of org.rhq.core.util.StopWatch.markTimeBegin()

            // This usage of .clear() will remove the processed resources from the backing list.
            String markerPrefix = null;
            if (isDebugEnabled) {
                markerPrefix = String.format("a. Batch [%03d] (%d): ", batchNumber, syncInfos.size());
                marker = String.format("%sGet resource ID sublist - %d of %d remaining", markerPrefix, end, size);
                stopWatch.markTimeBegin(marker);
            }

            List<Integer> resourceIdBatch = resourceIdList.subList(0, end);
            Integer[] resourceIdArray = resourceIdBatch.toArray(new Integer[resourceIdBatch.size()]);
View Full Code Here

Examples of org.rhq.core.util.StopWatch.markTimeBegin()

            if (isDebugEnabled) {
                stopWatch.markTimeEnd(marker);

                marker = markerPrefix + "Get sublist of resources from server";
                stopWatch.markTimeBegin(marker);
            }

            // Ask the server for the resource representation of all resource IDs in our batch.
            // This is a potentially expensive operation depending on the size of the batch and the content of the resources.
            List<Resource> resourceBatch = configuration.getServerServices().getDiscoveryServerService()
View Full Code Here

Examples of org.rhq.core.util.StopWatch.markTimeBegin()

            if (isDebugEnabled) {
                stopWatch.markTimeEnd(marker);

                marker = markerPrefix + "Store sublist of resources to map";
                stopWatch.markTimeBegin(marker);
            }

            // Now that the server told us the resources in our batch, we add them to our master map.
            // Note our usage of clear on the batch - this is to help GC.
            for (Resource r : resourceBatch) {
View Full Code Here

Examples of org.rhq.core.util.StopWatch.markTimeBegin()

        // We now have all the resources associated with all sync infos in a map.
        // We need to build the full resource tree using the resource parent info as the blueprint for how to
        // link the resources in the tree.
        if (isDebugEnabled) {
            marker = "b. Build the resource hierarchies";
            stopWatch.markTimeBegin(marker);
        }

        // The root resources to be merged (i.e. the resources whose parents are not in the map)
        Set<Resource> result = new HashSet<Resource>();
        for (Resource resource : resourceMap.values()) {
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.