|
g-Eclipse Release 1.0.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecteu.geclipse.core.util.TimeChecker
public class TimeChecker
A time checker using the TIME protocol (RFC 868), also known as rdate protocol.
| Constructor Summary | |
|---|---|
TimeChecker()
The constructor. |
|
| Method Summary | |
|---|---|
void |
checkSysTime(IProgressMonitor monitor)
Gets the time from some rdate time servers and compares it to the system time. |
long |
getOffset()
Gets the system clock offset. |
java.lang.String |
getReferenceDate()
Gets the reference date/time. |
java.lang.String |
getSystemDate()
Gets the system date/time. |
boolean |
getTimeCheckStatus()
Gets the system clock status. |
int |
getTolerance()
Gets the tolerance for the system clock offset. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TimeChecker()
checkSysTime(IProgressMonitor).
| Method Detail |
|---|
public boolean getTimeCheckStatus()
checkSysTime(IProgressMonitor)
must be called first to initialize the TimeChecker instance.
true if the system time is OK, false otherwise
public void checkSysTime(IProgressMonitor monitor)
throws ProblemException,
java.lang.InterruptedException
getTimeCheckStatus() must be
called afterwards to get the result of the system time check.
monitor - a progress monitor used to monitor the
time-check operation
GridException - if no servers could be contacted or they yielded
inconsistent results
java.lang.InterruptedException - if the operation was canceled by the user
ProblemExceptionpublic java.lang.String getSystemDate()
checkSysTime(IProgressMonitor)
must be called first to initialize the TimeChecker instance.
public java.lang.String getReferenceDate()
checkSysTime(IProgressMonitor)
must be called first to initialize the TimeChecker instance.
public long getOffset()
checkSysTime(IProgressMonitor)
must be called first to initialize the TimeChecker instance.
public int getTolerance()
|
g-Eclipse Release 1.0.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||