Search in sources :

Example 6 with Hints

use of org.locationtech.geogig.repository.Hints in project GeoGig by boundlessgeo.

the class JEGraphDatabaseV2StressTest method createDatabase.

@Override
protected GraphDatabase createDatabase(TestPlatform platform) {
    File root = platform.pwd();
    Preconditions.checkState(new File(root, ".geogig").exists());
    envProvider = new EnvironmentBuilder(platform);
    ConfigDatabase configDB = new IniFileConfigDatabase(platform);
    return new JEGraphDatabase_v0_1(configDB, envProvider, new Hints());
}
Also used : Hints(org.locationtech.geogig.repository.Hints) ConfigDatabase(org.locationtech.geogig.storage.ConfigDatabase) IniFileConfigDatabase(org.locationtech.geogig.storage.fs.IniFileConfigDatabase) File(java.io.File) IniFileConfigDatabase(org.locationtech.geogig.storage.fs.IniFileConfigDatabase)

Example 7 with Hints

use of org.locationtech.geogig.repository.Hints in project GeoGig by boundlessgeo.

the class JEGraphDatabaseV2Test method createDatabase.

@Override
protected GraphDatabase createDatabase(Platform platform) throws Exception {
    File root = platform.pwd();
    Preconditions.checkState(new File(root, ".geogig").exists());
    envProvider = new EnvironmentBuilder(platform);
    ConfigDatabase configDB = new IniFileConfigDatabase(platform);
    return new JEGraphDatabase_v0_2(configDB, envProvider, new Hints());
}
Also used : Hints(org.locationtech.geogig.repository.Hints) ConfigDatabase(org.locationtech.geogig.storage.ConfigDatabase) IniFileConfigDatabase(org.locationtech.geogig.storage.fs.IniFileConfigDatabase) File(java.io.File) IniFileConfigDatabase(org.locationtech.geogig.storage.fs.IniFileConfigDatabase)

Example 8 with Hints

use of org.locationtech.geogig.repository.Hints in project GeoGig by boundlessgeo.

the class JEObjectDatabaseTest method setUp.

@Before
public void setUp() {
    File root = folder.getRoot();
    folder.newFolder(".geogig");
    File home = folder.newFolder("home");
    platform = new TestPlatform(root);
    platform.setUserHome(home);
    hints = new Hints();
    envProvider = new EnvironmentBuilder(platform);
}
Also used : Hints(org.locationtech.geogig.repository.Hints) TestPlatform(org.locationtech.geogig.api.TestPlatform) File(java.io.File) Before(org.junit.Before)

Aggregations

Hints (org.locationtech.geogig.repository.Hints)8 File (java.io.File)5 ConfigDatabase (org.locationtech.geogig.storage.ConfigDatabase)4 IniFileConfigDatabase (org.locationtech.geogig.storage.fs.IniFileConfigDatabase)4 JCommander (com.beust.jcommander.JCommander)1 VisibleForTesting (com.google.common.annotations.VisibleForTesting)1 Map (java.util.Map)1 Before (org.junit.Before)1 DefaultPlatform (org.locationtech.geogig.api.DefaultPlatform)1 Platform (org.locationtech.geogig.api.Platform)1 TestPlatform (org.locationtech.geogig.api.TestPlatform)1 RequiresRepository (org.locationtech.geogig.cli.annotation.RequiresRepository)1 Repository (org.locationtech.geogig.repository.Repository)1 DeduplicationService (org.locationtech.geogig.storage.DeduplicationService)1