-
Notifications
You must be signed in to change notification settings - Fork 80
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move GuavaSharedCache to its own module under storage/cache
Signed-off-by: Gabriel Roldan <groldan@boundlessgeo.com>
- Loading branch information
Gabriel Roldan
committed
Nov 29, 2018
1 parent
48ba103
commit 9b9b68e
Showing
13 changed files
with
182 additions
and
210 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
...affeine/src/test/java/org/locationtech/geogig/cache/caffeine/CaffeineSharedCacheTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
/* Copyright (c) 2018 Boundless and others. | ||
* All rights reserved. This program and the accompanying materials | ||
* are made available under the terms of the Eclipse Distribution License v1.0 | ||
* which accompanies this distribution, and is available at | ||
* https://www.eclipse.org/org/documents/edl-v10.html | ||
* | ||
* Contributors: | ||
* Gabriel Roldan - initial implementation | ||
*/ | ||
package org.locationtech.geogig.cache.caffeine; | ||
|
||
import org.locationtech.geogig.storage.cache.SharedCache; | ||
import org.locationtech.geogig.storage.cache.SharedCacheTest; | ||
|
||
public class CaffeineSharedCacheTest extends SharedCacheTest { | ||
|
||
protected @Override SharedCache createCache(int l1Capacity, long maxCacheSizeBytes) { | ||
return new CaffeineSharedCache(l1Capacity, maxCacheSizeBytes); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
<?xml version="1.0" encoding="ISO-8859-1"?> | ||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> | ||
<modelVersion>4.0.0</modelVersion> | ||
|
||
<parent> | ||
<groupId>org.locationtech.geogig</groupId> | ||
<artifactId>geogig-storage-cache</artifactId> | ||
<version>1.4-SNAPSHOT</version> | ||
</parent> | ||
|
||
<artifactId>geogig-cache-guava</artifactId> | ||
<packaging>jar</packaging> | ||
<name>Guava Cache implementation of SharedCache</name> | ||
|
||
<build> | ||
<plugins> | ||
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-jar-plugin</artifactId> | ||
<configuration> | ||
<archive> | ||
<manifestEntries> | ||
<Automatic-Module-Name>geogig.storage.caffeine</Automatic-Module-Name> | ||
</manifestEntries> | ||
</archive> | ||
</configuration> | ||
</plugin> | ||
</plugins> | ||
</build> | ||
<dependencies> | ||
<dependency> | ||
<groupId>com.github.ben-manes.caffeine</groupId> | ||
<artifactId>caffeine</artifactId> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.locationtech.geogig</groupId> | ||
<artifactId>geogig-core</artifactId> | ||
<version>${project.version}</version> | ||
</dependency> | ||
<!-- Test scope dependencies --> | ||
|
||
<dependency> | ||
<groupId>ch.qos.logback</groupId> | ||
<artifactId>logback-core</artifactId> | ||
<scope>test</scope> | ||
</dependency> | ||
<dependency> | ||
<groupId>ch.qos.logback</groupId> | ||
<artifactId>logback-classic</artifactId> | ||
<scope>test</scope> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.locationtech.geogig</groupId> | ||
<artifactId>geogig-core</artifactId> | ||
<version>${project.version}</version> | ||
<scope>test</scope> | ||
<classifier>tests</classifier> | ||
</dependency> | ||
<dependency> | ||
<groupId>junit</groupId> | ||
<artifactId>junit</artifactId> | ||
<scope>test</scope> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.mockito</groupId> | ||
<artifactId>mockito-all</artifactId> | ||
<scope>test</scope> | ||
</dependency> | ||
</dependencies> | ||
|
||
</project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
...e/cache/guava/src/test/java/org/locationtech/geogig/cache/guava/GuavaSharedCacheTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
/* Copyright (c) 2018 Boundless and others. | ||
* All rights reserved. This program and the accompanying materials | ||
* are made available under the terms of the Eclipse Distribution License v1.0 | ||
* which accompanies this distribution, and is available at | ||
* https://www.eclipse.org/org/documents/edl-v10.html | ||
* | ||
* Contributors: | ||
* Gabriel Roldan - initial implementation | ||
*/ | ||
package org.locationtech.geogig.cache.guava; | ||
|
||
import org.locationtech.geogig.storage.cache.SharedCache; | ||
import org.locationtech.geogig.storage.cache.SharedCacheTest; | ||
|
||
public class GuavaSharedCacheTest extends SharedCacheTest{ | ||
|
||
protected @Override SharedCache createCache(int l1Capacity, long maxCacheSizeBytes) { | ||
return new GuavaSharedCache(l1Capacity, maxCacheSizeBytes); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<?xml version="1.0" encoding="ISO-8859-1"?> | ||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> | ||
<modelVersion>4.0.0</modelVersion> | ||
|
||
<parent> | ||
<groupId>org.locationtech.geogig</groupId> | ||
<artifactId>geogig</artifactId> | ||
<version>1.4-SNAPSHOT</version> | ||
<relativePath>../parent/pom.xml</relativePath> | ||
</parent> | ||
|
||
<artifactId>geogig-storage-cache</artifactId> | ||
<packaging>pom</packaging> | ||
<name>RevObject cache implementations</name> | ||
|
||
<modules> | ||
<module>guava</module> | ||
<module>caffeine</module> | ||
</modules> | ||
</project> |
Oops, something went wrong.