2. Mule Quartz Connector?
The Quartz Connector supports the scheduling of programmatic events, both
inside and outside your Mule flow. Through a quartz endpoint, you can trigger
flows that don’t depend on receiving any external input to execute at scheduled
times.
For instance, an inbound Quartz endpoint can trigger inbound events, such as
temperature reports from a remote location, at regular intervals.
Outbound Quartz endpoints can delay otherwise imminent events. For example,
you can prevent outgoing email from being sent as soon as it has completed
processing in your Mule flow. Instead, you can use Quartz to delay sending it until
the top of the next hour.
3. How can Quartz connector be
used?
– Quartz endpoint configuration consists of two stages:
– Decide where you want to place the Quartz endpoint within your Mule flow, then
drag it from the Palette to the appropriate place in the sequence of building blocks
that make up your Mule flow.
– If you place the Quartz endpoint at the beginning of the flow, it acts as an inbound endpoint
(such as, message source), controlling the timing of inbound events.
– If you place the Quartz building block in the middle or at the end of the flow, it serves as an
outbound endpoint, controlling the times at which outbound events take place.
– Configure the Quartz endpoint by providing values for the fields on the various tabs
on the properties editor, which you open by clicking the Quartz icon on the Message
Flow canvas.
4. Quartz Connector – Configuring as
Inbound Endpoint (General tab) (Cont.)
– Following are the properties on general tab –
– Display Name – The name of the connector used for display purposes in Mule flow.
5. Quartz Connector – Configuring as
Inbound Endpoint (General tab)
– Following are the properties present on general tab –
– Job Name – The name of the Quartz job.
– CRON Expression – CRON expression to schedule event at specified date and time.
– CRON Time Zone – The ID of the time zone on which the expression will be based.
– Repeat Interval – Interval after which Quartz Connector will repeat its job.
– Repeat Count – Number of events to be scheduled.
– Start Delay – Time delay after server startup to start Quartz job.
– Job – Instance of Job to be executed by Quartz connector.
– Connector Configuration – Reference of Connector Configuration.
6. Quartz Connector – Configuring as
Inbound Endpoint (Advanced tab)(Cont.)
– Following are the properties on advanced tab –
– Address – The generic address for this Quartz endpoint.
7. Quartz Connector – Configuring as
Inbound Endpoint (Advanced tab)
– Following are the properties on advanced tab –
– Response Timeout – Time in milliseconds after which the call will be timed out if no
response.
– Encoding – Encoding standard applied on message data.
– MIME Type – Mime type of message data e.g. application/json.
– Connector Endpoint – Reference of the global configuration of connector endpoint.
8. Quartz Connector – Configuring as Inbound
Endpoint (Reconnection tab) (Cont.)
– Following are the properties in reconnection tab –
– Do not use a Reconnection Strategy – This is the default radio button which specifies
do not try to reconnect if there is error connecting to the web address URL.
9. Quartz Connector – Configuring as
Inbound Endpoint (Reconnection tab)
– Following are properties on reconnection tab –
– Standard Reconnection – Use this radio button to enable a standard reconnection
strategy.
– Frequency (ms) – The frequency time in milliseconds after which the File connector will try to
access the web address URL.
– Reconnect Attempts – This tells how many times the File connector will try to connect to web
address URL.
– Reconnector Forever – Check this box if there is need to make File connector connect to web
address URL until there is a successful connection with it.
– Custom Reconnection – Use this radio button to create a custom Reconnection strategy.
– Class – The java class which will come in action after a failed connection attempt.
– Run the connection in a separated thread – Check this box if there is need to use this custom
reconnection operation in separate thread.
10. Quartz Connector – Configuring as
Inbound Endpoint (Transformers tab)
– Following are properties on Transformers tab –
– Global transformers – Enter a list of synchronous transformers that are applied to the
request before it is sent to the POP3 connector.
– Transformers to be applied - Enter a list of synchronous transformers that are applied
to the response before it is dispatched from the POP3 connector.
11. Quartz Connector – Notes and
Meta-Data tabs
– Notes tab - This tab is used to add special notes for the Quartz connector.
– Metadata tab – This tab is used to add any metadata entry for Quartz connector.