org.mule.transport.quartz
Class QuartzConnector

java.lang.Object
  extended by org.mule.transport.AbstractConnector
      extended by org.mule.transport.quartz.QuartzConnector
All Implemented Interfaces:
EventListener, javax.resource.spi.work.WorkListener, org.mule.api.lifecycle.Disposable, org.mule.api.lifecycle.Initialisable, org.mule.api.lifecycle.Lifecycle, org.mule.api.lifecycle.LifecycleStateEnabled, org.mule.api.lifecycle.Startable, org.mule.api.lifecycle.Stoppable, org.mule.api.NameableObject, org.mule.api.NamedObject, org.mule.api.transport.Connectable, org.mule.api.transport.Connector

public class QuartzConnector
extends org.mule.transport.AbstractConnector

Creates a connection to a Quartz scheduler. This allows events to be scheduled at specific times, with repeated occurrences.


Field Summary
static String DEFAULT_GROUP_NAME
           
static String PROPERTY_CRON_EXPRESSION
           
static String PROPERTY_JOB_CONFIG
           
static String PROPERTY_JOB_DATA
           
static String PROPERTY_JOB_DYNAMIC
           
static String PROPERTY_JOB_OBJECT
           
static String PROPERTY_JOB_REF
           
static String PROPERTY_PAYLOAD
           
static String PROPERTY_REPEAT_COUNT
           
static String PROPERTY_REPEAT_INTERVAL
           
static String PROPERTY_START_DELAY
           
static String QUARTZ
           
 
Fields inherited from class org.mule.transport.AbstractConnector
createMultipleTransactedReceivers, DEFAULT_NUM_CONCURRENT_TX_RECEIVERS, dispatcherFactory, dispatcherPoolFactory, dispatchers, initialStateStopped, lifecycleManager, logger, muleContext, muleMessageFactory, name, numberOfConcurrentTransactedReceivers, PROPERTY_POLLING_FREQUENCY, receivers, requesterFactory, requesters, serviceDescriptor, serviceOverrides, sessionHandler, startOnConnect
 
Fields inherited from interface org.mule.api.transport.Connector
INT_VALUE_NOT_SET
 
Fields inherited from interface org.mule.api.lifecycle.Disposable
PHASE_NAME
 
Constructor Summary
QuartzConnector(org.mule.api.MuleContext context)
           
 
Method Summary
protected  void doConnect()
           
protected  void doDisconnect()
           
protected  void doDispose()
           
protected  void doInitialise()
           
protected  void doStart()
           
protected  void doStop()
           
 Properties getFactoryProperties()
           
 String getProtocol()
           
 org.quartz.Scheduler getQuartzScheduler()
           
 void setFactoryProperties(Properties factoryProperties)
           
 void setQuartzScheduler(org.quartz.Scheduler scheduler)
           
 
Methods inherited from class org.mule.transport.AbstractConnector
clearDispatchers, clearRequesters, configureDispatcherPool, connect, createDefaultRedeliveryPolicy, createDispatcherMessageProcessor, createMuleMessageFactory, createOperationResource, createReceiver, createScheduler, destroyReceiver, disconnect, dispose, disposeReceivers, disposeWorkManagers, doUnregisterListener, fireNotification, getConnectEventId, getConnectionDescription, getDefaultExchangePattern, getDefaultInboundTransformers, getDefaultOutboundTransformers, getDefaultResponseTransformers, getDispatcherFactory, getDispatcherPoolFactory, getDispatcherThreadingProfile, getDispatcherWorkManager, getInboundExchangePatterns, getLifecycleState, getMaxDispatchersActive, getMaxRequestersActive, getMaxTotalDispatchers, getMuleContext, getMuleMessageFactory, getName, getNumberOfConcurrentTransactedReceivers, getOperationResourceFactory, getOutboundExchangePatterns, getOutputStream, getReceiver, getReceiverKey, getReceivers, getReceivers, getReceiverThreadingProfile, getReceiverWorkManager, getReplyToHandler, getRequesterFactory, getRequesterThreadingProfile, getRequesterWorkManager, getRetryPolicyTemplate, getScheduler, getServiceDescriptor, getServiceOverrides, getSessionHandler, getSupportedProtocols, getTransactionalResource, handleWorkException, initFromServiceDescriptor, initialise, initialiseFromUrl, initWorkManagers, isConnected, isConnecting, isCreateMultipleTransactedReceivers, isDisposed, isEnableMessageEvents, isInitialised, isInitialStateStopped, isResponseEnabled, isStarted, isStarting, isStopped, isStopping, isValidateConnections, lookupReceiver, registerListener, registerSupportedMetaProtocol, registerSupportedProtocol, registerSupportedProtocolWithoutPrefix, request, request, setConnected, setConnecting, setCreateMultipleTransactedReceivers, setDispatcherFactory, setDispatcherPoolFactory, setDispatcherPoolMaxWait, setDispatcherPoolWhenExhaustedAction, setDispatcherThreadingProfile, setDynamicNotification, setInitialStateStopped, setMaxDispatchersActive, setMaxRequestersActive, setName, setNumberOfConcurrentTransactedReceivers, setReceiverThreadingProfile, setRequesterFactory, setRequesterPoolMaxWait, setRequesterPoolWhenExhaustedAction, setRequesterThreadingProfile, setRetryPolicyTemplate, setServiceOverrides, setSessionHandler, setSupportedProtocols, setupDispatchReturn, setupRequestReturn, setValidateConnections, shutdownScheduler, start, startAfterConnect, stop, supportsProtocol, toString, unregisterListener, unregisterSupportedProtocol, updateCachedNotificationHandler, validateConnection, workAccepted, workCompleted, workRejected, workStarted
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

QUARTZ

public static final String QUARTZ
See Also:
Constant Field Values

PROPERTY_CRON_EXPRESSION

public static final String PROPERTY_CRON_EXPRESSION
See Also:
Constant Field Values

PROPERTY_REPEAT_INTERVAL

public static final String PROPERTY_REPEAT_INTERVAL
See Also:
Constant Field Values

PROPERTY_REPEAT_COUNT

public static final String PROPERTY_REPEAT_COUNT
See Also:
Constant Field Values

PROPERTY_START_DELAY

public static final String PROPERTY_START_DELAY
See Also:
Constant Field Values

PROPERTY_PAYLOAD

public static final String PROPERTY_PAYLOAD
See Also:
Constant Field Values

PROPERTY_JOB_CONFIG

public static final String PROPERTY_JOB_CONFIG
See Also:
Constant Field Values

PROPERTY_JOB_DATA

public static final String PROPERTY_JOB_DATA
See Also:
Constant Field Values

PROPERTY_JOB_REF

public static final String PROPERTY_JOB_REF
See Also:
Constant Field Values

PROPERTY_JOB_OBJECT

public static final String PROPERTY_JOB_OBJECT
See Also:
Constant Field Values

PROPERTY_JOB_DYNAMIC

public static final String PROPERTY_JOB_DYNAMIC
See Also:
Constant Field Values

DEFAULT_GROUP_NAME

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

QuartzConnector

public QuartzConnector(org.mule.api.MuleContext context)
Method Detail

doInitialise

protected void doInitialise()
                     throws org.mule.api.lifecycle.InitialisationException
Specified by:
doInitialise in class org.mule.transport.AbstractConnector
Throws:
org.mule.api.lifecycle.InitialisationException

doDispose

protected void doDispose()
Specified by:
doDispose in class org.mule.transport.AbstractConnector

doConnect

protected void doConnect()
                  throws Exception
Specified by:
doConnect in class org.mule.transport.AbstractConnector
Throws:
Exception

doDisconnect

protected void doDisconnect()
                     throws Exception
Specified by:
doDisconnect in class org.mule.transport.AbstractConnector
Throws:
Exception

doStart

protected void doStart()
                throws org.mule.api.MuleException
Specified by:
doStart in class org.mule.transport.AbstractConnector
Throws:
org.mule.api.MuleException

doStop

protected void doStop()
               throws org.mule.api.MuleException
Specified by:
doStop in class org.mule.transport.AbstractConnector
Throws:
org.mule.api.MuleException

getProtocol

public String getProtocol()

getQuartzScheduler

public org.quartz.Scheduler getQuartzScheduler()

setQuartzScheduler

public void setQuartzScheduler(org.quartz.Scheduler scheduler)

getFactoryProperties

public Properties getFactoryProperties()

setFactoryProperties

public void setFactoryProperties(Properties factoryProperties)


Copyright © 2003-2012 MuleSoft, Inc.. All Rights Reserved.