mil.dod.th.ose.time.service/src/mil/dod/th/ose/time/service/TimeChangeServiceMain.java
private static void onStart()
    {
        ServerSocket serverSocket = null;
        
        try
        {
            serverSocket = new ServerSocket(SERVER_PORT);
        }
        catch (final IOException exception)
        {
            final String msg = String.format(
                    "An error occurred trying to open the server socket on port %d", SERVER_PORT);
            TimeChangeServiceLogger.logMessage(Level.SEVERE, msg, exception);
            return;
        }
        
        try
        {
            m_ServiceThread = new TimeChangeServiceThread(serverSocket, new ChangeSystemTimeWrapperImpl());
            m_Thread = new Thread(m_ServiceThread);
            m_Thread.start();
        }
        catch (final SocketException exception)
        {
            TimeChangeServiceLogger.logMessage(Level.SEVERE, 
                    "System Time Service could not be started.", exception);
        }
        
        
        TimeChangeServiceLogger.logMessage(Level.INFO, "System Time Service has started.");
    }
/**
     * Function to begin server socket processing of time data.
     */
Function to begin server socket processing of time data.
Function to begin server socket processing of time data .
private static void onStart()
    {
        ServerSocket serverSocket = null;
        try
        {
            serverSocket = new ServerSocket(SERVER_PORT);
        }
        catch (final IOException exception)
        {
            final String msg = String.format(
                    "An error occurred trying to open the server socket on port %d", SERVER_PORT);
            TimeChangeServiceLogger.logMessage(Level.SEVERE, msg, exception);
            return;
        }
        try
        {
            m_ServiceThread = new TimeChangeServiceThread(serverSocket, new ChangeSystemTimeWrapperImpl());
            m_Thread = new Thread(m_ServiceThread);
            m_Thread.start();
        }
        catch (final SocketException exception)
        {
            TimeChangeServiceLogger.logMessage(Level.SEVERE, 
                    "System Time Service could not be started.", exception);
        }
        TimeChangeServiceLogger.logMessage(Level.INFO, "System Time Service has started.");
    }
private static void onStart ( ) { ServerSocket serverSocket = null ; try { serverSocket = new ServerSocket ( SERVER_PORT ) ; } catch ( final IOException exception ) { final String msg = String . format ( "An error occurred trying to open the server socket on port %d" , SERVER_PORT ) ; TimeChangeServiceLogger . logMessage ( Level . SEVERE , msg , exception ) ; return ; } try { m_ServiceThread = new TimeChangeServiceThread ( serverSocket , new ChangeSystemTimeWrapperImpl ( ) ) ; m_Thread = new Thread ( m_ServiceThread ) ; m_Thread . start ( ) ; } catch ( final SocketException exception ) { TimeChangeServiceLogger . logMessage ( Level . SEVERE , "System Time Service could not be started." , exception ) ; } TimeChangeServiceLogger . logMessage ( Level . INFO , "System Time Service has started." ) ; }
Function to begin server socket processing of time data.
Function to begin server socket processing of time data .