C# Class Centreon_EventLog_2_Syslog.ThreadFilter

Show file Open project: centreon/centreon-E2S Class Usage Examples

Public Methods

Method Description
ThreadFilter ( String logName, SyslogServer &syslogServer, ArrayList iFilters, ArrayList eFilters, Debug &debug, System.DateTime lastExecTime, System.DateTime maxExecTime, ManualResetEvent doneEvent ) : System

Complex constructor for filter thread

ThreadLoop ( Object threadContext ) : void

Scan Windows eventLog for find event like rules and send it to a syslog server

Private Methods

Method Description
TestEvent ( System.Diagnostics.EventLogEntry actualEventLog, ArrayList filters ) : System.Boolean

Control if event corresponds to a filter

Method Details

ThreadFilter() public method

Complex constructor for filter thread
public ThreadFilter ( String logName, SyslogServer &syslogServer, ArrayList iFilters, ArrayList eFilters, Debug &debug, System.DateTime lastExecTime, System.DateTime maxExecTime, ManualResetEvent doneEvent ) : System
logName String EventLog name
syslogServer SyslogServer
iFilters System.Collections.ArrayList
eFilters System.Collections.ArrayList
debug Debug Permit to write debug lines
lastExecTime System.DateTime Min time search
maxExecTime System.DateTime Mas time search
doneEvent System.Threading.ManualResetEvent ManualResetEvent object to know if process if complit
return System

ThreadLoop() public method

Scan Windows eventLog for find event like rules and send it to a syslog server
public ThreadLoop ( Object threadContext ) : void
threadContext Object ManualResetEvent object
return void