|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ericdaugherty.mail.server.services.general.ServiceListener
public class ServiceListener
This class listens for incoming connections on the specified port and starts a new thread to process the request. This class abstracts common functinality required to start any type of service (POP3 or SMTP), reducing the requirement to duplicate this code in each package.
Constructor Summary | |
---|---|
ServiceListener(int port,
java.lang.Class connectionProcessorClass,
int threads,
boolean useSSL)
Creates a new instance and stores the initial paramters. |
Method Summary | |
---|---|
static java.lang.Object |
getLock()
|
int |
getPort()
|
void |
initiateshutdown()
All processors are allowed to stop in sequence. |
static boolean |
isSLsloadingComplete()
|
void |
notifyshutdown()
This method notifies all processors to initiate shutdown. |
void |
run()
Entry point for the thread. |
static void |
setTotalSL(int totalSL)
|
java.lang.Runnable |
updateServerSocket(int newPort)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ServiceListener(int port, java.lang.Class connectionProcessorClass, int threads, boolean useSSL)
Method Detail |
---|
public static void setTotalSL(int totalSL)
public static java.lang.Object getLock()
public static boolean isSLsloadingComplete()
public int getPort()
public void run()
run
in interface java.lang.Runnable
public void notifyshutdown()
public void initiateshutdown()
public java.lang.Runnable updateServerSocket(int newPort)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |