public abstract class AbstractMessageProcessor extends Object implements MessageProcessor
AbstractMessageProcessor is handles Message processing of the messages
in Message Store. Abstract Message Store is assumes that Message processors can be implemented
using the quartz scheduler jobs. If in case we user wants a different implementation They can
directly use MessageProcessor interface for that implementations| Modifier and Type | Class and Description |
|---|---|
protected static class |
AbstractMessageProcessor.State |
| Modifier and Type | Field and Description |
|---|---|
protected SynapseConfiguration |
configuration |
protected String |
description |
protected String |
fileName |
protected org.apache.commons.logging.Log |
log |
protected String |
messageStore
Message Store associated with Message processor
|
protected String |
name |
protected Map<String,Object> |
parameters
message store parameters
|
| Constructor and Description |
|---|
AbstractMessageProcessor() |
| Modifier and Type | Method and Description |
|---|---|
String |
getDescription()
Retrieves the description of the artifact
|
String |
getFileName()
get the file name that the message processor is configured
|
String |
getMessageStoreName()
Get message store name associated with the Message processor
|
String |
getName()
Get the name of an abstraction
|
Map<String,Object> |
getParameters()
Get the Message processor Parameters
|
void |
init(SynapseEnvironment se)
This method should implement the initialization of the
implemented parts of the configuration.
|
boolean |
isStarted()
Returns weather a Message processor is started or not
|
void |
setDescription(String description)
Set the description of the artifact
|
void |
setFileName(String filename)
Set the name of the file that the Message Processor is configured
|
void |
setMessageStoreName(String messageStore)
Set the Message Store name that backs the Message processor
|
void |
setName(String name)
Set the name of an abstraction
|
void |
setParameters(Map<String,Object> parameters)
Set the Message processor parameters that will be used by the specific implementation
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitstart, stopdestroyprotected org.apache.commons.logging.Log log
protected String messageStore
protected String description
protected String name
protected String fileName
protected SynapseConfiguration configuration
public void init(SynapseEnvironment se)
ManagedLifecycleinit in interface ManagedLifecyclese - SynapseEnvironment to be used for initializationpublic void setMessageStoreName(String messageStore)
MessageProcessorsetMessageStoreName in interface MessageProcessormessageStore - name the underlying MessageStore instancepublic String getMessageStoreName()
MessageProcessorgetMessageStoreName in interface MessageProcessorpublic void setParameters(Map<String,Object> parameters)
MessageProcessorsetParameters in interface MessageProcessorpublic Map<String,Object> getParameters()
MessageProcessorgetParameters in interface MessageProcessorpublic boolean isStarted()
MessageProcessorisStarted in interface MessageProcessorpublic String getName()
Nameablepublic void setName(String name)
Nameablepublic void setDescription(String description)
SynapseArtifactsetDescription in interface SynapseArtifactdescription - tobe set to the artifactpublic String getDescription()
SynapseArtifactgetDescription in interface SynapseArtifactpublic void setFileName(String filename)
MessageProcessorsetFileName in interface MessageProcessorfilename - Name of the file where this artifact is definedpublic String getFileName()
MessageProcessorgetFileName in interface MessageProcessorCopyright © 2005-2017 Apache Software Foundation. All Rights Reserved.