Package org.geowebcache.storage

Examples of org.geowebcache.storage.DefaultStorageFinder


    public QuotaStore getQuotaStore(ApplicationContext ctx, String quotaStoreName) throws IOException, ConfigurationException {
        if (!STORE_NAME.equals(quotaStoreName)) {
            return null;
        }

        DefaultStorageFinder cacheDirFinder = (DefaultStorageFinder) ctx.getBean("gwcDefaultStorageFinder");
        TilePageCalculator tilePageCalculator = (TilePageCalculator) ctx
                .getBean("gwcTilePageCalculator");
        try {
            BDBQuotaStore bdbQuotaStore = new BDBQuotaStore(cacheDirFinder, tilePageCalculator);
            bdbQuotaStore.startUp();
View Full Code Here



    public void testMigration(boolean migrateCreationDates) throws Exception {
        System.setProperty("MIGRATE_CREATION_DATES", String.valueOf(migrateCreationDates));
        // the remover does the migration on instantiation
        MetastoreRemover remover = new MetastoreRemover(new DefaultStorageFinder(new ApplicationContextProvider()) {
            @Override
            public synchronized String getDefaultPath() throws ConfigurationException {
                return root.toString();
            }
        });
View Full Code Here

    }

    public QuotaStore getQuotaStore(ApplicationContext ctx, String quotaStoreName)
            throws ConfigurationException {
        // lookup dependencies in the classpath
        DefaultStorageFinder cacheDirFinder = (DefaultStorageFinder) ctx
                .getBean("gwcDefaultStorageFinder");
        TilePageCalculator tilePageCalculator = (TilePageCalculator) ctx
                .getBean("gwcTilePageCalculator");

        DataSource ds = null;
View Full Code Here

        return getJDBCStore(cacheDirFinder, tilePageCalculator, config);
    }
   
    public QuotaStore getJDBCStore(ApplicationContext ctx, JDBCConfiguration config) throws ConfigurationException {
        // lookup dependencies in the classpath
        DefaultStorageFinder cacheDirFinder = (DefaultStorageFinder) ctx
                .getBean("gwcDefaultStorageFinder");
        TilePageCalculator tilePageCalculator = (TilePageCalculator) ctx
                .getBean("gwcTilePageCalculator");

        return getJDBCStore(cacheDirFinder, tilePageCalculator, config);
View Full Code Here

TOP

Related Classes of org.geowebcache.storage.DefaultStorageFinder

Copyright © 2018 www.massapicom. 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.