rice.email.proxy.smtp
Class NonBlockingSmtpServerImpl
java.lang.Object
rice.selector.SelectionKeyHandler
rice.email.proxy.smtp.NonBlockingSmtpServerImpl
- All Implemented Interfaces:
- SmtpServer
public class NonBlockingSmtpServerImpl
- extends SelectionKeyHandler
- implements SmtpServer
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MAX_CONNECTIONS
public static int MAX_CONNECTIONS
connections1
public int connections1
success
public int success
fail
public int fail
logger
protected Logger logger
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
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
Copyright © 2001-2005 - Rice Pastry.