#include <rmEvent.h>
Public Methods | |
| rmEvent (subsystemInfo *aSubsystemInfo, resourceInfo *aResourceInfo, dataCaptureInfo *aDataCaptureInfo) | |
| virtual | ~rmEvent () |
| int | init () |
| void | addEvent (posix_log_recid_t aRecID, unsigned long aMonID) |
| add an event into the event queue. More... | |
| void | processEvents () |
| process all the events in the queue. More... | |
Private Methods | |
| int | getEventType (posix_log_recid_t aRecID, long &aType) |
| int | getEventText (posix_log_recid_t aRecID, char **aText) |
| int | sendMonitorEvent (EventType aType, eventData &aEvent) |
| int | processSystemEvent (EventType aType, eventData &aEvent) |
| int | sendSubSystemEvent (EventName aEvent, uuid_t aUUID) |
| int | sendResourceEvent (EventName aEvent, uuid_t aUUID, unsigned long aID, string aName) |
| int | sendPluginEvent (EventName aEvent, uuid_t aUUID, unsigned long aID, string aName) |
Private Attributes | |
| queue< eventData > | mEventQueue |
| bool | mUpdating |
| posix_log_notify_t | mSystemNotifyHandle |
| subsystemInfo * | mSubsystemInfo |
| resourceInfo * | mResourceInfo |
| dataCaptureInfo * | mDataCaptureInfo |
Definition at line 38 of file rmEvent.h.
|
||||||||||||||||
|
Definition at line 42 of file rmEvent.h. References mDataCaptureInfo, mResourceInfo, and mSubsystemInfo. |
|
|
Definition at line 49 of file rmEvent.h. References mSystemNotifyHandle. |
|
||||||||||||
|
add an event into the event queue. Subagent calls this function whenever an event is received. The event is stored into a queue for furthur processing. Definition at line 61 of file rmEvent.cpp. References mEventQueue, eventData::monid, and eventData::recid. Referenced by rmClient::addEvent. |
|
||||||||||||
|
Definition at line 135 of file rmEvent.cpp. References EVENTLOG, EVENTLOG_STRING, and getString. Referenced by processSystemEvent, and sendMonitorEvent. |
|
||||||||||||
|
Definition at line 129 of file rmEvent.cpp. References EVENTLOG, EVENTLOG_TYPE, and getInteger32. Referenced by processEvents. |
|
|
Definition at line 20 of file rmEvent.cpp. References mSystemNotifyHandle, RMCLIENT_ERROR_NOTIFY_CREATE, RMCLIENT_ERROR_QUERY, and RMCLIENT_SUCCESS. Referenced by rmClient::init. |
|
|
process all the events in the queue. processEvents() gets called every time the select() loop returned when subagent gets interrupted by a signal. It actually processes all the events inside the event queue. Definition at line 80 of file rmEvent.cpp. References getEventType, LEAKYBUCKET, mEventQueue, processSystemEvent, eventData::recid, RESOURCE, sendMonitorEvent, SUBSYSTEM, THRESHOLD, and THRESHOLDCANCEL. Referenced by rmClient::processEvents. |
|
||||||||||||
|
||||||||||||
|
Definition at line 141 of file rmEvent.cpp. References EventType, getEventText, getUnsigned, LEAKYBUCKET, eventData::monid, MONITOR, MONITOR_CONFIGID, MONITOR_CONTROLID, MONITOR_SUBSYSTEMID, eventData::recid, RMCLIENT_ERROR_NOSUCHNAME, RMCLIENT_SUCCESS, THRESHOLD, and THRESHOLDCANCEL. Referenced by processEvents. |
|
||||||||||||||||||||
|
Definition at line 490 of file rmEvent.cpp. References DATACAPTURE_ADDED, DATACAPTURE_REMOVED, EventName, and RMCLIENT_SUCCESS. Referenced by processSystemEvent. |
|
||||||||||||||||||||
|
Definition at line 306 of file rmEvent.cpp. References EventName, getString, subsystemInfo::getSubsystemIDByUUID, mSubsystemInfo, RESOURCE_ADDED, RESOURCE_REMOVED, RMCLIENT_SUCCESS, SUBSYSTEMINFO, and SUBSYSTEMINFO_NAME. Referenced by processSystemEvent. |
|
||||||||||||
|
Definition at line 241 of file rmEvent.cpp. References EventName, getString, subsystemInfo::getSubsystemIDByUUID, mSubsystemInfo, RMCLIENT_SUCCESS, SUBSYSTEM_ADDED, SUBSYSTEM_REMOVED, SUBSYSTEMINFO, and SUBSYSTEMINFO_NAME. Referenced by processSystemEvent. |
|
|
Definition at line 83 of file rmEvent.h. Referenced by processSystemEvent, and rmEvent. |
|
|
Definition at line 75 of file rmEvent.h. Referenced by addEvent, and processEvents. |
|
|
Definition at line 82 of file rmEvent.h. Referenced by processSystemEvent, and rmEvent. |
|
|
Definition at line 81 of file rmEvent.h. Referenced by processSystemEvent, rmEvent, sendResourceEvent, and sendSubSystemEvent. |
|
|
|
|
|
|
1.2.14 written by Dimitri van Heesch,
© 1997-2002