org.mmbase.module.smtp
Class SMTPListener

java.lang.Object
  extended by java.lang.Thread
      extended by org.mmbase.module.smtp.SMTPListener
All Implemented Interfaces:
Runnable

public class SMTPListener
extends Thread

Listener thread, that accepts connection on port 25 (default) and delegates all work to its worker threads.

Version:
$Id: SMTPListener.java 35335 2009-05-21 08:14:41Z michiel $
Author:
Johannes Verelst <johannes.verelst@eo.nl>

Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler
 
Field Summary
(package private) static int number
           
(package private)  ExecutorService socketThreads
           
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
SMTPListener(Map<String,String> properties)
           
 
Method Summary
 ServerSocket getSocket()
           
 void interrupt()
           
 void run()
          Main run method; it will listen for new connections and spawn new threads for incoming connections.
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

number

static int number

socketThreads

final ExecutorService socketThreads
Constructor Detail

SMTPListener

public SMTPListener(Map<String,String> properties)
Method Detail

getSocket

public ServerSocket getSocket()

run

public void run()
Main run method; it will listen for new connections and spawn new threads for incoming connections.

Specified by:
run in interface Runnable
Overrides:
run in class Thread

interrupt

public void interrupt()
Overrides:
interrupt in class Thread


MMBase 2.0-SNAPSHOT - null