#include <MqWatcher.h>
Public Types | |
enum | WatchOptions { NotifyGroups = 1, NotifyMessage = 2, NotifyUnique = 4 } |
![]() | |
typedef WorkItemPool < NotificationObject > | NotificationPool |
Public Member Functions | |
MqWatcher (NotificationPool *notificationPool, const string &queue="", const string &queueManager="", const string &channelDefinition="", const string &connectionString="") | |
~MqWatcher () | |
void | setHelperType (const TransportHelper::TRANSPORT_HELPER_TYPE &helperType) |
void | setQueue (const string &queue) |
void | setQueueManager (const string &queue) |
void | setTransportURI (const string &transportURI) |
void | setWatchOptions (int options) |
void | setSSLCypherSpec (const string &cypherSpec) |
void | setSSLPeerName (const string &peerName) |
void | setSSLKeyRepository (const string &keyRepository) |
![]() | |
void | setCallback (void(*callback)(const NotificationObject *)) |
void | setNotificationPool (NotificationPool *notificationPool) |
void | setIdleCallback (void(*callback)(void), unsigned int seconds) |
virtual | ~AbstractWatcher () |
void | setEnableRaisingEvents (bool val) |
void | setObjectPrepareMethod (void *(*prepareCallback)(void *)) |
void | setNotificationType (const NotificationObject::NotificationType notifType) |
pthread_t | getThreadId () |
void | waitForExit () |
![]() | |
void | registerCounter (const string &ownerTypeName, const string &counterName, const InstrumentedObject *iobject) |
Protected Member Functions | |
void | internalScan () |
![]() | |
AbstractWatcher (NotificationPool *notificationPool, void *(*prepareCallback)(void *object)=NULL) | |
AbstractWatcher (void(*callback)(const NotificationObject *), void *(*prepareCallback)(void *object)=NULL) | |
![]() | |
InstrumentedObject () | |
virtual | ~InstrumentedObject () |
string | InternalGetCounters () const |
Private Attributes | |
int | m_WatchOptions |
string | m_Queue |
string | m_QueueManager |
string | m_TransportURI |
string | m_SSLKeyRepos |
string | m_SSLCypherSpec |
string | m_SSLPeerName |
TransportHelper::TRANSPORT_HELPER_TYPE | m_HelperType |
Additional Inherited Members | |
![]() | |
static unsigned int | GetIntrumentedInstanceNo () |
static void | RemoveAllCounters () |
static string | Report () |
static string | Collect () |
![]() | |
static InstrumentedObject | Instance |
static pthread_mutex_t | ObjMutex = PTHREAD_MUTEX_INITIALIZER |
![]() | |
void(* | m_Callback )(const NotificationObject *notification) |
void *(* | m_PrepareCallback )(void *object) |
void(* | m_IdleCallback )(void) |
pthread_t | m_ScanThreadId |
bool | m_Enabled |
NotificationObject::NotificationType | m_NotificationType |
unsigned int | m_IdleTimeout |
NotificationPool * | m_NotificationPool |
![]() | |
map< string, unsigned long > | m_Counters |
map< string, const InstrumentedObject * > | m_RegisteredObjects |
unsigned int | m_RegisterCounter |
vector< string > | m_CollectedReports |
|
explicit |
MqWatcher::~MqWatcher | ( | ) |
|
protectedvirtual |
Implements FinTP::AbstractWatcher.
void MqWatcher::setHelperType | ( | const TransportHelper::TRANSPORT_HELPER_TYPE & | helperType | ) |
void MqWatcher::setQueue | ( | const string & | queue | ) |
void MqWatcher::setQueueManager | ( | const string & | queue | ) |
|
inline |
|
inline |
|
inline |
void MqWatcher::setTransportURI | ( | const string & | transportURI | ) |
|
inline |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |