package JACE.netsvcs.Time; import java.net.*; import java.io.*; import java.util.*; import JACE.ASX.TimeValue; import JACE.Connection.*; import JACE.OS.*; import JACE.Reactor.*; import JACE.Misc.*; /** * Clerk used to query a number of time servers, compute the average * of the time differences, and report it with a sequence number. This * can be used to adjust the current local time accordingly. *

* Valid command line arguments: *

 *   -h (host name:port)   Specify a time server to contact
 *   -t (time in seconds)  Specify how often to query the servers
 *                         (Defaults to five minutes)
 *   -d                    Enable debugging messages
 * 
*/ public class TSClerkProcessor implements EventHandler, Runnable { /** * Prints out the valid command line arguments. See the class * description for more information. */ public void printUsage () { ACE.ERROR ("Valid options:"); ACE.ERROR ("-h : Specify a time server to contact"); ACE.ERROR ("-t