#include <MqFilter.h>
Public Member Functions | |
MqFilter () | |
~MqFilter () | |
bool | canLogPayload () |
bool | isMethodSupported (FilterMethod method, bool asClient) |
FilterResult | ProcessMessage (XERCES_CPP_NAMESPACE_QUALIFIER DOMDocument *inputOutputData, NameValueCollection &transportHeaders, bool asClient) |
FilterResult | ProcessMessage (const XERCES_CPP_NAMESPACE_QUALIFIER DOMDocument *inputData, AbstractFilter::buffer_type outputData, NameValueCollection &transportHeaders, bool asClient) |
FilterResult | ProcessMessage (AbstractFilter::buffer_type inputData, XERCES_CPP_NAMESPACE_QUALIFIER DOMDocument *outputData, NameValueCollection &transportHeaders, bool asClient) |
FilterResult | ProcessMessage (AbstractFilter::buffer_type inputData, AbstractFilter::buffer_type outputData, NameValueCollection &transportHeaders, bool asClient) |
FilterResult | ProcessMessage (const XERCES_CPP_NAMESPACE_QUALIFIER DOMDocument *inputData, unsigned char **outputData, NameValueCollection &transportHeaders, bool asClient) |
FilterResult | ProcessMessage (AbstractFilter::buffer_type inputData, unsigned char **outputData, NameValueCollection &transportHeaders, bool asClient) |
void | Init () |
void | Reply (const string &buffer, const NameValueCollection &transportHeaders, long feedback) |
Use this method to send a reply MQ message as response to a request. More... | |
void | Rollback () |
void | Commit () |
void | Abort () |
If filter proccess batches the entire batch is moved to DEAD.LETTER by Cleanup() for further details see MqFilter::CleanUp() More... | |
void | Cleanup () |
This Method is used by MqFilter::Abort()to move al messages to DEAD.LETTER. More... | |
bool | isBatch () const |
string | getQueueManagerName () const |
string | getTransportURI () const |
string | getQueueName () const |
TransportHelper::TRANSPORT_HELPER_TYPE | getHelperType () const |
bool | isTransportType () |
Public Member Functions inherited from FinTP::AbstractFilter | |
virtual | ~AbstractFilter () |
Destructor. More... | |
const NameValueCollection & | getProperties () const |
void | setLogFile (const string &filename) |
sets the name of the file where the payload will be logged More... | |
string | getLogFile () const |
gets the name of the file where the payload will be logged More... | |
void | addProperty (const string &name, const string &value) |
FilterType::FilterTypeEnum | getFilterType () const |
Static Public Attributes | |
static const string | MQQUEUE = "MQQueue" |
static const string | MQBACKUPQUEUE = "MQBackupQueue" |
static const string | MQMANAGER = "MQQMgr" |
static const string | MQURI = "MQURI" |
static const string | MQHELPERTYPE = "MQManagerType" |
static const string | MQBATCH = "batch" |
static const string | MQMSGSIZE = "MQMSGSIZE" |
static const string | MQMSGID = "MQMSGID" |
static const string | MQGROUPID = "MQGROUPID" |
static const string | MQLASTMSG = "MQLASTMSG" |
static const string | MQMSGCORELID = "MQMSGCORELID" |
static const string | MQREPLYQUEUE = "MQREPLYQUEUE" |
static const string | MQREPLYQUEUEMANAGER = "MQREPLYQUEUEMANAGER" |
static const string | MQREPLYOPTIONS = "MQREPLYOPTIONS" |
static const string | MQRPLTransportURI = "MQRplChDef" |
static const string | MQRPLMESSAGETYPE = "MQRplMsgType" |
static const string | MQRPLUSRDATA = "MQRplUsrData" |
static const string | MQRPLMESSAGEFORMAT = "MQRplMsgFmt" |
static const string | MQMESSAGETYPE = "MQMESSAGETYPE" |
static const string | MQFEEDBACK = "MQFEEDBACK" |
static const string | MQFORMAT = "format" |
static const string | MQAPPNAME = "APPNAME" |
static const string | MQSEQUENCE = "MQSEQUENCE" |
static const string | MQSSLKEYREPOSITORY = "MQKEYREPOSITORY" |
static const string | MQSSLCYPHERSPEC = "MQSSLCYPHERSPEC" |
static const string | MQSSLPEERNAME = "MQSSLPEERNAME" |
static const string | MQHELPERRETRIES = "MQHELPERRETRIES" |
Private Member Functions | |
void | ValidateProperties () |
private methods implementation More... | |
string | getQueueManagerName (NameValueCollection &transportHeaders) const |
string | getTransportURI (const NameValueCollection &transportHeaders) const |
string | getReplyTransportURI (const NameValueCollection &transportHeaders) const |
string | getQueueName (NameValueCollection &transportHeaders) const |
string | getBackupQueueName (NameValueCollection &transportHeaders) const |
string | getMessageId (NameValueCollection &transportHeaders) const |
string | getGroupId (NameValueCollection &transportHeaders) const |
string | getCorrelationId (NameValueCollection &transportHeaders) const |
string | getSSLKeyRepository (const NameValueCollection &transportHeaders) const |
string | getSSLCypherSpec (const NameValueCollection &transportHeaders) const |
string | getSSLPeerName (const NameValueCollection &transportHeaders) const |
void | setTransportHeaders (NameValueCollection &transportHeaders, bool asClient) |
string | getFormat () |
bool | isBatch (NameValueCollection &transportHeaders) const |
Private Attributes | |
string | m_QueueManagerName |
string | m_QueueName |
string | m_BackupQueueName |
string | m_MessageId |
string | m_GroupId |
string | m_CorrelationId |
string | m_CrtBatchId |
BatchManager< BatchMQStorage > * | m_BatchManager |
TransportHelper * | m_CrtHelper |
TransportHelper::TRANSPORT_HELPER_TYPE | m_HelperType |
Additional Inherited Members | |
Public Types inherited from FinTP::AbstractFilter | |
enum | FilterResult { Completed = 1, Fail = 2 } |
Return completed if the filter has successfully processed the message. More... | |
enum | FilterMethod { XmlToXml = 0, XmlToBuffer = 1, BufferToXml = 2, BufferToBuffer = 3 } |
Methods for filters. More... | |
typedef WorkItem< ManagedBuffer > | buffer_type |
Static Public Member Functions inherited from FinTP::AbstractFilter | |
static string | ToString (const FilterMethod type) |
Protected Member Functions inherited from FinTP::AbstractFilter | |
AbstractFilter (FilterType::FilterTypeEnum type) | |
Constructor. More... | |
Protected Attributes inherited from FinTP::AbstractFilter | |
NameValueCollection | m_Properties |
Collection of name-value pairs = additional properties for the filter e.g. More... | |
FilterType::FilterTypeEnum | m_FilterType |
string | m_LogPayloadFile |
MqFilter::MqFilter | ( | ) |
MqFilter::~MqFilter | ( | ) |
|
virtual |
If filter proccess batches the entire batch is moved to DEAD.LETTER by Cleanup() for further details see MqFilter::CleanUp()
Reimplemented from FinTP::AbstractFilter.
|
virtual |
Reimplemented from FinTP::AbstractFilter.
void MqFilter::Cleanup | ( | ) |
This Method is used by MqFilter::Abort()to move al messages to DEAD.LETTER.
::setCleaningUp() tell the storage to use the suitable get() method that move message to DEAD.LETTER see BatchManager<BatchMQStorage>::deqeue() In MqPublisher MqPublisher::Abort() was called only if entire batch was retried for proper MqPublisher::m_BackoutCont. When the code is getting here the batch will not be proccess any more
|
virtual |
Reimplemented from FinTP::AbstractFilter.
|
private |
|
private |
|
private |
|
private |
TransportHelper::TRANSPORT_HELPER_TYPE MqFilter::getHelperType | ( | ) | const |
|
private |
|
virtual |
Reimplemented from FinTP::AbstractFilter.
|
private |
|
virtual |
Reimplemented from FinTP::AbstractFilter.
|
private |
|
private |
|
private |
|
private |
|
private |
|
virtual |
Reimplemented from FinTP::AbstractFilter.
|
private |
|
virtual |
Reimplemented from FinTP::AbstractFilter.
|
virtual |
Reimplemented from FinTP::AbstractFilter.
|
private |
|
virtual |
Reimplemented from FinTP::AbstractFilter.
|
inlinevirtual |
Reimplemented from FinTP::AbstractFilter.
|
virtual |
Implements FinTP::AbstractFilter.
|
virtual |
Implements FinTP::AbstractFilter.
|
virtual |
Implements FinTP::AbstractFilter.
|
virtual |
Implements FinTP::AbstractFilter.
|
inlinevirtual |
Implements FinTP::AbstractFilter.
|
inlinevirtual |
Implements FinTP::AbstractFilter.
void MqFilter::Reply | ( | const string & | buffer, |
const NameValueCollection & | transportHeaders, | ||
long | feedback | ||
) |
Use this method to send a reply MQ message as response to a request.
This method is part of a scenario of sending back report messages via Connector:FilterChain:MqFilter. Scenario not fully implemented yet
|
virtual |
Reimplemented from FinTP::AbstractFilter.
|
private |
|
private |
private methods implementation
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |