|
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.TimeProtocolServer
NTPClient instead
@Deprecated @Todo(value="UDP support") public class TimeProtocolServer
implements the Network Time Protocol (NTP) using tcp/ip.
TimeProtocolClient| Constructor Summary | |
|---|---|
TimeProtocolServer()
Deprecated. |
|
TimeProtocolServer(int port)
Deprecated. |
|
TimeProtocolServer(int port,
TimeSystem ts)
Deprecated. |
|
TimeProtocolServer(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 TimeProtocolServer()
throws IOException
IOException
public TimeProtocolServer(TimeSystem ts)
throws IOException
IOException
public TimeProtocolServer(int port)
throws IOException
IOException
public TimeProtocolServer(int port,
TimeSystem ts)
throws IOException
IOException| Method Detail |
|---|
public TimeSystem getTimeSystem()
public void setTimeSystem(TimeSystem ts)
TimeSystem.SYSTEM_TIME is used.
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 | |||||||||