org.apache.servicemix.quartz
Class QuartzEndpoint
java.lang.Object
org.apache.servicemix.common.endpoints.AbstractEndpoint
org.apache.servicemix.common.endpoints.SimpleEndpoint
org.apache.servicemix.common.endpoints.ConsumerEndpoint
org.apache.servicemix.quartz.QuartzEndpoint
- All Implemented Interfaces:
- Endpoint
public class QuartzEndpoint
- extends ConsumerEndpoint
|
Method Summary |
java.util.Map<java.lang.String,org.quartz.Calendar> |
getCalendars()
|
org.quartz.JobDetail |
getJobDetail()
|
java.lang.String |
getLocationURI()
|
QuartzMarshaler |
getMarshaler()
|
org.quartz.Trigger |
getTrigger()
|
java.util.List<org.quartz.Trigger> |
getTriggers()
|
void |
onJobExecute(org.quartz.JobExecutionContext context)
|
void |
process(javax.jbi.messaging.MessageExchange exchange)
|
void |
setCalendars(java.util.Map<java.lang.String,org.quartz.Calendar> calendars)
A map with Calendar instances to define the trigger schedule. |
void |
setJobDetail(org.quartz.JobDetail job)
Set a custom JobDetail bean to be used in the triggered events. |
void |
setMarshaler(QuartzMarshaler marshaler)
Set a custom marshaler class to translate the JobDetail information into a normalized message. |
void |
setTrigger(org.quartz.Trigger trigger)
A single Trigger instance to define the trigger schedule. |
void |
setTriggers(java.util.List<org.quartz.Trigger> triggers)
A list of of Trigger instances to allow configuring multiple schedules for the same endpoint. |
void |
start()
|
void |
stop()
|
void |
validate()
|
| Methods inherited from class org.apache.servicemix.common.endpoints.ConsumerEndpoint |
activate, configureExchangeTarget, deactivate, getRole, getTargetEndpoint, getTargetInterface, getTargetOperation, getTargetService, getTargetUri, setTargetEndpoint, setTargetInterface, setTargetOperation, setTargetService, setTargetUri |
| Methods inherited from class org.apache.servicemix.common.endpoints.AbstractEndpoint |
getDefinition, getDescription, getEndpoint, getInterfaceName, getKey, getService, getServiceUnit, isExchangeOkay, prepareExchange, setDefinition, setDescription, setEndpoint, setInterfaceName, setService, setServiceUnit, toString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
QuartzEndpoint
public QuartzEndpoint()
getTriggers
public java.util.List<org.quartz.Trigger> getTriggers()
- Returns:
- the triggers
setTriggers
public void setTriggers(java.util.List<org.quartz.Trigger> triggers)
- A list of of
Trigger instances to allow configuring multiple schedules for the same endpoint.
- Parameters:
triggers - the triggers to set
getTrigger
public org.quartz.Trigger getTrigger()
- Returns:
- the trigger
setTrigger
public void setTrigger(org.quartz.Trigger trigger)
- A single
Trigger instance to define the trigger schedule.
- Parameters:
trigger - the trigger to set
getCalendars
public java.util.Map<java.lang.String,org.quartz.Calendar> getCalendars()
- Returns:
- the calendar
setCalendars
public void setCalendars(java.util.Map<java.lang.String,org.quartz.Calendar> calendars)
- A map with
Calendar instances to define the trigger schedule.
- Parameters:
calendar - the calendar to set
getJobDetail
public org.quartz.JobDetail getJobDetail()
- Returns:
- the job
setJobDetail
public void setJobDetail(org.quartz.JobDetail job)
- Set a custom JobDetail bean to be used in the triggered events.
- Parameters:
job - the job to set
getMarshaler
public QuartzMarshaler getMarshaler()
setMarshaler
public void setMarshaler(QuartzMarshaler marshaler)
- Set a custom marshaler class to translate the JobDetail information into a normalized message.
- Parameters:
marshaler -
getLocationURI
public java.lang.String getLocationURI()
- Overrides:
getLocationURI in class ConsumerEndpoint
process
public void process(javax.jbi.messaging.MessageExchange exchange)
throws java.lang.Exception
- Specified by:
process in interface Endpoint- Specified by:
process in class AbstractEndpoint
- Throws:
java.lang.Exception
onJobExecute
public void onJobExecute(org.quartz.JobExecutionContext context)
throws org.quartz.JobExecutionException
- Throws:
org.quartz.JobExecutionException
validate
public void validate()
throws javax.jbi.management.DeploymentException
- Specified by:
validate in interface Endpoint- Overrides:
validate in class ConsumerEndpoint
- Throws:
javax.jbi.management.DeploymentException
start
public void start()
throws java.lang.Exception
- Specified by:
start in interface Endpoint- Overrides:
start in class SimpleEndpoint
- Throws:
java.lang.Exception
stop
public void stop()
throws java.lang.Exception
- Specified by:
stop in interface Endpoint- Overrides:
stop in class SimpleEndpoint
- Throws:
java.lang.Exception
Copyright © 2005-2012 FuseSource. All Rights Reserved.