A
TimeSource
that utilize Network Time Protocol to determine the system clock offset
Instances should be obtained via
getInstance()
or
TimeSourceProvider
; one instance may be
used per machine
Specifically, the implementation uses Apache Commons Net (already a dependency in Spark) to query a NTP server.
This querying is done periodically (default: once upon initialization and then every 30 minutes thereafter).
The following configuration options can be set via system properties:
To set the time update frequency (for querying the NTP server, in
milliseconds): org.deeplearning4j.spark.time.NTPTimeSource.frequencyms
To set the NTP server address: org.deeplearning4j.spark.time.NTPTimeSource.server
Default NTP server:
DEFAULT_NTP_SERVER