public abstract class ScheduledMessageProcessor extends AbstractMessageProcessor
Modifier and Type | Class and Description |
---|---|
protected static class |
ScheduledMessageProcessor.State |
Modifier and Type | Field and Description |
---|---|
protected String |
cronExpression
A cron expression to run the sampler
|
protected long |
interval
The interval at which this processor runs , default value is 1000ms
|
static String |
PROCESSOR_INSTANCE |
protected String |
quartzConfig
The quartz configuration file if specified as a parameter
|
static String |
SCHEDULED_MESSAGE_PROCESSOR_GROUP |
protected org.quartz.Scheduler |
scheduler
The scheduler, run the the processor
|
protected ScheduledMessageProcessor.State |
state
Keep the state of the message processor
|
configuration, description, fileName, log, messageStore, name, parameters
Constructor and Description |
---|
ScheduledMessageProcessor() |
Modifier and Type | Method and Description |
---|---|
void |
destroy()
This method should implement the destroying of the
implemented parts of the configuration.
|
protected abstract org.quartz.JobBuilder |
getJobBuilder() |
protected org.quartz.JobDataMap |
getJobDataMap() |
void |
init(SynapseEnvironment se)
This method should implement the initialization of the
implemented parts of the configuration.
|
void |
setParameters(Map<String,Object> parameters)
Set the Message processor parameters that will be used by the specific implementation
|
void |
start()
Start Message Processor
|
void |
stop()
Stop MessageProcessor
|
getDescription, getFileName, getMessageStoreName, getName, getParameters, isStarted, setDescription, setFileName, setMessageStoreName, setName
public static final String SCHEDULED_MESSAGE_PROCESSOR_GROUP
public static final String PROCESSOR_INSTANCE
protected org.quartz.Scheduler scheduler
protected long interval
protected String quartzConfig
protected String cronExpression
protected ScheduledMessageProcessor.State state
public void start()
MessageProcessor
public void stop()
MessageProcessor
public void setParameters(Map<String,Object> parameters)
MessageProcessor
setParameters
in interface MessageProcessor
setParameters
in class AbstractMessageProcessor
public void init(SynapseEnvironment se)
ManagedLifecycle
init
in interface ManagedLifecycle
init
in class AbstractMessageProcessor
se
- SynapseEnvironment to be used for initializationprotected abstract org.quartz.JobBuilder getJobBuilder()
protected org.quartz.JobDataMap getJobDataMap()
public void destroy()
ManagedLifecycle
Copyright © 2005-2017 Apache Software Foundation. All Rights Reserved.