C# Class Centreon_EventLog_2_Syslog.Program

ファイルを表示 Open project: centreon/centreon-E2S

Public Properties

Property Type Description
lastExecTime System.DateTime
maxExecTime System.DateTime
nextCheck System.DateTime

Public Methods

Method Description
Program ( ) : System

Simple constructor

Start ( ) : void

Start process: 1 - Control if process already exist and quit if exist 2 - Loop while process not receive order to stop it 3 - Load configuration 4 - Launch thread to parse event log 5 - Wait x seconds berore goto 3

Private Methods

Method Description
LoadConfiguration ( ) : void

Main load XML configuration file call sub load XML configuration file functions

LoadConfigurationProgram ( XmlNode node ) : void

Load program configuration from specific XML node

LoadFilters ( XmlNode node ) : void

Load filters to find in event log

LoadSyslogConfiguration ( XmlNode node ) : void

Load Syslog server parameters

ProcessAlreadyExist ( ) : bool

Test if exist process exist

StartThread ( ) : void

Start one thread ThreadFilter by event log name

Method Details

Program() public method

Simple constructor
public Program ( ) : System
return System

Start() public method

Start process: 1 - Control if process already exist and quit if exist 2 - Loop while process not receive order to stop it 3 - Load configuration 4 - Launch thread to parse event log 5 - Wait x seconds berore goto 3
public Start ( ) : void
return void

Property Details

lastExecTime public_oe static_oe property

public static DateTime,System lastExecTime
return System.DateTime

maxExecTime public_oe static_oe property

public static DateTime,System maxExecTime
return System.DateTime

nextCheck public_oe static_oe property

public static DateTime,System nextCheck
return System.DateTime