org.apache.james.transport
Class JamesSpoolManager
java.lang.Object
|
+--org.apache.avalon.framework.logger.AbstractLogEnabled
|
+--org.apache.james.transport.JamesSpoolManager
- All Implemented Interfaces:
- Component, Composable, Configurable, Disposable, Initializable, LogEnabled, Runnable
- public class JamesSpoolManager
- extends AbstractLogEnabled
- implements Composable, Configurable, Initializable, Runnable, Disposable, Component
Manages the mail spool. This class is responsible for retrieving
messages from the spool, directing messages to the appropriate
processor, and removing them from the spool when processing is
complete.
- Version:
- This is $Revision: 1.9 $
- Author:
- Serge Knystautas , Federico Barbieri
Method Summary |
void |
compose(ComponentManager comp)
|
void |
configure(Configuration conf)
|
void |
dispose()
The dispose operation is called at the end of a components lifecycle.
|
void |
initialize()
|
protected void |
process(MailImpl mail)
Process this mail message by the appropriate processor as designated
in the state of the Mail object. |
void |
run()
This routinely checks the message spool for messages, and processes
them as necessary |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JamesSpoolManager
public JamesSpoolManager()
compose
public void compose(ComponentManager comp)
throws ComponentException
- Specified by:
compose
in interface Composable
ComponentException
- See Also:
Composable.compose(ComponentManager)
configure
public void configure(Configuration conf)
throws ConfigurationException
- Specified by:
configure
in interface Configurable
ConfigurationException
- See Also:
Configurable.configure(Configuration)
initialize
public void initialize()
throws Exception
- Specified by:
initialize
in interface Initializable
Exception
- See Also:
Initializable.initialize()
run
public void run()
- This routinely checks the message spool for messages, and processes
them as necessary
- Specified by:
run
in interface Runnable
process
protected void process(MailImpl mail)
- Process this mail message by the appropriate processor as designated
in the state of the Mail object.
- Parameters:
mail
- the mail message to be processed
dispose
public void dispose()
- The dispose operation is called at the end of a components lifecycle.
Instances of this class use this method to release and destroy any
resources that they own.
This implementation shuts down the LinearProcessors managed by this
JamesSpoolManager
- Specified by:
dispose
in interface Disposable
- Throws:
Exception
- if an error is encountered during shutdown
"Copyright © 1999-2002 Apache Jakarta Project. All Rights Reserved."