Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.mrbook.mrpostman.pop
Class PopServer  view PopServer download PopServer.java

java.lang.Object
  extended byjava.lang.Thread
      extended byorg.mrbook.mrpostman.pop.PopServer
All Implemented Interfaces:
java.lang.Runnable

public class PopServer
extends java.lang.Thread


Nested Class Summary
 
Nested classes inherited from class java.lang.Thread
java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
 boolean carryon
           
static java.lang.String CVSID
           
static int DEFAULT_BUFFERLENGTH
           
static int DEFAULT_KEEPALIVE
           
static int DEFAULT_MAXIMUM_THREADS
           
static int DEFAULT_MINIMUM_THREADS
           
static int DEFAULT_PORT
           
private  EDU.oswego.cs.dl.util.concurrent.Executor executor
           
protected  java.net.ServerSocket listenSocket
           
private static java.util.logging.Logger logger
           
protected  int port
           
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
PopServer(int port)
           
 
Method Summary
private  boolean isSocketAllowed(java.net.Socket socket)
           
 void run()
          The method of Thread that will be run if there is no Runnable object associated with the Thread.
 void shutdown()
           
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, 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

CVSID

public static final java.lang.String CVSID
See Also:
Constant Field Values

logger

private static java.util.logging.Logger logger

DEFAULT_PORT

public static final int DEFAULT_PORT
See Also:
Constant Field Values

DEFAULT_BUFFERLENGTH

public static final int DEFAULT_BUFFERLENGTH
See Also:
Constant Field Values

DEFAULT_MAXIMUM_THREADS

public static final int DEFAULT_MAXIMUM_THREADS
See Also:
Constant Field Values

DEFAULT_MINIMUM_THREADS

public static final int DEFAULT_MINIMUM_THREADS
See Also:
Constant Field Values

DEFAULT_KEEPALIVE

public static final int DEFAULT_KEEPALIVE
See Also:
Constant Field Values

port

protected int port

listenSocket

protected java.net.ServerSocket listenSocket

executor

private EDU.oswego.cs.dl.util.concurrent.Executor executor

carryon

public boolean carryon
Constructor Detail

PopServer

public PopServer(int port)
          throws java.io.IOException
Method Detail

run

public void run()
Description copied from class: java.lang.Thread
The method of Thread that will be run if there is no Runnable object associated with the Thread. Thread's implementation does nothing at all.


isSocketAllowed

private boolean isSocketAllowed(java.net.Socket socket)

shutdown

public void shutdown()