org.mule.modules.schedulers.cron
Class CronScheduler

java.lang.Object
  extended by org.mule.transport.polling.schedule.PollScheduler<PollingReceiverWorker>
      extended by org.mule.modules.schedulers.cron.CronScheduler
All Implemented Interfaces:
MuleContextAware, Disposable, Initialisable, Lifecycle, Startable, Stoppable, NameableObject, NamedObject, Scheduler

public class CronScheduler
extends PollScheduler<PollingReceiverWorker>
implements MuleContextAware

Cron Scheduler implemented with Quartz.

Since:
3.5.0

Field Summary
protected  org.apache.commons.logging.Log logger
           
static String POLL_CRON_SCHEDULER_JOB
           
static String THREAD_POLL_CLASS
           
static String THREAD_POLL_CLASS_PROPERTY
           
static String THREAD_POOL_COUNT_PROPERTY
           
 
Fields inherited from class org.mule.transport.polling.schedule.PollScheduler
job, name
 
Fields inherited from interface org.mule.api.lifecycle.Initialisable
PHASE_NAME
 
Fields inherited from interface org.mule.api.lifecycle.Startable
PHASE_NAME
 
Fields inherited from interface org.mule.api.lifecycle.Stoppable
PHASE_NAME
 
Fields inherited from interface org.mule.api.lifecycle.Disposable
PHASE_NAME
 
Constructor Summary
CronScheduler(String name, PollingReceiverWorker job, String cronExpression)
           
 
Method Summary
 void dispose()
           
 String getCronExpression()
           
 void initialise()
           
 void schedule()
           
 void setMuleContext(MuleContext context)
           
 void start()
           
 void stop()
           
 
Methods inherited from class org.mule.transport.polling.schedule.PollScheduler
getName, setName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

protected transient org.apache.commons.logging.Log logger

THREAD_POLL_CLASS_PROPERTY

public static final String THREAD_POLL_CLASS_PROPERTY
See Also:
Constant Field Values

THREAD_POLL_CLASS

public static final String THREAD_POLL_CLASS
See Also:
Constant Field Values

THREAD_POOL_COUNT_PROPERTY

public static final String THREAD_POOL_COUNT_PROPERTY
See Also:
Constant Field Values

POLL_CRON_SCHEDULER_JOB

public static final String POLL_CRON_SCHEDULER_JOB
See Also:
Constant Field Values
Constructor Detail

CronScheduler

public CronScheduler(String name,
                     PollingReceiverWorker job,
                     String cronExpression)
Method Detail

schedule

public void schedule()
              throws Exception
Specified by:
schedule in interface Scheduler
Throws:
Exception

dispose

public void dispose()
Specified by:
dispose in interface Disposable

initialise

public void initialise()
                throws InitialisationException
Specified by:
initialise in interface Initialisable
Throws:
InitialisationException

start

public void start()
           throws MuleException
Specified by:
start in interface Startable
Throws:
MuleException

stop

public void stop()
          throws MuleException
Specified by:
stop in interface Stoppable
Throws:
MuleException

getCronExpression

public String getCronExpression()

setMuleContext

public void setMuleContext(MuleContext context)
Specified by:
setMuleContext in interface MuleContextAware


Copyright © 2003–2014 MuleSoft, Inc.. All rights reserved.