This is an automated email from the ASF dual-hosted git repository. bchapuis pushed a commit to branch workflow in repository https://gitbox.apache.org/repos/asf/incubator-baremaps.git
commit e8198440a8153ca546e4d64485973ee72ea1578b Author: Bertil Chapuis <[email protected]> AuthorDate: Fri Nov 17 14:06:23 2023 +0100 Remove unused methods --- .../apache/baremaps/cli/database/UpdateOsm.java | 6 +- .../tasks/CreateGeocoderOpenStreetMap.java | 18 ---- .../workflow/tasks/CreateGeonamesIndex.java | 20 ---- .../baremaps/workflow/tasks/CreateIplocIndex.java | 26 ----- .../baremaps/workflow/tasks/DecompressFile.java | 59 ----------- .../baremaps/workflow/tasks/DownloadUrl.java | 29 ------ .../baremaps/workflow/tasks/ExecuteCommand.java | 23 ----- .../apache/baremaps/workflow/tasks/ExecuteSql.java | 61 ----------- .../baremaps/workflow/tasks/ExecuteSqlScript.java | 43 -------- .../baremaps/workflow/tasks/ExportVectorTiles.java | 44 -------- .../workflow/tasks/ImportDaylightFeatures.java | 43 -------- .../workflow/tasks/ImportDaylightTranslations.java | 43 -------- .../baremaps/workflow/tasks/ImportGeoPackage.java | 79 -------------- .../baremaps/workflow/tasks/ImportOsmOsc.java | 97 ----------------- .../baremaps/workflow/tasks/ImportOsmPbf.java | 115 --------------------- .../baremaps/workflow/tasks/ImportShapefile.java | 79 -------------- .../apache/baremaps/workflow/tasks/LogMessage.java | 25 ----- .../apache/baremaps/workflow/tasks/UngzipFile.java | 43 -------- .../apache/baremaps/workflow/tasks/UnzipFile.java | 43 -------- .../baremaps/workflow/tasks/UpdateOsmDatabase.java | 52 +--------- 20 files changed, 6 insertions(+), 942 deletions(-) diff --git a/baremaps-cli/src/main/java/org/apache/baremaps/cli/database/UpdateOsm.java b/baremaps-cli/src/main/java/org/apache/baremaps/cli/database/UpdateOsm.java index 886fd0a6..832a6f72 100644 --- a/baremaps-cli/src/main/java/org/apache/baremaps/cli/database/UpdateOsm.java +++ b/baremaps-cli/src/main/java/org/apache/baremaps/cli/database/UpdateOsm.java @@ -41,9 +41,13 @@ public class UpdateOsm implements Callable<Integer> { description = "The projection used by the database.") private int srid = 3857; + @Option(names = {"--replication-url"}, paramLabel = "REPLICATION_URL", + description = "The replication url of the OpenStreetMap server.") + private String replicationUrl = "https://planet.osm.org/replication/hour"; + @Override public Integer call() throws Exception { - new UpdateOsmDatabase(database, srid) + new UpdateOsmDatabase(database, srid, replicationUrl) .execute(new WorkflowContext()); return 0; } diff --git a/baremaps-core/src/main/java/org/apache/baremaps/workflow/tasks/CreateGeocoderOpenStreetMap.java b/baremaps-core/src/main/java/org/apache/baremaps/workflow/tasks/CreateGeocoderOpenStreetMap.java index 81691994..c45cc086 100644 --- a/baremaps-core/src/main/java/org/apache/baremaps/workflow/tasks/CreateGeocoderOpenStreetMap.java +++ b/baremaps-core/src/main/java/org/apache/baremaps/workflow/tasks/CreateGeocoderOpenStreetMap.java @@ -61,29 +61,11 @@ public class CreateGeocoderOpenStreetMap implements Task { private Path indexDirectory; - public CreateGeocoderOpenStreetMap() {} - public CreateGeocoderOpenStreetMap(Path file, Path indexDirectory) { this.file = file; this.indexDirectory = indexDirectory; } - public Path getFile() { - return file; - } - - public void setFile(Path file) { - this.file = file; - } - - public Path getIndexDirectory() { - return indexDirectory; - } - - public void setIndexDirectory(Path indexDirectory) { - this.indexDirectory = indexDirectory; - } - @Override public void execute(WorkflowContext context) throws Exception { diff --git a/baremaps-core/src/main/java/org/apache/baremaps/workflow/tasks/CreateGeonamesIndex.java b/baremaps-core/src/main/java/org/apache/baremaps/workflow/tasks/CreateGeonamesIndex.java index 884c39ab..49fc25cc 100644 --- a/baremaps-core/src/main/java/org/apache/baremaps/workflow/tasks/CreateGeonamesIndex.java +++ b/baremaps-core/src/main/java/org/apache/baremaps/workflow/tasks/CreateGeonamesIndex.java @@ -45,31 +45,11 @@ public class CreateGeonamesIndex implements Task { private Path indexDirectory; - public CreateGeonamesIndex() { - - } - public CreateGeonamesIndex(Path dataFile, Path indexDirectory) { this.dataFile = dataFile; this.indexDirectory = indexDirectory; } - public Path getDataFile() { - return dataFile; - } - - public void setDataFile(Path dataFile) { - this.dataFile = dataFile; - } - - public Path getIndexDirectory() { - return indexDirectory; - } - - public void setIndexDirectory(Path indexDirectory) { - this.indexDirectory = indexDirectory; - } - @Override public void execute(WorkflowContext context) throws Exception { var directory = MMapDirectory.open(indexDirectory); diff --git a/baremaps-core/src/main/java/org/apache/baremaps/workflow/tasks/CreateIplocIndex.java b/baremaps-core/src/main/java/org/apache/baremaps/workflow/tasks/CreateIplocIndex.java index a3da337a..01cedbfb 100644 --- a/baremaps-core/src/main/java/org/apache/baremaps/workflow/tasks/CreateIplocIndex.java +++ b/baremaps-core/src/main/java/org/apache/baremaps/workflow/tasks/CreateIplocIndex.java @@ -46,38 +46,12 @@ public class CreateIplocIndex implements Task { private List<Path> nicPaths; private Path targetIplocIndexPath; - public CreateIplocIndex() {} - public CreateIplocIndex(Path geonamesIndexPath, List<Path> nicPaths, Path targetIplocIndexPath) { this.geonamesIndexPath = geonamesIndexPath; this.nicPaths = nicPaths; this.targetIplocIndexPath = targetIplocIndexPath; } - public Path getGeonamesIndexPath() { - return geonamesIndexPath; - } - - public void setGeonamesIndexPath(Path geonamesIndexPath) { - this.geonamesIndexPath = geonamesIndexPath; - } - - public List<Path> getNicPaths() { - return nicPaths; - } - - public void setNicPaths(List<Path> nicPaths) { - this.nicPaths = nicPaths; - } - - public Path getTargetIplocIndexPath() { - return targetIplocIndexPath; - } - - public void setTargetIplocIndexPath(Path targetIplocIndexPath) { - this.targetIplocIndexPath = targetIplocIndexPath; - } - @Override public void execute(WorkflowContext context) throws Exception { try (var directory = MMapDirectory.open(geonamesIndexPath); diff --git a/baremaps-core/src/main/java/org/apache/baremaps/workflow/tasks/DecompressFile.java b/baremaps-core/src/main/java/org/apache/baremaps/workflow/tasks/DecompressFile.java index 37b0ac0e..272ad1a3 100644 --- a/baremaps-core/src/main/java/org/apache/baremaps/workflow/tasks/DecompressFile.java +++ b/baremaps-core/src/main/java/org/apache/baremaps/workflow/tasks/DecompressFile.java @@ -57,11 +57,6 @@ public class DecompressFile implements Task { private Path target; private Compression compression; - /** - * Constructs a {@code DecompressFile}. - */ - public DecompressFile() {} - /** * Constructs a {@code DecompressFile}. * @@ -75,60 +70,6 @@ public class DecompressFile implements Task { this.compression = compression; } - /** - * Returns the source file. - * - * @return the source file - */ - public Path getSource() { - return source; - } - - /** - * Sets the source file. - * - * @param source the source file - */ - public void setSource(Path source) { - this.source = source; - } - - /** - * Returns the target file. - * - * @return the target file - */ - public Path getTarget() { - return target; - } - - /** - * Sets the target file. - * - * @param target the target file - */ - public void setTarget(Path target) { - this.target = target; - } - - /** - * Returns the compression format. - * - * @return the compression format - */ - public Compression getCompression() { - return compression; - } - - /** - * Sets the compression format. - * - * @param compression the compression format - */ - public void setCompression(Compression compression) { - this.compression = compression; - } - /** * {@inheritDoc} */ diff --git a/baremaps-core/src/main/java/org/apache/baremaps/workflow/tasks/DownloadUrl.java b/baremaps-core/src/main/java/org/apache/baremaps/workflow/tasks/DownloadUrl.java index 767de347..d25167d2 100644 --- a/baremaps-core/src/main/java/org/apache/baremaps/workflow/tasks/DownloadUrl.java +++ b/baremaps-core/src/main/java/org/apache/baremaps/workflow/tasks/DownloadUrl.java @@ -50,11 +50,6 @@ public class DownloadUrl implements Task { private Boolean replaceExisting; - /** - * Constructs an {@code DownloadUrl}. - */ - public DownloadUrl() {} - /** * Constructs an {@code DownloadUrl}. * @@ -68,30 +63,6 @@ public class DownloadUrl implements Task { this.replaceExisting = replaceExisting; } - public String getUrl() { - return url; - } - - public void setUrl(String url) { - this.url = url; - } - - public Path getPath() { - return path; - } - - public void setPath(Path path) { - this.path = path; - } - - public Boolean getReplaceExisting() { - return replaceExisting; - } - - public void setReplaceExisting(Boolean replaceExisting) { - this.replaceExisting = replaceExisting; - } - @Override public void execute(WorkflowContext context) throws Exception { var targetUrl = new URL(url); diff --git a/baremaps-core/src/main/java/org/apache/baremaps/workflow/tasks/ExecuteCommand.java b/baremaps-core/src/main/java/org/apache/baremaps/workflow/tasks/ExecuteCommand.java index 6d273a09..a19b23d6 100644 --- a/baremaps-core/src/main/java/org/apache/baremaps/workflow/tasks/ExecuteCommand.java +++ b/baremaps-core/src/main/java/org/apache/baremaps/workflow/tasks/ExecuteCommand.java @@ -33,11 +33,6 @@ public class ExecuteCommand implements Task { private String command; - /** - * Constructs an {@code ExecuteCommand}. - */ - public ExecuteCommand() {} - /** * Constructs an {@code ExecuteCommand}. * @@ -47,24 +42,6 @@ public class ExecuteCommand implements Task { this.command = command; } - /** - * Returns the bash command. - * - * @return the bash command - */ - public String getCommand() { - return command; - } - - /** - * Sets the bash command. - * - * @param command the bash command - */ - public void setCommand(String command) { - this.command = command; - } - /** * {@inheritDoc} */ diff --git a/baremaps-core/src/main/java/org/apache/baremaps/workflow/tasks/ExecuteSql.java b/baremaps-core/src/main/java/org/apache/baremaps/workflow/tasks/ExecuteSql.java index 96bb151e..7cd78544 100644 --- a/baremaps-core/src/main/java/org/apache/baremaps/workflow/tasks/ExecuteSql.java +++ b/baremaps-core/src/main/java/org/apache/baremaps/workflow/tasks/ExecuteSql.java @@ -44,13 +44,6 @@ public class ExecuteSql implements Task { private Boolean parallel; - /** - * Constructs an {@code ExecuteSql}. - */ - public ExecuteSql() { - - } - /** * Constructs an {@code ExecuteSql}. * @@ -64,60 +57,6 @@ public class ExecuteSql implements Task { this.parallel = parallel; } - /** - * Returns the database. - * - * @return the database - */ - public Object getDatabase() { - return database; - } - - /** - * Sets the database. - * - * @param database the database - */ - public void setDatabase(Object database) { - this.database = database; - } - - /** - * Returns the SQL file. - * - * @return the SQL file - */ - public Path getFile() { - return file; - } - - /** - * Sets the SQL file. - * - * @param file the SQL file - */ - public void setFile(Path file) { - this.file = file; - } - - /** - * Returns whether to execute the queries in parallel. - * - * @return whether to execute the queries in parallel - */ - public boolean isParallel() { - return parallel; - } - - /** - * Sets whether to execute the queries in parallel. - * - * @param parallel whether to execute the queries in parallel - */ - public void setParallel(boolean parallel) { - this.parallel = parallel; - } - /** * {@inheritDoc} */ diff --git a/baremaps-core/src/main/java/org/apache/baremaps/workflow/tasks/ExecuteSqlScript.java b/baremaps-core/src/main/java/org/apache/baremaps/workflow/tasks/ExecuteSqlScript.java index af8dff0d..efd3b3c2 100644 --- a/baremaps-core/src/main/java/org/apache/baremaps/workflow/tasks/ExecuteSqlScript.java +++ b/baremaps-core/src/main/java/org/apache/baremaps/workflow/tasks/ExecuteSqlScript.java @@ -39,13 +39,6 @@ public class ExecuteSqlScript implements Task { private Path file; - /** - * Constructs an {@code ExecuteSqlScript}. - */ - public ExecuteSqlScript() { - - } - /** * Constructs an {@code ExecuteSqlScript}. * @@ -57,42 +50,6 @@ public class ExecuteSqlScript implements Task { this.file = file; } - /** - * Returns the database. - * - * @return the database - */ - public Object getDatabase() { - return database; - } - - /** - * Sets the database. - * - * @param database the database - */ - public void setDatabase(Object database) { - this.database = database; - } - - /** - * Returns the SQL file. - * - * @return the SQL file - */ - public Path getFile() { - return file; - } - - /** - * Sets the SQL file. - * - * @param file the SQL file - */ - public void setFile(Path file) { - this.file = file; - } - /** * {@inheritDoc} */ diff --git a/baremaps-core/src/main/java/org/apache/baremaps/workflow/tasks/ExportVectorTiles.java b/baremaps-core/src/main/java/org/apache/baremaps/workflow/tasks/ExportVectorTiles.java index 7e54476a..d9bd63ae 100644 --- a/baremaps-core/src/main/java/org/apache/baremaps/workflow/tasks/ExportVectorTiles.java +++ b/baremaps-core/src/main/java/org/apache/baremaps/workflow/tasks/ExportVectorTiles.java @@ -61,10 +61,6 @@ public class ExportVectorTiles implements Task { private Integer batchArrayIndex; private Format format; - public ExportVectorTiles() { - - } - public ExportVectorTiles(Path tileset, Path repository, Integer batchArraySize, Integer batchArrayIndex, Format format) { this.tileset = tileset; @@ -74,46 +70,6 @@ public class ExportVectorTiles implements Task { this.format = format; } - public Path getTileset() { - return tileset; - } - - public void setTileset(Path tileset) { - this.tileset = tileset; - } - - public Path getRepository() { - return repository; - } - - public void setRepository(Path repository) { - this.repository = repository; - } - - public Integer getBatchArraySize() { - return batchArraySize; - } - - public void setBatchArraySize(Integer batchArraySize) { - this.batchArraySize = batchArraySize; - } - - public Integer getBatchArrayIndex() { - return batchArrayIndex; - } - - public void setBatchArrayIndex(Integer batchArrayIndex) { - this.batchArrayIndex = batchArrayIndex; - } - - public Format getFormat() { - return format; - } - - public void setFormat(Format format) { - this.format = format; - } - @Override public void execute(WorkflowContext context) throws Exception { var configReader = new ConfigReader(); diff --git a/baremaps-core/src/main/java/org/apache/baremaps/workflow/tasks/ImportDaylightFeatures.java b/baremaps-core/src/main/java/org/apache/baremaps/workflow/tasks/ImportDaylightFeatures.java index d116e339..af05f9f7 100644 --- a/baremaps-core/src/main/java/org/apache/baremaps/workflow/tasks/ImportDaylightFeatures.java +++ b/baremaps-core/src/main/java/org/apache/baremaps/workflow/tasks/ImportDaylightFeatures.java @@ -52,13 +52,6 @@ public class ImportDaylightFeatures implements Task { private Object database; - /** - * Constructs an {@code ImportDaylightFeatures}. - */ - public ImportDaylightFeatures() { - - } - /** * Constructs an {@code ImportDaylightFeatures}. * @@ -70,42 +63,6 @@ public class ImportDaylightFeatures implements Task { this.database = database; } - /** - * Returns the daylight file. - * - * @return the daylight file - */ - public Path getFile() { - return file; - } - - /** - * Sets the daylight file. - * - * @param file - */ - public void setFile(Path file) { - this.file = file; - } - - /** - * Returns the database. - * - * @return - */ - public Object getDatabase() { - return database; - } - - /** - * Sets the database. - * - * @param database - */ - public void setDatabase(Object database) { - this.database = database; - } - /** * {@inheritDoc} */ diff --git a/baremaps-core/src/main/java/org/apache/baremaps/workflow/tasks/ImportDaylightTranslations.java b/baremaps-core/src/main/java/org/apache/baremaps/workflow/tasks/ImportDaylightTranslations.java index 93ef1b09..f747f31f 100644 --- a/baremaps-core/src/main/java/org/apache/baremaps/workflow/tasks/ImportDaylightTranslations.java +++ b/baremaps-core/src/main/java/org/apache/baremaps/workflow/tasks/ImportDaylightTranslations.java @@ -64,13 +64,6 @@ public class ImportDaylightTranslations implements Task { private Object database; - /** - * Constructs an {@code ImportDaylightTranslations}. - */ - public ImportDaylightTranslations() { - - } - /** * Constructs an {@code ImportDaylightTranslations}. * @@ -82,42 +75,6 @@ public class ImportDaylightTranslations implements Task { this.database = database; } - /** - * Returns the daylight file. - * - * @return the daylight file - */ - public Path getFile() { - return file; - } - - /** - * Sets the daylight file. - * - * @param file the daylight file - */ - public void setFile(Path file) { - this.file = file; - } - - /** - * Returns the database. - * - * @return the database - */ - public Object getDatabase() { - return database; - } - - /** - * Sets the database. - * - * @param database the database - */ - public void setDatabase(Object database) { - this.database = database; - } - /** * {@inheritDoc} */ diff --git a/baremaps-core/src/main/java/org/apache/baremaps/workflow/tasks/ImportGeoPackage.java b/baremaps-core/src/main/java/org/apache/baremaps/workflow/tasks/ImportGeoPackage.java index c2e73f5a..9bfab836 100644 --- a/baremaps-core/src/main/java/org/apache/baremaps/workflow/tasks/ImportGeoPackage.java +++ b/baremaps-core/src/main/java/org/apache/baremaps/workflow/tasks/ImportGeoPackage.java @@ -43,13 +43,6 @@ public class ImportGeoPackage implements Task { private Integer sourceSRID; private Integer targetSRID; - /** - * Constructs an {@code ImportGeoPackage}. - */ - public ImportGeoPackage() { - - } - /** * Constructs an {@code ImportGeoPackage}. * @@ -65,78 +58,6 @@ public class ImportGeoPackage implements Task { this.targetSRID = targetSRID; } - /** - * Returns the GeoPackage file. - * - * @return the GeoPackage file - */ - public Path getFile() { - return file; - } - - /** - * Sets the GeoPackage file. - * - * @param file the GeoPackage file - */ - public void setFile(Path file) { - this.file = file; - } - - /** - * Returns the database. - * - * @return the database - */ - public Object getDatabase() { - return database; - } - - /** - * Sets the database. - * - * @param database the database - */ - public void setDatabase(Object database) { - this.database = database; - } - - /** - * Returns the source SRID. - * - * @return the source SRID - */ - public Integer getSourceSRID() { - return sourceSRID; - } - - /** - * Sets the source SRID. - * - * @param sourceSRID the source SRID - */ - public void setSourceSRID(Integer sourceSRID) { - this.sourceSRID = sourceSRID; - } - - /** - * Returns the target SRID. - * - * @return the target SRID - */ - public Integer getTargetSRID() { - return targetSRID; - } - - /** - * Sets the target SRID. - * - * @param targetSRID the target SRID - */ - public void setTargetSRID(Integer targetSRID) { - this.targetSRID = targetSRID; - } - /** * {@inheritDoc} */ diff --git a/baremaps-core/src/main/java/org/apache/baremaps/workflow/tasks/ImportOsmOsc.java b/baremaps-core/src/main/java/org/apache/baremaps/workflow/tasks/ImportOsmOsc.java index 045ce4c2..b6a731d1 100644 --- a/baremaps-core/src/main/java/org/apache/baremaps/workflow/tasks/ImportOsmOsc.java +++ b/baremaps-core/src/main/java/org/apache/baremaps/workflow/tasks/ImportOsmOsc.java @@ -56,13 +56,6 @@ public class ImportOsmOsc implements Task { private Integer srid; private Compression compression; - /** - * Constructs an {@code ImportOsmOsc}. - */ - public ImportOsmOsc() { - - } - /** * Constructs an {@code ImportOsmOsc}. * @@ -81,96 +74,6 @@ public class ImportOsmOsc implements Task { this.compression = compression; } - /** - * Returns the OSM OSC file. - * - * @return the OSM OSC file - */ - public Path getFile() { - return file; - } - - /** - * Sets the OSM OSC file. - * - * @param file - */ - public void setFile(Path file) { - this.file = file; - } - - /** - * Returns the cache directory. - * - * @return the cache directory - */ - public Path getCache() { - return cache; - } - - /** - * Sets the cache directory. - * - * @param cache the cache directory - */ - public void setCache(Path cache) { - this.cache = cache; - } - - /** - * Returns the database. - * - * @return the database - */ - public Object getDatabase() { - return database; - } - - /** - * Sets the database. - * - * @param database the database - */ - public void setDatabase(Object database) { - this.database = database; - } - - /** - * Returns the database SRID. - * - * @return the database SRID - */ - public Integer getSrid() { - return srid; - } - - /** - * Sets the database SRID. - * - * @param srid the database SRID - */ - public void setSrid(Integer srid) { - this.srid = srid; - } - - /** - * Returns the compression. - * - * @return the compression - */ - public Compression getCompression() { - return compression; - } - - /** - * Sets the compression. - * - * @param compression the compression - */ - public void setCompression(Compression compression) { - this.compression = compression; - } - /** * {@inheritDoc} */ diff --git a/baremaps-core/src/main/java/org/apache/baremaps/workflow/tasks/ImportOsmPbf.java b/baremaps-core/src/main/java/org/apache/baremaps/workflow/tasks/ImportOsmPbf.java index d996037c..34364056 100644 --- a/baremaps-core/src/main/java/org/apache/baremaps/workflow/tasks/ImportOsmPbf.java +++ b/baremaps-core/src/main/java/org/apache/baremaps/workflow/tasks/ImportOsmPbf.java @@ -62,13 +62,6 @@ public class ImportOsmPbf implements Task { private Integer databaseSrid; private Boolean replaceExisting; - /** - * Constructs an {@code ImportOsmPbf}. - */ - public ImportOsmPbf() { - - } - /** * Constructs an {@code ImportOsmPbf}. * @@ -89,114 +82,6 @@ public class ImportOsmPbf implements Task { this.replaceExisting = replaceExisting; } - /** - * Returns the OSM PBF file. - * - * @return the OSM PBF file - */ - public Path getFile() { - return file; - } - - /** - * Sets the OSM PBF file. - * - * @param file the OSM PBF file - */ - public void setFile(Path file) { - this.file = file; - } - - /** - * Returns the cache directory. - * - * @return the cache directory - */ - public Path getCache() { - return cache; - } - - /** - * Sets the cache directory. - * - * @param cache the cache directory - */ - public void setCache(Path cache) { - this.cache = cache; - } - - /** - * Returns whether to clean the cache directory. - * - * @return whether to clean the cache directory - */ - public Boolean getCleanCache() { - return cleanCache; - } - - /** - * Sets whether to clean the cache directory. - * - * @param cleanCache whether to clean the cache directory - */ - public void setCleanCache(Boolean cleanCache) { - this.cleanCache = cleanCache; - } - - /** - * Returns the database. - * - * @return the database - */ - public Object getDatabase() { - return database; - } - - /** - * Sets the database. - * - * @param database the database - */ - public void setDatabase(Object database) { - this.database = database; - } - - /** - * Returns the database SRID. - * - * @return the database SRID - */ - public Integer getDatabaseSrid() { - return databaseSrid; - } - - /** - * Sets the database SRID. - * - * @param databaseSrid the database SRID - */ - public void setDatabaseSrid(Integer databaseSrid) { - this.databaseSrid = databaseSrid; - } - - /** - * Returns whether to replace the existing tables. - * - * @return whether to replace the existing tables - */ - public Boolean getReplaceExisting() { - return replaceExisting; - } - - /** - * Sets whether to replace the existing tables. - * - * @param replaceExisting whether to replace the existing tables - */ - public void setReplaceExisting(Boolean replaceExisting) { - this.replaceExisting = replaceExisting; - } - /** * {@inheritDoc} */ diff --git a/baremaps-core/src/main/java/org/apache/baremaps/workflow/tasks/ImportShapefile.java b/baremaps-core/src/main/java/org/apache/baremaps/workflow/tasks/ImportShapefile.java index d67cad51..864fd220 100644 --- a/baremaps-core/src/main/java/org/apache/baremaps/workflow/tasks/ImportShapefile.java +++ b/baremaps-core/src/main/java/org/apache/baremaps/workflow/tasks/ImportShapefile.java @@ -43,13 +43,6 @@ public class ImportShapefile implements Task { private Integer sourceSRID; private Integer targetSRID; - /** - * Constructs an {@code ImportShapefile}. - */ - public ImportShapefile() { - - } - /** * Constructs an {@code ImportShapefile}. * @@ -65,78 +58,6 @@ public class ImportShapefile implements Task { this.targetSRID = targetSRID; } - /** - * Returns the shapefile file. - * - * @return the shapefile file - */ - public Path getFile() { - return file; - } - - /** - * Sets the shapefile file. - * - * @param file the shapefile file - */ - public void setFile(Path file) { - this.file = file; - } - - /** - * Returns the database. - * - * @return the database - */ - public Object getDatabase() { - return database; - } - - /** - * Sets the database. - * - * @param database the database - */ - public void setDatabase(Object database) { - this.database = database; - } - - /** - * Returns the source SRID. - * - * @return the source SRID - */ - public Integer getSourceSRID() { - return sourceSRID; - } - - /** - * Sets the source SRID. - * - * @param sourceSRID the source SRID - */ - public void setSourceSRID(Integer sourceSRID) { - this.sourceSRID = sourceSRID; - } - - /** - * Returns the target SRID. - * - * @return the target SRID - */ - public Integer getTargetSRID() { - return targetSRID; - } - - /** - * Sets the target SRID. - * - * @param targetSRID the target SRID - */ - public void setTargetSRID(Integer targetSRID) { - this.targetSRID = targetSRID; - } - /** * {@inheritDoc} */ diff --git a/baremaps-core/src/main/java/org/apache/baremaps/workflow/tasks/LogMessage.java b/baremaps-core/src/main/java/org/apache/baremaps/workflow/tasks/LogMessage.java index 2261d3f6..e0de8e00 100644 --- a/baremaps-core/src/main/java/org/apache/baremaps/workflow/tasks/LogMessage.java +++ b/baremaps-core/src/main/java/org/apache/baremaps/workflow/tasks/LogMessage.java @@ -33,13 +33,6 @@ public class LogMessage implements Task { private String message; - /** - * Constructs an {@code LogMessage}. - */ - public LogMessage() { - - } - /** * Constructs an {@code LogMessage}. * @@ -49,24 +42,6 @@ public class LogMessage implements Task { this.message = message; } - /** - * Returns the message. - * - * @return the message - */ - public String getMessage() { - return message; - } - - /** - * Sets the message. - * - * @param message the message - */ - public void setMessage(String message) { - this.message = message; - } - /** * {@inheritDoc} */ diff --git a/baremaps-core/src/main/java/org/apache/baremaps/workflow/tasks/UngzipFile.java b/baremaps-core/src/main/java/org/apache/baremaps/workflow/tasks/UngzipFile.java index c34bcb1d..79c89a81 100644 --- a/baremaps-core/src/main/java/org/apache/baremaps/workflow/tasks/UngzipFile.java +++ b/baremaps-core/src/main/java/org/apache/baremaps/workflow/tasks/UngzipFile.java @@ -40,13 +40,6 @@ public class UngzipFile implements Task { private Path file; private Path directory; - /** - * Constructs an {@code UngzipFile}. - */ - public UngzipFile() { - - } - /** * Constructs an {@code UngzipFile}. * @@ -58,42 +51,6 @@ public class UngzipFile implements Task { this.directory = directory; } - /** - * Returns the file. - * - * @return the file - */ - public Path getFile() { - return file; - } - - /** - * Sets the file. - * - * @param file the file - */ - public void setFile(Path file) { - this.file = file; - } - - /** - * Returns the directory. - * - * @return the directory - */ - public Path getDirectory() { - return directory; - } - - /** - * Sets the directory. - * - * @param directory the directory - */ - public void setDirectory(Path directory) { - this.directory = directory; - } - /** * {@inheritDoc} */ diff --git a/baremaps-core/src/main/java/org/apache/baremaps/workflow/tasks/UnzipFile.java b/baremaps-core/src/main/java/org/apache/baremaps/workflow/tasks/UnzipFile.java index 02185a90..0804168b 100644 --- a/baremaps-core/src/main/java/org/apache/baremaps/workflow/tasks/UnzipFile.java +++ b/baremaps-core/src/main/java/org/apache/baremaps/workflow/tasks/UnzipFile.java @@ -37,13 +37,6 @@ public class UnzipFile implements Task { private Path file; private Path directory; - /** - * Constructs an {@code UnzipFile}. - */ - public UnzipFile() { - - } - /** * Constructs an {@code UnzipFile}. * @@ -55,42 +48,6 @@ public class UnzipFile implements Task { this.directory = directory; } - /** - * Returns the file. - * - * @return the file - */ - public Path getFile() { - return file; - } - - /** - * Sets the file. - * - * @param file the file - */ - public void setFile(Path file) { - this.file = file; - } - - /** - * Returns the directory. - * - * @return the directory - */ - public Path getDirectory() { - return directory; - } - - /** - * Sets the directory. - * - * @param directory the directory - */ - public void setDirectory(Path directory) { - this.directory = directory; - } - /** * {@inheritDoc} */ diff --git a/baremaps-core/src/main/java/org/apache/baremaps/workflow/tasks/UpdateOsmDatabase.java b/baremaps-core/src/main/java/org/apache/baremaps/workflow/tasks/UpdateOsmDatabase.java index d374be1a..a2aa11bd 100644 --- a/baremaps-core/src/main/java/org/apache/baremaps/workflow/tasks/UpdateOsmDatabase.java +++ b/baremaps-core/src/main/java/org/apache/baremaps/workflow/tasks/UpdateOsmDatabase.java @@ -61,65 +61,15 @@ public class UpdateOsmDatabase implements Task { private String replicationUrl; - /** - * Constructs an {@code UpdateOsmDatabase}. - */ - public UpdateOsmDatabase() { - - } - /** * Constructs an {@code UpdateOsmDatabase}. * * @param database the database * @param databaseSrid the database SRID */ - public UpdateOsmDatabase(Object database, Integer databaseSrid) { - this.database = database; - this.databaseSrid = databaseSrid; - } - - /** - * Returns the database. - * - * @return the database - */ - public Object getDatabase() { - return database; - } - - /** - * Sets the database. - * - * @param database the database - */ - public void setDatabase(Object database) { + public UpdateOsmDatabase(Object database, Integer databaseSrid, String replicationUrl) { this.database = database; - } - - /** - * Returns the database SRID. - * - * @return the database SRID - */ - public Integer getDatabaseSrid() { - return databaseSrid; - } - - /** - * Sets the database SRID. - * - * @param databaseSrid the database SRID - */ - public void setDatabaseSrid(Integer databaseSrid) { this.databaseSrid = databaseSrid; - } - - public String getReplicationUrl() { - return replicationUrl; - } - - public void setReplicationUrl(String replicationUrl) { this.replicationUrl = replicationUrl; }
