#include <TransportHelper.h>
Public Types | |
enum | TRANSPORT_HELPER_TYPE { WMQ = 1, AMQ = 2, AQ = 3, NONE = 0 } |
enum | TRANSPORT_MESSAGE_TYPE { TMT_DATAGRAM = 0, TMT_REPLY = 1, TMT_REQUEST = 2, TMT_REPORT = 3 } |
Public Member Functions | |
virtual | ~TransportHelper () |
virtual void | connect (const string &queueManagerName="", const string &transportUri="", bool force=false)=0 |
virtual void | connect (const string &queueManagerName, const string &transportUri, const string &keyRepository, const string &sslCypherSpec, const string &sslPeerName, bool force=false) |
virtual void | disconnect ()=0 |
virtual bool | commit ()=0 |
virtual bool | rollback ()=0 |
virtual long | getOne (unsigned char *buffer, size_t maxSize, bool syncpoint=true)=0 |
virtual long | getOne (ManagedBuffer *buffer, bool syncpoint=true, bool keepJMSHeader=true)=0 |
Pull one message from MQ Server and return it in 'ManagedBuffer* buffer'. More... | |
virtual long | getGroupMessage (ManagedBuffer *groupMessageBuffer, const string &groupId, bool &isCleaningUp)=0 |
virtual void | putOne (unsigned char *buffer, size_t bufferSize, bool syncpoint=true)=0 |
virtual void | putGroupMessage (ManagedBuffer *buffer, const string &batchId, long messageSequence, bool isLast)=0 |
virtual void | putSAAmessage (const TransportReplyOptions &replyOptions, const string &replyQueue, ManagedBuffer *buffer, const string &batchId, long messageSequence, bool isLast) |
virtual void | putOneRequest (unsigned char *buffer, size_t bufferSize, const string &rtqName, const string &rtqmName, TransportReplyOptions &replyOptions)=0 |
virtual void | putOneReply (unsigned char *buffer, size_t bufferSize=0, long feedback=0, TRANSPORT_MESSAGE_TYPE replyType=TMT_REPLY)=0 |
virtual long | peek (const string &queue="", bool first=true)=0 |
virtual long | getQueueDepth (const string &queueName)=0 |
virtual TRANSPORT_MESSAGE_TYPE | getLastMessageType ()=0 |
virtual void | clearMessages ()=0 |
virtual string | getApplicationName () const =0 |
Set message header value when message end up in Dead.letter.queue. More... | |
virtual void | setApplicationName (const string &applicationName)=0 |
virtual TransportReplyOptions | getLastReplyOptions () const =0 |
TODO getLastReplyOptions to return ReplyOptions type. More... | |
string | getLastReplyQueue () const |
virtual string | getLastReplyQueueManager () const =0 |
virtual void | clearSSLOptions ()=0 |
DEPRECATED (virtual void openQueue(const string &queueName)) | |
Common interface. More... | |
DEPRECATED (virtual void closeQueue()) | |
virtual long | getOne (ManagedBuffer *buffer) |
string | getLastMessageId () const |
virtual void | setMessageId (const string &messageId) |
string | getLastCorrelId () const |
virtual void | setCorrelationId (const string &correlId) |
string | getLastGroupId () const |
virtual void | setGroupId (const string &groupId) |
int | getLastGroupSequence () const |
virtual void | setMessageFormat (const string &format)=0 |
virtual string | getLastMessageFormat () const =0 |
void | setReplyUserData (const string &usrData) |
string | getReplyUserData () const |
time_t | getMessagePutTime () |
unsigned long | getLastMessageLength () const |
long long | getLastFeedback () const |
bool | isLastInGroup () const |
virtual void | setAutoAbandon (const int retries) |
virtual void | setBackupQueue (const string &queueName) |
long | getQueueDepth () |
Static Public Member Functions | |
static TransportHelper * | CreateHelper (const TransportHelper::TRANSPORT_HELPER_TYPE &helperType) |
Factory method used to instantiate propper TransportHelper. More... | |
static TRANSPORT_HELPER_TYPE | parseTransportType (const string &transportType) |
static AbstractLogPublisher * | createMqLogPublisher (const NameValueCollection &propSettings, bool &isDefault) |
Static Public Attributes | |
static const string | TMT_STRING = "TMT_STRING" |
static const string | TMT_RF_HEADER_2 = "TMT_RF_HEADER_2" |
static const string | TMT_NONE = "" |
Protected Member Functions | |
TransportHelper (unsigned int messageIdLength) | |
Private ctor. More... | |
Protected Attributes | |
const unsigned int | m_MessageIdLength |
string | m_QueueName |
string | m_MessageId |
string | m_CorrelationId |
string | m_GroupId |
int | m_GroupSequence |
bool | m_UsePassedMessageId |
bool | m_UsePassedCorrelId |
bool | m_UsePassedGroupId |
bool | m_UsePassedAppName |
string | m_MessagePutDate |
string | m_MessagePutTime |
string | m_ReplyQueue |
int | m_QueueOpenRefCount |
long long | m_Feedback |
bool | m_LastInGroup |
string | m_ReplyUsrData |
string | m_ApplicationName |
string | m_SSLKeyRepository |
string | m_SSLCypherSpec |
string | m_SSLPeerName |
unsigned int | m_MessageLength |
int | m_AutoAbandon |
string | m_BackupQueueName |
bool | m_SaveBackup |
|
protected |
Private ctor.
used to initialise all data members of the TransportHelper interface
Every TransportHelper inplementation should provide its own specific parameters
[in] | 'const | string& messageFormat': specific value provided by each implementation to specify string or byte message format |
[in] | 'unsigned | int messageIdLength': message ID length used by the core FinTP current implementation of TransportHelper |
|
inlinevirtual |
|
pure virtual |
Implemented in FinTP::WMqHelper, and FinTP::AmqHelper.
|
pure virtual |
Implemented in FinTP::WMqHelper, and FinTP::AmqHelper.
|
pure virtual |
Implemented in FinTP::WMqHelper, and FinTP::AmqHelper.
|
pure virtual |
Implemented in FinTP::WMqHelper, and FinTP::AmqHelper.
|
inlinevirtual |
Reimplemented in FinTP::WMqHelper, and FinTP::AmqHelper.
|
static |
Factory method used to instantiate propper TransportHelper.
Every FinTP component that communicate with MQ Server, has a configuration key that specify its TransportHelper type The component only call 'CreateHelper( const string& helperType )' and pass configured helperType in order to instatiate its TransportHelper
[in] | 'const | string& helperType' |
|
static |
TODO Use of new Log.PublisherMQ.URI as connection string by ne new ctor.MQLogPublisher( const string& m_ConnectionString, const string& helperType )
|
inline |
Common interface.
|
inline |
|
pure virtual |
Implemented in FinTP::AmqHelper, and FinTP::WMqHelper.
|
pure virtual |
Set message header value when message end up in Dead.letter.queue.
Implemented in FinTP::WMqHelper, and FinTP::AmqHelper.
|
pure virtual |
Implemented in FinTP::WMqHelper, and FinTP::AmqHelper.
|
inline |
|
inline |
|
inline |
|
inline |
|
pure virtual |
Implemented in FinTP::WMqHelper, and FinTP::AmqHelper.
|
inline |
|
inline |
|
pure virtual |
Implemented in FinTP::WMqHelper, and FinTP::AmqHelper.
|
pure virtual |
TODO getLastReplyOptions to return ReplyOptions type.
Implemented in FinTP::WMqHelper, and FinTP::AmqHelper.
|
inline |
|
pure virtual |
Implemented in FinTP::WMqHelper, and FinTP::AmqHelper.
time_t TransportHelper::getMessagePutTime | ( | ) |
|
pure virtual |
Implemented in FinTP::WMqHelper, and FinTP::AmqHelper.
|
pure virtual |
Pull one message from MQ Server and return it in 'ManagedBuffer* buffer'.
Syncpoit participation is mandatory if transaction should be controlled by application Is method responsibility to set all ids for currently fetch message ( i.e m_MessageId, m_CorrelationId )
ManagedBuffer* | buffer:returned MQ message |
bool | syncpoint: true value, make the operation part of unit of work spanned over multiple operation |
bool | keepJMSHeader: true value, make MQ header part of buffer |
Implemented in FinTP::AmqHelper, and FinTP::WMqHelper.
|
inlinevirtual |
|
pure virtual |
Implemented in FinTP::WMqHelper.
|
inline |
|
inline |
|
inline |
|
static |
|
pure virtual |
Implemented in FinTP::WMqHelper.
|
pure virtual |
Implemented in FinTP::WMqHelper, and FinTP::AmqHelper.
|
pure virtual |
Implemented in FinTP::WMqHelper, and FinTP::AmqHelper.
|
pure virtual |
Implemented in FinTP::WMqHelper, and FinTP::AmqHelper.
|
pure virtual |
Implemented in FinTP::WMqHelper.
|
virtual |
Reimplemented in FinTP::WMqHelper.
|
pure virtual |
Implemented in FinTP::WMqHelper, and FinTP::AmqHelper.
|
pure virtual |
Implemented in FinTP::WMqHelper.
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
pure virtual |
Implemented in FinTP::WMqHelper, and FinTP::AmqHelper.
|
virtual |
|
inline |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
static |
|
static |
|
static |