com.ericdaugherty.mail.server
Class Mail

java.lang.Object
  extended by com.ericdaugherty.mail.server.Mail

public class Mail
extends java.lang.Object

This class is the entrypoint for the Mail Server application. It creates threads to listen for SMTP and POP3 connections. It also handles the configuration information and initialization of the User subsystem.

Author:
Eric Daugherty, Andreas Kyrmegalos (2.x branch)

Field Summary
static boolean testing
           
 
Method Summary
static Mail getInstance()
           
static boolean hasCompletedOperations()
          If true all operations relating to system startup have completed
static void instantiate(java.lang.String[] args)
           
 boolean isShuttingDown()
          If true a server shut down has been initiated.
static void main(java.lang.String[] args)
          This method is the entrypoint to the system and is responsible for the initial configuration of the application and the creation of all 'service' threads.
 void notifyChange()
           
 void shutdown()
          Provides a 'safe' way for the application to shut down.
static void shutdown(java.lang.String[] args)
          Provides a 'safe' way for the application to shut down.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

testing

public static boolean testing
Method Detail

instantiate

public static void instantiate(java.lang.String[] args)

getInstance

public static Mail getInstance()

isShuttingDown

public boolean isShuttingDown()
If true a server shut down has been initiated.

Returns:
shuttingDown

hasCompletedOperations

public static boolean hasCompletedOperations()
If true all operations relating to system startup have completed

Returns:
completedOperations

shutdown

public static void shutdown(java.lang.String[] args)
Provides a 'safe' way for the application to shut down. This method is provided to enable compatability with the NT Service wrapper class. It defers the call to the shutdown method.

Parameters:
args -

shutdown

public void shutdown()
Provides a 'safe' way for the application to shut down. It will attempt to stop the running threads.


main

public static void main(java.lang.String[] args)
This method is the entrypoint to the system and is responsible for the initial configuration of the application and the creation of all 'service' threads.


notifyChange

public void notifyChange()