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 | Field and Description |
|---|---|
protected String |
artifactContainerName
Name of the artifact container from which the message processor deployed
|
protected SynapseConfiguration |
configuration |
protected String |
description |
protected String |
fileName |
protected boolean |
isEdited
Whether the message processor edited via the management console
|
protected List<MessageConsumer> |
messageConsumers |
protected String |
messageStore
Message Store associated with Message processor
|
protected String |
name |
protected Map<String,Object> |
parameters
message store parameters
|
protected String |
targetEndpoint
This attribute is only need for forwarding message processor.
|
| Constructor and Description |
|---|
AbstractMessageProcessor() |
| Modifier and Type | Method and Description |
|---|---|
void |
destroy(boolean preserveState)
Undeploy the artifact but keeps the current state based on the preserveState argument.
|
String |
getArtifactContainerName()
Get the name of the artifact container from which the message processor deployed
|
String |
getDescription()
Retrieves the description of the artifact
|
String |
getFileName()
This method is used to retrieve the configuration file name of the message processor.
|
List<MessageConsumer> |
getMessageConsumer()
This method retrieves the message consumer of message processor.
|
String |
getMessageStoreName()
This method returns the associated message store name of the message processor.
|
String |
getName()
Get the name of an abstraction
|
Map<String,Object> |
getParameters()
This method is used to retrieve the configuration parameters of message processor.
|
String |
getTargetEndpoint()
This method is used to retrieve the associated target endpoint name of the message processor.
|
void |
init(SynapseEnvironment se)
This method should implement the initialization of the
implemented parts of the configuration.
|
boolean |
isEdited()
Whether the message processor edited through the management console
|
void |
setArtifactContainerName(String artifactContainerName)
Set the name of the artifact container from which the message processor deployed
|
void |
setDescription(String description)
Set the description of the artifact
|
void |
setFileName(String filename)
This method is used to set the actual configuration file.
|
void |
setIsEdited(boolean isEdited)
Set whether the message processor edited through the management console
|
boolean |
setMessageConsumer(MessageConsumer consumer)
This method is used to set the message consumer of message processor.
|
void |
setMessageStoreName(String messageStore)
This method is used to set the associated message store of the message processor.
|
void |
setName(String name)
Set the name of an abstraction
|
void |
setParameters(Map<String,Object> parameters)
This method is used to set configuration parameters of the message processor.
|
void |
setTargetEndpoint(String targetEndpoint)
This method set the target endpoint associated with the message processor.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitactivate, cleanupLocalResources, deactivate, isDeactivated, isPaused, pauseService, resumeService, start, stopdestroyprotected String messageStore
protected String description
protected String name
protected String fileName
protected SynapseConfiguration configuration
protected List<MessageConsumer> messageConsumers
protected String artifactContainerName
protected boolean isEdited
protected String targetEndpoint
public void init(SynapseEnvironment se)
ManagedLifecycleinit in interface ManagedLifecyclese - SynapseEnvironment to be used for initializationpublic void setMessageStoreName(String messageStore)
MessageProcessorsetMessageStoreName in interface MessageProcessormessageStore - Name of this message store.public String getMessageStoreName()
MessageProcessorgetMessageStoreName in interface MessageProcessorpublic void setParameters(Map<String,Object> parameters)
MessageProcessorsetParameters in interface MessageProcessorparameters - Message processor parameters.public Map<String,Object> getParameters()
MessageProcessorgetParameters 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 - is the name of the filepublic String getFileName()
MessageProcessorgetFileName in interface MessageProcessorpublic List<MessageConsumer> getMessageConsumer()
MessageProcessorgetMessageConsumer in interface MessageProcessorpublic boolean setMessageConsumer(MessageConsumer consumer)
MessageProcessorsetMessageConsumer in interface MessageProcessorconsumer - is the name of the associated message consumerpublic void setTargetEndpoint(String targetEndpoint)
MessageProcessorsetTargetEndpoint in interface MessageProcessortargetEndpoint - is the name of the associated endpointpublic String getTargetEndpoint()
MessageProcessorgetTargetEndpoint in interface MessageProcessorpublic boolean isEdited()
isEdited in interface MessageProcessorpublic void setIsEdited(boolean isEdited)
setIsEdited in interface MessageProcessorisEdited - public String getArtifactContainerName()
getArtifactContainerName in interface MessageProcessorpublic void setArtifactContainerName(String artifactContainerName)
setArtifactContainerName in interface MessageProcessorartifactContainerName - public void destroy(boolean preserveState)
preserveState - determine whether to preserve the artifacts state or notCopyright © 2005–2024 Apache Software Foundation. All rights reserved.