Examples of reset()


Examples of org.geoserver.gwc.layer.CatalogConfiguration.reset()

     * Flush caches
     */
    void reset() {
        CatalogConfiguration c = GeoServerExtensions.bean(CatalogConfiguration.class);
        if (c != null) {
            c.reset();
        }
    }

    public LockProvider getLockProvider() {
        return lockProvider;
View Full Code Here

Examples of org.geotools.data.vpf.file.VPFFile.reset()

     */
    public VPFLibrary(File dir, URI namespace) throws IOException, SchemaException {
        // read libraries info
        String vpfTableName = new File(dir, LIBRARY_HEADER_TABLE).toString();
        VPFFile lhtFile = VPFFileFactory.getInstance().getFile(vpfTableName);
        lhtFile.reset();
  this.namespace = namespace;
        try {
            lhtFile.readFeature(); // check for errors
        } catch (IllegalAttributeException exc) {
            exc.printStackTrace();
View Full Code Here

Examples of org.geotools.feature.simple.SimpleFeatureBuilder.reset()

                    features.add( fb.buildFeature( null ) );
                    bounds = new ReferencedEnvelope( minX, maxX, minY, maxY, layer.getCRS() );
                }
                else
                {
                    fb.reset();
                }
            }
        }
        catch (Throwable t)
        {
View Full Code Here

Examples of org.geotools.feature.visitor.CountVisitor.reset()

           
            // Creating a CoverageSliceCatalogSource and check if it behaves correctly
            CoverageSlicesCatalogSource src = new CoverageSlicesCatalogSource(sliceCat, "2");
            assertEquals(3, src.getCount(q));
            SimpleFeatureCollection coll = src.getGranules(q);
            cv.reset();
            coll.accepts(cv, null);
            assertEquals(3, cv.getCount());
            assertTrue(src.getBounds(q).contains(
                    referencedEnvelope.toBounds(referencedEnvelope.getCoordinateReferenceSystem())));
            assertEquals(src.getSchema(), schema);
View Full Code Here

Examples of org.geotools.feature.visitor.UniqueVisitor.reset()

                listSize = visitor.getResult().toList().size();
                if(maxFeatures == null || maxFeatures > listSize) {
                    maxFeatures = listSize;
                }
                // Reset visitor and set pagination
                visitor.reset();
                if(startIndex != null) {
                    visitor.setStartIndex(startIndex);
                }
                if(maxFeatures != null) {
                    visitor.setMaxFeatures(maxFeatures);
View Full Code Here

Examples of org.geotools.filter.expression.ExpressionBuilder.reset()

    @Test
    public void expression() {
        ExpressionBuilder b = new ExpressionBuilder();
        assertNotNull(b.build());
        assertNull(b.unset().build());
        assertEquals(Expression.NIL, b.reset().build());
        assertNotNull(b.reset().literal(1).build());

        assertEquals(b.unset().literal(1).build(), b.reset().literal(1).build());
    }
View Full Code Here

Examples of org.gitective.core.filter.commit.AuthorSetFilter.reset()

    CommitFinder service = new CommitFinder(testRepo);
    service.setFilter(filter);
    service.find();
    assertEquals(1, filter.getPersons().size());
    assertTrue(filter.getPersons().contains(author));
    filter.reset();
    assertTrue(filter.getPersons().isEmpty());
    assertFalse(filter.getPersons().contains(author));
  }
}
View Full Code Here

Examples of org.gitective.core.filter.commit.BugSetFilter.reset()

    BugSetFilter filter = new BugSetFilter();
    assertEquals(0, filter.getBugs().size());
    new CommitFinder(testRepo).setFilter(filter).find();
    assertEquals(1, filter.getBugs().size());
    filter.reset();
    assertEquals(0, filter.getBugs().size());
    new CommitFinder(testRepo).setFilter(filter).find();
    assertEquals(1, filter.getBugs().size());
  }
}
View Full Code Here

Examples of org.gitective.core.filter.commit.CommitCountFilter.reset()

    CommitFinder service = new CommitFinder(testRepo);
    CommitCountFilter count = new CommitCountFilter();
    service.setFilter(new AndCommitFilter(new CommitLimitFilter(1), count));
    service.find();
    assertEquals(1, count.getCount());
    count.reset();
    service.setFilter(new AndCommitFilter(new CommitLimitFilter(3), count));
    service.find();
    assertEquals(3, count.getCount());
  }
}
View Full Code Here

Examples of org.gitective.core.filter.commit.CommitCursorFilter.reset()

    while (commit != null) {
      service.findFrom(commit);
      assertEquals(limit.getLimit(), bucket.getCommits().size());
      commits.removeAll(bucket.getCommits());
      commit = cursor.getLast();
      cursor.reset();
      chunks++;
    }
    assertEquals(commitCount / limit.getLimit(), chunks);
    assertTrue(commits.isEmpty());
  }
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.