|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.synapse.message.processors.AbstractMessageProcessor
public abstract class AbstractMessageProcessor
Class 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
Nested Class Summary | |
---|---|
protected static class |
AbstractMessageProcessor.State
|
Field Summary | |
---|---|
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 Summary | |
---|---|
AbstractMessageProcessor()
|
Method Summary | |
---|---|
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.synapse.message.processors.MessageProcessor |
---|
start, stop |
Methods inherited from interface org.apache.synapse.ManagedLifecycle |
---|
destroy |
Field Detail |
---|
protected org.apache.commons.logging.Log log
protected String messageStore
protected String description
protected String name
protected String fileName
protected SynapseConfiguration configuration
protected Map<String,Object> parameters
Constructor Detail |
---|
public AbstractMessageProcessor()
Method Detail |
---|
public void init(SynapseEnvironment se)
ManagedLifecycle
init
in interface ManagedLifecycle
se
- SynapseEnvironment to be used for initializationpublic void setMessageStoreName(String messageStore)
MessageProcessor
setMessageStoreName
in interface MessageProcessor
messageStore
- name the underlying MessageStore instancepublic String getMessageStoreName()
MessageProcessor
getMessageStoreName
in interface MessageProcessor
public void setParameters(Map<String,Object> parameters)
MessageProcessor
setParameters
in interface MessageProcessor
public Map<String,Object> getParameters()
MessageProcessor
getParameters
in interface MessageProcessor
public boolean isStarted()
MessageProcessor
isStarted
in interface MessageProcessor
public String getName()
Nameable
getName
in interface Nameable
public void setName(String name)
Nameable
setName
in interface Nameable
name
- String Representation of namepublic void setDescription(String description)
SynapseArtifact
setDescription
in interface SynapseArtifact
description
- tobe set to the artifactpublic String getDescription()
SynapseArtifact
getDescription
in interface SynapseArtifact
public void setFileName(String filename)
MessageProcessor
setFileName
in interface MessageProcessor
filename
- Name of the file where this artifact is definedpublic String getFileName()
MessageProcessor
getFileName
in interface MessageProcessor
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |