fintp_base
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
FinTP::DbWatcher Class Reference

#include <DbWatcher.h>

Inheritance diagram for FinTP::DbWatcher:

Public Types

enum  WatchOptions { ReturnDataSet = 1, ReturnCursorXml = 2 }
 
- Public Types inherited from FinTP::AbstractWatcher
typedef WorkItemPool
< NotificationObject
NotificationPool
 

Public Member Functions

 DbWatcher (void(*callback)(const NotificationObject *), const bool fullObjectNotif=false)
 
 DbWatcher (NotificationPool *notificationPool, const bool fullObjectNotif=false)
 
 DbWatcher (NotificationPool *notificationPool, const ConnectionString &connectionString, bool fullObjectNotif=false)
 
 ~DbWatcher ()
 
void setConnectionString (const ConnectionString &connectionString)
 
void setFullObjectNotification (const bool newValue)
 
void setSelectSPName (const string &spName)
 
string getSelectSPName () const
 
void setProvider (const string &provider)
 
DatabaseProvider::PROVIDER_TYPE getProvider () const
 
void setWatchOptions (int options)
 
void setDatabaseToXMLTrimm (const bool trimmOption)
 
- Public Member Functions inherited from FinTP::AbstractWatcher
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 ()
 
- Public Member Functions inherited from FinTP::InstrumentedObject
void registerCounter (const string &ownerTypeName, const string &counterName, const InstrumentedObject *iobject)
 

Protected Member Functions

void internalScan ()
 
- Protected Member Functions inherited from FinTP::AbstractWatcher
 AbstractWatcher (NotificationPool *notificationPool, void *(*prepareCallback)(void *object)=NULL)
 
 AbstractWatcher (void(*callback)(const NotificationObject *), void *(*prepareCallback)(void *object)=NULL)
 
- Protected Member Functions inherited from FinTP::InstrumentedObject
 InstrumentedObject ()
 
virtual ~InstrumentedObject ()
 
string InternalGetCounters () const
 

Private Attributes

int m_WatchOptions
 
bool m_FullObjectNotif
 
string m_SelectSPName
 
DatabaseProvider::PROVIDER_TYPE m_DatabaseProvider
 
ConnectionString m_ConnectionString
 
bool m_DatabaseToXmlTrimmOption
 

Additional Inherited Members

- Static Public Member Functions inherited from FinTP::InstrumentedObject
static unsigned int GetIntrumentedInstanceNo ()
 
static void RemoveAllCounters ()
 
static string Report ()
 
static string Collect ()
 
- Static Public Attributes inherited from FinTP::InstrumentedObject
static InstrumentedObject Instance
 
static pthread_mutex_t ObjMutex = PTHREAD_MUTEX_INITIALIZER
 
- Protected Attributes inherited from FinTP::AbstractWatcher
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
 
NotificationPoolm_NotificationPool
 
- Protected Attributes inherited from FinTP::InstrumentedObject
map< string, unsigned long > m_Counters
 
map< string, const
InstrumentedObject * > 
m_RegisteredObjects
 
unsigned int m_RegisterCounter
 
vector< string > m_CollectedReports
 

Member Enumeration Documentation

Enumerator
ReturnDataSet 
ReturnCursorXml 

Constructor & Destructor Documentation

DbWatcher::DbWatcher ( void(*)(const NotificationObject *)  callback,
const bool  fullObjectNotif = false 
)
explicit
DbWatcher::DbWatcher ( NotificationPool notificationPool,
const bool  fullObjectNotif = false 
)
explicit
DbWatcher::DbWatcher ( NotificationPool notificationPool,
const ConnectionString &  connectionString,
bool  fullObjectNotif = false 
)
DbWatcher::~DbWatcher ( )

Member Function Documentation

DatabaseProvider::PROVIDER_TYPE DbWatcher::getProvider ( ) const
string DbWatcher::getSelectSPName ( ) const
void DbWatcher::internalScan ( )
protectedvirtual
void DbWatcher::setConnectionString ( const ConnectionString &  connectionString)
void FinTP::DbWatcher::setDatabaseToXMLTrimm ( const bool  trimmOption)
inline
void FinTP::DbWatcher::setFullObjectNotification ( const bool  newValue)
inline
void DbWatcher::setProvider ( const string &  provider)
void DbWatcher::setSelectSPName ( const string &  spName)
void FinTP::DbWatcher::setWatchOptions ( int  options)
inline

Member Data Documentation

ConnectionString FinTP::DbWatcher::m_ConnectionString
private
DatabaseProvider::PROVIDER_TYPE FinTP::DbWatcher::m_DatabaseProvider
private
bool FinTP::DbWatcher::m_DatabaseToXmlTrimmOption
private
bool FinTP::DbWatcher::m_FullObjectNotif
private
string FinTP::DbWatcher::m_SelectSPName
private
int FinTP::DbWatcher::m_WatchOptions
private

The documentation for this class was generated from the following files: