Package net.i2p.router.time
Class RouterTimestamper
java.lang.Object
net.i2p.time.Timestamper
net.i2p.router.time.RouterTimestamper
- All Implemented Interfaces:
Runnable
Periodically query a series of NTP servers and update any associated
listeners. It tries the NTP servers in order, contacting them using
SNTP (UDP port 123).
- Since:
- 0.9.1 moved from net.i2p.time
-
Nested Class Summary
Nested classes/interfaces inherited from class net.i2p.time.Timestamper
Timestamper.UpdateListener
-
Field Summary
-
Constructor Summary
ConstructorDescriptionDoes not start.Does not start.RouterTimestamper
(I2PAppContext ctx, Timestamper.UpdateListener lsnr, boolean daemon) Does not start. -
Method Summary
Modifier and TypeMethodDescriptionvoid
boolean
getListener
(int index) int
int
getServer
(int index) int
void
void
run()
dummyvoid
void
Update the time immediately.void
dummy
-
Field Details
-
PROP_QUERY_FREQUENCY
- See Also:
-
PROP_SERVER_LIST
- See Also:
-
PROP_DISABLED
- See Also:
-
PROP_CONCURRING_SERVERS
- See Also:
-
PROP_IP_COUNTRY
- See Also:
-
-
Constructor Details
-
RouterTimestamper
Does not start. Caller MUST call startTimestamper() -
RouterTimestamper
Does not start. Caller MUST call startTimestamper() -
RouterTimestamper
Does not start. Caller MUST call startTimestamper()
-
-
Method Details
-
getServerCount
public int getServerCount() -
getServer
-
getQueryFrequencyMs
public int getQueryFrequencyMs() -
getIsDisabled
public boolean getIsDisabled() -
addListener
-
removeListener
-
getListenerCount
public int getListenerCount() -
getListener
-
startTimestamper
public void startTimestamper() -
waitForInitialization
public void waitForInitialization()Description copied from class:Timestamper
dummy- Overrides:
waitForInitialization
in classTimestamper
-
timestampNow
public void timestampNow()Update the time immediately.- Overrides:
timestampNow
in classTimestamper
- Since:
- 0.8.8
-
run
public void run()Description copied from class:Timestamper
dummy- Specified by:
run
in interfaceRunnable
- Overrides:
run
in classTimestamper
-