ePOST API

rice.email.proxy
Class EmailProxy

java.lang.Object
  extended by rice.post.proxy.PostProxy
      extended by rice.email.proxy.EmailProxy
Direct Known Subclasses:
VisualizationEmailProxy

public class EmailProxy
extends PostProxy

This class starts up everything on the Pastry side, and then boots up the PAST, Scribe, POST, and Emails services, and then starts the Foedus IMAP and SMTP servers.


Nested Class Summary
 
Nested classes/interfaces inherited from class rice.post.proxy.PostProxy
PostProxy.KillPanel, PostProxy.LivenessKeyHandler, PostProxy.LivenessThread, PostProxy.PasswordFrame, PostProxy.PostDialog, PostProxy.PostPanel, PostProxy.SMTPServerPanel
 
Field Summary
protected  EmailService email
           
protected  Folder emailFolder
           
protected  ImapServer imap
           
protected  UserManagerImpl manager
           
protected  Pop3Server pop3
           
protected  SmtpServer smtp
           
protected  WebServer web
           
 
Fields inherited from class rice.post.proxy.PostProxy
address, aggrWaitingStorage, caPublic, cert, certificate, clone, DEFAULT_PARAMS_FILES, deliveredBackupCache, deliveredPast, deliveredStorage, dialog, environment, factory, FACTORY, FAILURE, forwardLog, glacierImmutableStorage, glacierMutableStorage, glacierNeighborStorage, glacierTrashStorage, globalCert, globalNode, globalPastryNode, globalPort, immutableBackupCache, immutableGlacier, immutablePast, immutableStorage, KFACTORY, localHost, log, logger, logManager, mutablePast, mutableStorage, node, PAD_SIZE, pair, parameters, pass, pastryNode, pendingBackupCache, pendingPast, pendingStorage, port, post, PROXY_PARAMETERS_NAME, realImmutablePast, ringId, smtpServer, SUCCESS, timer, trashStorage, version
 
Constructor Summary
EmailProxy()
           
 
Method Summary
static void main(java.lang.String[] args)
          Usage: java rice.email.proxy.EmailProxy userid [-bootstrap hostname[:port]] [-port port] [-imapport port] [-smtpport port]
 void start2()
           
protected  void startEmailService()
          Method which fetches the local email service
protected  void startFetchEmailLog()
          Method which fetch the local user's email log and inbox
protected  void startIMAPServer()
          Method which starts the local IMAP server
protected  void startMailcap(Parameters parameters)
          Method which initializes the mailcap
protected  void startPOP3Server()
          Method which starts the local POP3 server
protected  void startRetrieveKeystore()
          Method which retrieve the post user's certificate and key
protected  void startSMTPServer()
          Method which starts the local SMTP server
protected  void startUserManager()
          Method which starts the local user manager
protected  void startWebMailServer()
          Method which starts the local WebMail server
 
Methods inherited from class rice.post.proxy.PostProxy
dialogPrint, generateRingId, getBootstrapsThatAreNotMe, getGlacier, getLocalHost, message, panic, panic, panic, resign, sectionDone, sectionStart, setVersion, start, startCheckBoot, startCreateIdFactory, startDeterminePorts, startDetermineSMTPServer, startDialog, startFetchForwardingLog, startFetchLog, startGlacier, startGlobalMultiringNode, startGlobalNode, startGlobalPastryNode, startInsertLog, startLivenessMonitor, startLoadRingCertificates, startMultiringNode, startPast, startPastryNode, startPost, startRetrieveCAKey, startRetrieveUser, startRetrieveUserCertificate, startRetrieveUserClone, startRetrieveUserKey, startRetrieveUsername, startSecurityManager, startShutdownHooks, startStorageManagers, startUpdateForwardingLog, startUpdateUser, startVerifyUserCertificate, startVerifyUserKey, stepDone, stepDone, stepException, stepStart, updateParameters, useUI
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

email

protected EmailService email

manager

protected UserManagerImpl manager

smtp

protected SmtpServer smtp

pop3

protected Pop3Server pop3

imap

protected ImapServer imap

web

protected WebServer web

emailFolder

protected Folder emailFolder
Constructor Detail

EmailProxy

public EmailProxy()
Method Detail

startMailcap

protected void startMailcap(Parameters parameters)
                     throws java.lang.Exception
Method which initializes the mailcap

Parameters:
parameters - The parameters to use
Throws:
java.lang.Exception

startRetrieveKeystore

protected void startRetrieveKeystore()
                              throws java.lang.Exception
Method which retrieve the post user's certificate and key

Parameters:
parameters - The parameters to use
Throws:
java.lang.Exception

startEmailService

protected void startEmailService()
                          throws java.lang.Exception
Method which fetches the local email service

Parameters:
parameters - The parameters to use
Throws:
java.lang.Exception

startFetchEmailLog

protected void startFetchEmailLog()
                           throws java.lang.Exception
Method which fetch the local user's email log and inbox

Parameters:
parameters - The parameters to use
Throws:
java.lang.Exception

startUserManager

protected void startUserManager()
                         throws java.lang.Exception
Method which starts the local user manager

Parameters:
parameters - The parameters to use
Throws:
java.lang.Exception

startSMTPServer

protected void startSMTPServer()
                        throws java.lang.Exception
Method which starts the local SMTP server

Parameters:
parameters - The parameters to use
Throws:
java.lang.Exception

startIMAPServer

protected void startIMAPServer()
                        throws java.lang.Exception
Method which starts the local IMAP server

Parameters:
parameters - The parameters to use
Throws:
java.lang.Exception

startPOP3Server

protected void startPOP3Server()
                        throws java.lang.Exception
Method which starts the local POP3 server

Parameters:
parameters - The parameters to use
Throws:
java.lang.Exception

startWebMailServer

protected void startWebMailServer()
                           throws java.lang.Exception
Method which starts the local WebMail server

Parameters:
parameters - The parameters to use
Throws:
java.lang.Exception

start2

public void start2()
            throws java.lang.Exception
Overrides:
start2 in class PostProxy
Throws:
java.lang.Exception

main

public static void main(java.lang.String[] args)
Usage: java rice.email.proxy.EmailProxy userid [-bootstrap hostname[:port]] [-port port] [-imapport port] [-smtpport port]


ePOST API

Copyright © 2001-2005 - Rice Pastry.