org.mule.providers.quartz
Class QuartzConnector

java.lang.Object
  extended byorg.mule.providers.AbstractConnector
      extended byorg.mule.providers.AbstractServiceEnabledConnector
          extended byorg.mule.providers.quartz.QuartzConnector
All Implemented Interfaces:
Disposable, ExceptionListener, Initialisable, UMOConnectable, UMOConnector

public class QuartzConnector
extends AbstractServiceEnabledConnector

Creates a connection to a Quartz sheduler. This allows events to be sheduled at specific times, with repeated occurences.


Field Summary
static String DEFAULT_GROUP_NAME
           
static String PROPERTY_CRON_EXPRESSION
           
static String PROPERTY_GROUP_NAME
           
static String PROPERTY_JOB_CLASS
           
static String PROPERTY_JOB_DISPATCH_ENDPOINT
           
static String PROPERTY_JOB_GROUP_NAME
           
static String PROPERTY_JOB_OBJECT
           
static String PROPERTY_JOB_RECEIVE_ENDPOINT
           
static String PROPERTY_JOB_RECEIVE_TIMEOUT
           
static String PROPERTY_JOB_REF
           
static String PROPERTY_PAYLOAD
           
static String PROPERTY_PAYLOAD_CLASS_NAME
          deprecated: use PROPERTY_PAYLOAD_REFERENCE
static String PROPERTY_PAYLOAD_REFERENCE
           
static String PROPERTY_REPEAT_COUNT
           
static String PROPERTY_REPEAT_INTERVAL
           
static String PROPERTY_START_DELAY
           
 
Fields inherited from class org.mule.providers.AbstractServiceEnabledConnector
serviceDescriptor, serviceOverrides
 
Fields inherited from class org.mule.providers.AbstractConnector
connected, connecting, createDispatcherPerRequest, createMultipleTransactedReceivers, defaultInboundTransformer, defaultOutboundTransformer, defaultResponseTransformer, dispatcherFactory, dispatchers, disposed, disposing, exceptionListener, initialised, logger, name, receivers, serverSide, sessionHandler, started, startOnConnect
 
Fields inherited from interface org.mule.umo.provider.UMOConnector
INT_VALUE_NOT_SET
 
Constructor Summary
QuartzConnector()
           
 
Method Summary
 void doInitialise()
           
protected  void doStart()
          Template method to perform any work when starting the connectoe
protected  void doStop()
          Template method to perform any work when stopping the connectoe
 SchedulerFactory getFactory()
           
 String getFactoryClassName()
           
 Properties getFactoryProperties()
           
 String getProtocol()
           
 Scheduler getScheduler()
           
 void setFactory(SchedulerFactory factory)
           
 void setFactoryClassName(String factoryClassName)
           
 void setFactoryProperties(Properties factoryProperties)
           
 void setScheduler(Scheduler scheduler)
           
 
Methods inherited from class org.mule.providers.AbstractServiceEnabledConnector
createReceiver, getMessageAdapter, getServiceDescriptor, getServiceOverrides, getStreamMessageAdapter, initFromServiceDescriptor, initialiseFromUrl, setServiceOverrides
 
Methods inherited from class org.mule.providers.AbstractConnector
checkDisposed, connect, createDispatcher, destroyReceiver, disconnect, dispose, disposeDispatchers, disposeReceivers, doConnect, doDisconnect, doDispose, exceptionThrown, fireNotification, getConnectEventId, getConnectionDescription, getConnectionStrategy, getDefaultInboundTransformer, getDefaultOutboundTransformer, getDefaultResponseTransformer, getDispatcher, getDispatcher, getDispatcherFactory, getDispatchers, getDispatcherThreadingProfile, getExceptionListener, getName, getReceiver, getReceiver, getReceiverKey, getReceivers, getReceivers, getReceiverThreadingProfile, getReplyToHandler, getSessionHandler, getSupportedProtocols, handleException, handleWorkException, initialise, isConnected, isCreateDispatcherPerRequest, isCreateMultipleTransactedReceivers, isDisposed, isDisposing, isEnableMessageEvents, isRemoteSyncEnabled, isServerSide, isStarted, isUseSingleDispatcherThreadPool, isUseSingleReceiverThreadPool, lookupDispatcher, lookupReceiver, registerListener, registerSupportedProtocol, registerSupportedProtocolWithotPrefix, setConnectionStrategy, setCreateDispatcherPerRequest, setCreateMultipleTransactedReceivers, setDefaultInboundTransformer, setDefaultOutboundTransformer, setDefaultResponseTransformer, setDispatcherFactory, setDispatcherThreadingProfile, setEnableMessageEvents, setExceptionListener, setName, setReceiverThreadingProfile, setServerSide, setSessionHandler, setSupportedProtocols, setUseSingleDispatcherThreadPool, setUseSingleReceiverThreadPool, startConnector, stopConnector, supportsProtocol, unregisterListener, unregisterSupportedProtocol, workAccepted, workCompleted, workRejected, workStarted
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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_DISPATCH_ENDPOINT

public static final String PROPERTY_JOB_DISPATCH_ENDPOINT
See Also:
Constant Field Values

PROPERTY_JOB_RECEIVE_ENDPOINT

public static final String PROPERTY_JOB_RECEIVE_ENDPOINT
See Also:
Constant Field Values

PROPERTY_JOB_RECEIVE_TIMEOUT

public static final String PROPERTY_JOB_RECEIVE_TIMEOUT
See Also:
Constant Field Values

PROPERTY_PAYLOAD_CLASS_NAME

public static final String PROPERTY_PAYLOAD_CLASS_NAME
deprecated: use PROPERTY_PAYLOAD_REFERENCE

See Also:
Constant Field Values

PROPERTY_PAYLOAD_REFERENCE

public static final String PROPERTY_PAYLOAD_REFERENCE
See Also:
Constant Field Values

PROPERTY_GROUP_NAME

public static final String PROPERTY_GROUP_NAME
See Also:
Constant Field Values

PROPERTY_JOB_GROUP_NAME

public static final String PROPERTY_JOB_GROUP_NAME
See Also:
Constant Field Values

PROPERTY_JOB_REF

public static final String PROPERTY_JOB_REF
See Also:
Constant Field Values

PROPERTY_JOB_CLASS

public static final String PROPERTY_JOB_CLASS
See Also:
Constant Field Values

PROPERTY_JOB_OBJECT

public static final String PROPERTY_JOB_OBJECT
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()
Method Detail

getProtocol

public String getProtocol()
Specified by:
getProtocol in interface UMOConnector
Specified by:
getProtocol in class AbstractConnector

doInitialise

public void doInitialise()
                  throws InitialisationException
Overrides:
doInitialise in class AbstractServiceEnabledConnector
Throws:
InitialisationException

doStart

protected void doStart()
                throws UMOException
Description copied from class: AbstractConnector
Template method to perform any work when starting the connectoe

Overrides:
doStart in class AbstractConnector
Throws:
UMOException - if the method fails

doStop

protected void doStop()
               throws UMOException
Description copied from class: AbstractConnector
Template method to perform any work when stopping the connectoe

Overrides:
doStop in class AbstractConnector
Throws:
UMOException - if the method fails

getFactory

public SchedulerFactory getFactory()

setFactory

public void setFactory(SchedulerFactory factory)

getScheduler

public Scheduler getScheduler()

setScheduler

public void setScheduler(Scheduler scheduler)

getFactoryClassName

public String getFactoryClassName()

setFactoryClassName

public void setFactoryClassName(String factoryClassName)

getFactoryProperties

public Properties getFactoryProperties()

setFactoryProperties

public void setFactoryProperties(Properties factoryProperties)


Copyright © 2003-2006 MuleSource Inc.. All Rights Reserved.