public class GtfsUpdatedModule extends Module
When a GTFS file is downloaded then this module also e-mails recipients specified by the parameter transitime.monitoring.emailRecipients
Constructor and Description |
---|
GtfsUpdatedModule(java.lang.String agencyId)
Constructor
|
Modifier and Type | Method and Description |
---|---|
static void |
get()
Gets the GTFS file via http from the configured URL urlStr and stores it
in the configured directory dirName.
|
static void |
main(java.lang.String[] args)
For debugging
|
void |
run() |
public GtfsUpdatedModule(java.lang.String agencyId)
agencyId
- public static void get()
If file on web server last modified time is not newer than the local file then the file will not actually be downloaded.
If file is downloaded then users and e-mailed.
public void run()
public static void main(java.lang.String[] args)
args
-