|
Holger's Java API |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.antelmann.calendar.NTPServer
@Deprecated public class NTPServer
implements the Network Time Protocol (NTP) using tcp/ip.
| Constructor Summary | |
|---|---|
NTPServer()
Deprecated. |
|
NTPServer(int port)
Deprecated. |
|
NTPServer(int port,
TimeSystem ts)
Deprecated. |
|
NTPServer(TimeSystem ts)
Deprecated. |
|
| Method Summary | |
|---|---|
Calendar |
getCalendar()
Deprecated. returns the calendar used to localize the time |
Logger |
getLogger()
Deprecated. returns an empty logger w/o writers by default |
TimeSystem |
getTimeSystem()
Deprecated. returns TimeSystem.systemTime by default |
void |
run()
Deprecated. accepts connection to its port and sends an integer according to NTP. |
protected int |
secondsSince1900()
Deprecated. calculates the raw int used by the NTP protocol |
void |
setCalendar(Calendar cal)
Deprecated. |
void |
setLogger(Logger logger)
Deprecated. |
void |
setTimeSystem(TimeSystem ts)
Deprecated. allows to use another time system instead of the system time to provide the correct time. |
void |
shutdown()
Deprecated. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public NTPServer()
throws IOException
IOException
public NTPServer(TimeSystem ts)
throws IOException
IOException
public NTPServer(int port)
throws IOException
IOException
public NTPServer(int port,
TimeSystem ts)
throws IOException
IOException| Method Detail |
|---|
public TimeSystem getTimeSystem()
public void setTimeSystem(TimeSystem ts)
public Logger getLogger()
public void setLogger(Logger logger)
public Calendar getCalendar()
public void setCalendar(Calendar cal)
protected int secondsSince1900()
public void shutdown()
public void run()
run in interface Runnable
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||