A component for the ArcGIS GeoEvent platform for downloading file through FTP or SFTP | Read-only mirror of https://github.com/republique-et-canton-de-geneve/input-ftp-transport — République et canton de Genève. Issues & pull requests at the source.
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
De Pol Philippe (DSE) 329cedd0a7 Update README.md
2021-03-29 21:24:48 +02:00
.github/ISSUE_TEMPLATE Fichiers GitHub de mise en open source 2020-12-18 17:36:28 +01:00
src S'assurer qu'on a que le nom du fichier sans le path 2021-03-29 20:38:10 +02:00
.gitignore Premier commit. 2020-06-25 14:14:28 +02:00
CODE_OF_CONDUCT.md Fichiers GitHub de mise en open source 2020-12-18 17:36:28 +01:00
CONTRIBUTING.md Fichiers GitHub de mise en open source 2020-12-18 17:36:28 +01:00
LICENSE.txt Fichiers GitHub de mise en open source 2020-12-18 17:36:28 +01:00
pom.xml add version 2021-03-29 13:16:06 +02:00
README.md Update README.md 2021-03-29 21:24:48 +02:00

input-ftp-transport

The input-ftp-transport allows to download data from a (s)ftp server. It has been tested with Geoevent server 10.8.1. It uses Apache Commons Net library to connect to ftp servers, and Jsch for sftp servers. If the files downloaded are csv or xml files, you can use standard Geoevent adapters to create a connector. For other formats, you have to create a custom adapter.

It has the following properties :

Name Description
Server type Type of the server : ftp or sftp
Server URL of the ftp server
Port Port of the ftp server
User Login user name
Password User password
Server folder Folder on the server where the file is stored
Private key The private key used to authenticate into the ssh server
File format Format of the file(s) to be downloaded. It can be the name of a single file or a filter with wild characters. For instance : *.txt
Local folder Folder where the file will be downloaded
Delete files Boolean which specifies if the files downloaded in the local folder will be deleted
Frequency This is the time in seconds between successive task executions
Number of lines to skip Number of lines to skip

Build and deploy

In order to build the composant, you need the Geoevent sdk.

The GeoEvent Server SDK and documentation can be found in the ArcGIS Server installation directory. The default installation directories are below:

Windows: <ArcGIS Server installation directory>\GeoEvent\sdk (for example, C:\Program Files\ArcGIS\Server\GeoEvent\sdk).
Linux: <ArcGIS Server installation directory>/GeoEvent/sdk (for example, ~/arcgis/server/GeoEvent/sdk).

In these directories, you will find the document GeoEvent Developer Guide.pdf, which explains how to build and deploy the composant.