Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
f6bacab
Build outline structure of Truncate mechanism
alanmcdade Apr 3, 2025
0b2a945
Tools cleaned up formating
alanmcdade Apr 3, 2025
83f3ea3
Fixed BulkDeleteTaskTests
alanmcdade Apr 3, 2025
ec38427
Created framework to unit test BulkDeleteTask
alanmcdade Apr 4, 2025
c6d31a0
Created framework to unit test BulkDeleteTask
alanmcdade Apr 4, 2025
ef179b8
Moved BulkDeleteTaskTests that are idenpendent of DeleteTileRanges in…
alanmcdade Apr 4, 2025
02e55d1
Created framework to unit test BulkDeleteTask
alanmcdade Apr 4, 2025
ef0fbca
Moved DeleteTileLayer that are independent of BulkDeleteTask into own…
alanmcdade Apr 4, 2025
e38ca7b
Added unit tests for DeleteTileObject.
alanmcdade Apr 4, 2025
574bc94
Fixed Locking with decorator
alanmcdade Apr 5, 2025
562bf6e
Refactored packaging to show intent and remove clutter from s3 package
alanmcdade Apr 5, 2025
6499200
Unit tests for LoggingCallbackDecorated
alanmcdade Apr 5, 2025
61d676d
Unit tests for NotificationDecorator
alanmcdade Apr 5, 2025
b3f15b0
Renamed CaptureCallback field
alanmcdade Apr 6, 2025
82eb022
Unit tests for DeleteTilePrefix
alanmcdade Apr 6, 2025
cb46ea9
Unit tests for DeleteTiles for ParameterIds
alanmcdade Apr 6, 2025
79860f5
Clean up code using spotless etc
alanmcdade Apr 6, 2025
6231436
Added TileIteratorSupplier
alanmcdade Apr 7, 2025
0f4580a
Cleaned up warnings
alanmcdade Apr 7, 2025
93832c7
Add byte count to checks and TileObject deletion
alanmcdade Apr 7, 2025
33c7f4b
Removed direct references to S3BlobStore logger
alanmcdade Apr 7, 2025
563612e
Shutdown variable is assigned but never accessed, removed
alanmcdade Apr 7, 2025
c97efc6
Removed unused variable
alanmcdade Apr 7, 2025
4390104
Updated code to issue pending deletes.
alanmcdade Apr 7, 2025
cb51533
Maven formatted code
alanmcdade Apr 7, 2025
f4f1fd9
A few changes for PMD
alanmcdade Apr 7, 2025
fc1af98
Fixed issue where size was not being passed through to callbacks.
alanmcdade Apr 7, 2025
7485be9
Fixed issue where size was not being passed through to callbacks.
alanmcdade Apr 7, 2025
a3faa64
Fixed issue where parametersID is not giving a default value when it …
alanmcdade Apr 7, 2025
e321917
Fixed regex and changed it to have named capture groups
alanmcdade Apr 8, 2025
7714391
Fixed no wild card imports
alanmcdade Apr 8, 2025
217cdad
Fixed missing an @Override annotation
alanmcdade Apr 8, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions geowebcache/core/src/main/java/org/geowebcache/demo/Demo.java
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ public class Demo {

private static Logger LOGGER = Logging.getLogger(Demo.class.getName());

@SuppressWarnings("DefaultCharset")
public static void makeMap(
TileLayerDispatcher tileLayerDispatcher,
GridSetBroker gridSetBroker,
Expand Down Expand Up @@ -118,6 +119,7 @@ public static void makeMap(
}
}

@SuppressWarnings("JdkObsolete")
private static String generateHTML(TileLayerDispatcher tileLayerDispatcher, GridSetBroker gridSetBroker)
throws GeoWebCacheException {
String reloadPath = "rest/reload";
Expand Down Expand Up @@ -216,6 +218,7 @@ private static void tableRows(
}
}

@SuppressWarnings("ReferenceEquality")
private static void outputKMLSupport(StringBuffer buf, TileLayer layer) {
buf.append("   KML: [");
String prefix = "";
Expand Down Expand Up @@ -378,6 +381,7 @@ private static String generateHTML(TileLayer layer, String gridSetStr, String fo
return buf.append("</body>\n</html>").toString();
}

@SuppressWarnings("StringCaseLocaleUsage")
private static String makeModifiableParameters(TileLayer tl) {
List<ParameterFilter> parameterFilters = tl.getParameterFilters();
if (parameterFilters == null || parameterFilters.isEmpty()) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,18 @@ public long[] getXYZ() {
return xyz;
}

public long getX() {
return xyz[0];
}

public long getY() {
return xyz[1];
}

public long getZ() {
return xyz[2];
}

// public int getSrs() {
// return srs;
// }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ public TileRange(
if (bounds != null) {
// could be null in case calling code is only interested in a subset of zoom
// levels
this.rangeBounds.put(Integer.valueOf((int) bounds[4]), bounds);
this.rangeBounds.put((int) bounds[4], bounds);
}
}
}
Expand All @@ -102,9 +102,7 @@ public boolean contains(long x, long y, int z) {

long[] rB = rangeBounds(z);

if (rB[0] <= x && rB[2] >= x && rB[1] <= y && rB[3] >= y) {
return true;
}
return rB[0] <= x && rB[2] >= x && rB[1] <= y && rB[3] >= y;
}
return false;
}
Expand All @@ -118,6 +116,18 @@ public String getParametersId() {
return parametersId;
}

/** @return the parameters id, or {@code null} if unset */
public String getParametersIdOrDefault() {
if (parametersId == null) {
Map<String, String> parameters = this.getParameters();
parametersId = ParametersUtils.getId(parameters);
if (parametersId == null) {
parametersId = "default";
}
}
return parametersId;
}

/** @return the zoomStart */
public int getZoomStart() {
return zoomStart;
Expand Down Expand Up @@ -161,7 +171,7 @@ public long[] rangeBounds(final int zoomLevel) {
if (zoomLevel > zoomStop) {
throw new IllegalArgumentException(zoomLevel + " > zoomStop (" + zoomStop + ")");
}
long[] zlevelBounds = rangeBounds.get(Integer.valueOf(zoomLevel));
long[] zlevelBounds = rangeBounds.get(zoomLevel);
if (zlevelBounds == null) {
throw new IllegalStateException("Found no range bounds for z level " + zoomLevel + ": " + rangeBounds);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@ public final class TMSKeyBuilder {
public static final String PARAMETERS_METADATA_OBJECT_SUFFIX = ".properties";
public static final String PENDING_DELETES = "_pending_deletes.properties";

public String getPrefix() {
return prefix;
}

private String prefix;

private TileLayerDispatcher layers;
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
package org.geowebcache.s3;

import com.amazonaws.SdkClientException;
import com.amazonaws.services.s3.AmazonS3;
import com.amazonaws.services.s3.model.DeleteObjectsRequest;
import com.amazonaws.services.s3.model.DeleteObjectsResult;

public class AmazonS3Wrapper {
private final AmazonS3 conn;

public AmazonS3Wrapper(AmazonS3 conn) {
this.conn = conn;
}

public DeleteObjectsResult deleteObjects(DeleteObjectsRequest deleteObjectsRequest) throws SdkClientException {
return conn.deleteObjects(deleteObjectsRequest);
}
}
Loading
Loading