ePOST API

rice.email.proxy.smtp
Class NonBlockingSmtpServerImpl

java.lang.Object
  extended by rice.selector.SelectionKeyHandler
      extended by rice.email.proxy.smtp.NonBlockingSmtpServerImpl
All Implemented Interfaces:
SmtpServer

public class NonBlockingSmtpServerImpl
extends SelectionKeyHandler
implements SmtpServer


Field Summary
 int connections1
           
 int fail
           
protected  Logger logger
           
static int MAX_CONNECTIONS
           
 int success
           
 
Constructor Summary
NonBlockingSmtpServerImpl(java.net.InetAddress localHost, int port, EmailService email, boolean gateway, PostEntityAddress address, boolean acceptNonLocal, boolean authenticate, UserManager userManager, java.lang.String server, Environment env)
           
 
Method Summary
 void accept(java.nio.channels.SelectionKey key)
          Method which is called when the key becomes acceptable.
 int getConnections()
           
 Environment getEnvironment()
           
 int getFail()
           
 java.net.InetAddress getLocalHost()
           
 int getPort()
           
 int getSuccess()
           
 void incrementFail()
           
 void incrementSuccess()
           
 void initialize()
           
protected  void setAcceptable(boolean acceptable)
           
 void start()
           
 
Methods inherited from class rice.selector.SelectionKeyHandler
connect, modifyKey, read, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MAX_CONNECTIONS

public static int MAX_CONNECTIONS

connections1

public int connections1

success

public int success

fail

public int fail

logger

protected Logger logger
Constructor Detail

NonBlockingSmtpServerImpl

public NonBlockingSmtpServerImpl(java.net.InetAddress localHost,
                                 int port,
                                 EmailService email,
                                 boolean gateway,
                                 PostEntityAddress address,
                                 boolean acceptNonLocal,
                                 boolean authenticate,
                                 UserManager userManager,
                                 java.lang.String server,
                                 Environment env)
                          throws java.lang.Exception
Throws:
java.lang.Exception
Method Detail

getConnections

public int getConnections()
Specified by:
getConnections in interface SmtpServer

getSuccess

public int getSuccess()
Specified by:
getSuccess in interface SmtpServer

getFail

public int getFail()
Specified by:
getFail in interface SmtpServer

incrementSuccess

public void incrementSuccess()
Specified by:
incrementSuccess in interface SmtpServer

incrementFail

public void incrementFail()
Specified by:
incrementFail in interface SmtpServer

getLocalHost

public java.net.InetAddress getLocalHost()
Specified by:
getLocalHost in interface SmtpServer

getPort

public int getPort()
Specified by:
getPort in interface SmtpServer

start

public void start()
Specified by:
start in interface SmtpServer

initialize

public void initialize()
                throws java.io.IOException
Throws:
java.io.IOException

setAcceptable

protected void setAcceptable(boolean acceptable)

accept

public void accept(java.nio.channels.SelectionKey key)
Description copied from class: SelectionKeyHandler
Method which is called when the key becomes acceptable.

Overrides:
accept in class SelectionKeyHandler
Parameters:
key - The key which is acceptable.

getEnvironment

public Environment getEnvironment()
Specified by:
getEnvironment in interface SmtpServer

ePOST API

Copyright © 2001-2005 - Rice Pastry.