EventReader Class

This class provides functionality to read monitoring events from monitoring session log folders. Instances of subclasses of class MonitorEvent represent each event.
Inheritance Hierarchy
SystemObject
  IntervalZero.RTX64.MonitorEventReader

Namespace:  IntervalZero.RTX64.Monitor
Assembly:  IntervalZero.RTX64 (in IntervalZero.RTX64.dll) Version: 3.3.0.0 (File version: 3.5.0)

Syntax
public class EventReader : IDisposable

The EventReader type exposes the following members.

Constructors
NameDescription
Public methodEventReader
This constructor prepares this instance to read event data from the most recent monitoring session folder. To read event data from a different folder, use constructor EventReader(string).
Public methodEventReader(String)
This constructor prepares this instance to read event data from the monitoring session stored in the specified folder.
Top
Properties
NameDescription
Public propertyFirstTimeStamp
This property will return the first timestamp within the session. If the index has not been built yet it will return 0.
Public propertyIsIndexBuilding
Public API to tell if the Index is currently being built
Public propertyLastTimeStamp
This property will return the last timestamp within the session. If the Index has not been built yet it will return 0.
Public propertyMaxCore
This property holds the highest processor number seen in the current session's event data.
Public propertyPIDToPathname
This is a read-only property that returns a Dictionary that maps a real-time PID to the absolute pathname of the process's main module (i.e., the RTSS application).
Public propertySessionVersion
This is the version of the monitoring session data that is being read. Depending on the value returned by this property, various properties in subclasses of class MonitorEvent may be defined or undefined. See the documentation for each property for information about which fields are defined for which monitoring session versions.
Top
Methods
NameDescription
Public methodCloseData
Closes the unmanaged OS handles used to access the contents of monitoring event session folders. This must be called by the client after all calls to method ReadEvents have finished and no more calls to ReadEvents will be made.
Public methodDeleteSession
Deletes the contents of the current Session. Once called this object will also be disposed of and cannot be used further. A new object should be instantiated.
Public methodDispose
Public implementation of dispose,
Public methodGetEventReaderThis method opens a monitor session file (.monx) or a monitor event file (.mev), which opens the Event Reader session.
Public methodGetProcessPathnameByPID
Returns the absolute pathname of the main module (the RTSS file) of the real-time process having the process ID specified by parameter pid.
Public methodReadEvents
This method returns an array of MonitorEvents containing no more than the specified number of elements.
Public methodResetToStartResets the event reader so the next call to EventReader.ReadEvents returns event(s) from the start of the monitoring session.
Top
Events
NameDescription
Public eventIndexFinishedBuilding
This event will be set once upon completion of the index being constructed. This event will only be set once and only if the index is not already constructed for the opened session.
Top
See Also