Examples of entries()


Examples of org.sonar.batch.duplication.DuplicationCache.entries()

      }
    }

    private void storeDuplication(ProjectScanContainer container) {
      DuplicationCache duplicationCache = container.getComponentByType(DuplicationCache.class);
      for (Entry<List<DuplicationGroup>> entry : duplicationCache.entries()) {
        String effectiveKey = entry.key()[0].toString();
        duplications.put(effectiveKey, entry.value());
      }
    }
View Full Code Here

Examples of org.sonar.batch.test.TestCaseCoverageCache.entries()

    }

    private void storeCoveragePerTest(ProjectScanContainer container) {
      TestCaseCoverageCache testCaseCoverageCache = container.getComponentByType(TestCaseCoverageCache.class);
      for (Entry<TestCaseCoverage> entry : testCaseCoverageCache.entries()) {
        String testFileKey = entry.key()[0].toString();
        if (!coveragePerTest.containsKey(testFileKey)) {
          coveragePerTest.put(testFileKey, new HashMap<String, Map<String, List<Integer>>>());
        }
        String testName = entry.key()[1].toString();
View Full Code Here

Examples of org.sonar.batch.test.TestCaseExecutionCache.entries()

      }
    }

    private void storeTestCases(ProjectScanContainer container) {
      TestCaseExecutionCache testCaseCache = container.getComponentByType(TestCaseExecutionCache.class);
      for (Entry<TestCaseExecution> entry : testCaseCache.entries()) {
        String effectiveKey = entry.key()[0].toString();
        if (!testCasesPerFile.containsKey(effectiveKey)) {
          testCasesPerFile.put(effectiveKey, new HashMap<String, TestCaseExecution>());
        }
        testCasesPerFile.get(effectiveKey).put(entry.value().name(), entry.value());
View Full Code Here

Examples of org.sonatype.nexus.proxy.maven.routing.internal.TextFilePrefixSourceMarshaller.Result.entries()

        long prefixFileAgeInDays = (System.currentTimeMillis() - item.getModified()) / 86400000L;
        Result unmarshalled = new TextFilePrefixSourceMarshaller(config).read(item);
        if (!unmarshalled.supported()) {
          return new StrategyResult("Remote disabled automatic routing", UNSUPPORTED_PREFIXSOURCE, false);
        }
        if (unmarshalled.entries().isEmpty()) {
          return new StrategyResult("Remote publishes empty prefix file", UNSUPPORTED_PREFIXSOURCE, false);
        }

        final PrefixSource prefixSource = new FilePrefixSource(mavenProxyRepository, path, config);
        if (prefixFileAgeInDays < 1) {
View Full Code Here

Examples of org.tmatesoft.svn.core.internal.wc.admin.SVNAdminArea.entries()

            if (!dirCreated && to.isDirectory() && !force) {
                SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.WC_OBSTRUCTED_UPDATE, "''{0}'' already exists and will not be owerwritten unless forced", to);
                SVNErrorManager.error(err, SVNLogType.WC);
            }
            // read entries
            for (Iterator ents = adminArea.entries(false); ents.hasNext();) {
                SVNEntry childEntry = (SVNEntry) ents.next();
                if (childEntry.isDirectory()) {
                    if (adminArea.getThisDirName().equals(childEntry.getName())) {
                        continue;
                    } else if (depth == SVNDepth.INFINITY) {
View Full Code Here

Examples of org.vertx.java.core.MultiMap.entries()

        Vertx vertx = VertxFactory.newVertx();
        vertx.createHttpServer().requestHandler((HttpServerRequest request) -> {
            System.out.println("A request has arrived on the server!");
            System.out.println(request.uri());
            MultiMap params = request.params();
            params.entries().stream().forEach((entry) -> {
                try {
                    System.out.println(entry.getKey() + "       " + entry.getValue());
                    Put p = new Put(Bytes.toBytes("row" + System.currentTimeMillis()));
                    p.add(Bytes.toBytes("Value"), Bytes.toBytes("col2"), Bytes.toBytes(request.uri()));
                    table.put(p);
View Full Code Here

Examples of railo.commons.io.cache.Cache.entries()

  @Override
  public void clearUnused(PageContext pc) throws IOException {
   
    Cache c = getCache(pc);
    List<CacheEntry> entries = c.entries();
    if(entries.size()<100) return;
   
    Iterator<CacheEntry> it = entries.iterator();
    while(it.hasNext()){
      it.next(); // touch them to makes sure the cache remove them, not really good, cache must do this by itself
View Full Code Here

Examples of voldemort.store.readonly.ReadOnlyStorageEngine.entries()

            }
        }

        // ... and entry iterator
        try {
            ClosableIterator<Pair<ByteArray, Versioned<byte[]>>> entryIterator = engine.entries();
            if(!saveKeys) {
                fail("Should have thrown an exception since this RO format does not support iterators");
            }
            int numElements = 0;
            while(entryIterator.hasNext()) {
View Full Code Here

Examples of xbird.util.collections.ints.Int2LongOpenHash.Int2LongOpenLRUMap.entries()

        // eviction order is now 2,3,1
        map.put(4, 4L);
        // 2 should be evicted (then 3,1,4)
        int[] keys = new int[3];
        int i = 0;
        IMapIterator itor = map.entries();
        while(itor.next() != -1) {
            keys[i++] = itor.getKey();
        }
        Assert.assertEquals(keys[0], 3);
        Assert.assertEquals(keys[1], 1);
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.