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 implementationsModifier 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, wait
start, stop
destroy
protected 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)
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
public void setName(String name)
Nameable
public 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
Copyright © 2005-2017 Apache Software Foundation. All Rights Reserved.