org.apache.james.fetchmail
Class FetchScheduler

java.lang.Object
  extended by org.apache.james.fetchmail.FetchScheduler
All Implemented Interfaces:
FetchSchedulerMBean, Configurable, LogEnabled

public class FetchScheduler
extends Object
implements FetchSchedulerMBean, LogEnabled, Configurable

A class to instantiate and schedule a set of mail fetching tasks


Constructor Summary
FetchScheduler()
           
 
Method Summary
 void configure(org.apache.commons.configuration.HierarchicalConfiguration config)
           
 void dispose()
           
 void init()
           
 boolean isEnabled()
          Describes whether this service is enabled by configuration.
 void setDNSService(DNSService dns)
           
 void setDomainList(DomainList domainList)
           
 void setLog(org.slf4j.Logger logger)
           
 void setMailQueueFactory(MailQueueFactory queueFactory)
           
 void setUsersRepository(UsersRepository urepos)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FetchScheduler

public FetchScheduler()
Method Detail

setMailQueueFactory

public void setMailQueueFactory(MailQueueFactory queueFactory)

setDNSService

public void setDNSService(DNSService dns)

setUsersRepository

public void setUsersRepository(UsersRepository urepos)

setDomainList

public void setDomainList(DomainList domainList)

setLog

public final void setLog(org.slf4j.Logger logger)
Specified by:
setLog in interface LogEnabled
See Also:
LogEnabled.setLog(org.slf4j.Logger)

configure

public final void configure(org.apache.commons.configuration.HierarchicalConfiguration config)
                     throws org.apache.commons.configuration.ConfigurationException
Specified by:
configure in interface Configurable
Throws:
org.apache.commons.configuration.ConfigurationException
See Also:
Configurable.configure(org.apache.commons.configuration.HierarchicalConfiguration)

init

@PostConstruct
public void init()
          throws Exception
Throws:
Exception

dispose

@PreDestroy
public void dispose()

isEnabled

public final boolean isEnabled()
Describes whether this service is enabled by configuration.

Specified by:
isEnabled in interface FetchSchedulerMBean
Returns:
is the service enabled.


Copyright © 2002-2012 The Apache Software Foundation. All Rights Reserved.