|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.avalon.framework.logger.AbstractLogEnabled
org.apache.james.transport.JamesSpoolManager
public class JamesSpoolManager
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.
Field Summary |
---|
Fields inherited from interface org.apache.james.services.SpoolManager |
---|
ROLE |
Constructor Summary | |
---|---|
JamesSpoolManager()
|
Method Summary | |
---|---|
void |
configure(org.apache.avalon.framework.configuration.Configuration conf)
|
void |
dispose()
The dispose operation is called at the end of a components lifecycle. |
java.util.List |
getMailetConfigs(java.lang.String processorName)
retrieve all mailets for given processor |
java.util.List |
getMatcherConfigs(java.lang.String processorName)
retrieve all matchers for given processor |
java.lang.String[] |
getProcessorNames()
|
void |
initialize()
Initialises the spool manager. |
void |
run()
This routinely checks the message spool for messages, and processes them as necessary |
void |
service(org.apache.avalon.framework.service.ServiceManager comp)
|
void |
setSpool(SpoolRepository spool)
Set the SpoolRepository |
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled |
---|
enableLogging, getLogger, setupLogger, setupLogger, setupLogger |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JamesSpoolManager()
Method Detail |
---|
public void setSpool(SpoolRepository spool)
spool
- the SpoolRepositorypublic void service(org.apache.avalon.framework.service.ServiceManager comp) throws org.apache.avalon.framework.service.ServiceException
service
in interface org.apache.avalon.framework.service.Serviceable
org.apache.avalon.framework.service.ServiceException
Serviceable.service(ServiceManager)
public void configure(org.apache.avalon.framework.configuration.Configuration conf) throws org.apache.avalon.framework.configuration.ConfigurationException
configure
in interface org.apache.avalon.framework.configuration.Configurable
org.apache.avalon.framework.configuration.ConfigurationException
Configurable.configure(Configuration)
@PostConstruct public void initialize() throws java.lang.Exception
java.lang.Exception
public void run()
run
in interface java.lang.Runnable
public void dispose()
dispose
in interface org.apache.avalon.framework.activity.Disposable
Disposable.dispose()
public java.lang.String[] getProcessorNames()
getProcessorNames
in interface SpoolManager
public java.util.List getMailetConfigs(java.lang.String processorName)
SpoolManager
getMailetConfigs
in interface SpoolManager
processorName
- - name of the processor who's mailets should be retrieved
public java.util.List getMatcherConfigs(java.lang.String processorName)
SpoolManager
getMatcherConfigs
in interface SpoolManager
processorName
- - name of the processor who's matchers should be retrieved
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |