C# 클래스 Centreon_EventLog_2_Syslog.SyslogServer

파일 보기 프로젝트 열기: centreon/centreon-E2S 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
Sending_thread Thread
connected bool
sending bool

공개 메소드들

메소드 설명
SendEvent ( String eventLogName, System.Diagnostics.EventLogEntry eventLogEntry, Filter filter ) : void

Send event to syslog server using UDP protocol

SetSyslogServer ( String ServerAddress, int ServerPort ) : void
SyslogServer ( String serverAddress ) : System

Definition of distant syslog server. This constructor set UDP protocol.

SyslogServer ( String serverAddress, String protocol ) : System

Definition of distant syslog server

SyslogServer ( String serverAddress, String protocol, int port ) : System

Definition of distant syslog server

SyslogServer ( String serverAddress, String protocol, int port, int memoryBufferMaxSize ) : System

Definition of distant syslog server

SyslogServer ( String serverAddress, String protocol, int port, int memoryBufferMaxSize, Debug &debug ) : System

Definition of distant syslog server

ToString ( ) : String

Obtain all properties of this object

비공개 메소드들

메소드 설명
PrepareSyslogEvent ( String evebntLogName, System.Diagnostics.EventLogEntry eventLogEntry ) : String

Transform EventLogEntry to String

Send ( String message ) : void

Add syslog event in Queue if can't join TCP syslog server

SendEventByTCP ( String message, String eventLogName, System.Diagnostics.EventLogEntry eventLogEntry, Filter filter ) : System.Boolean

Send event to syslog server using TCP protocol

SendEventByUDP ( String message, String eventLogName, System.Diagnostics.EventLogEntry eventLogEntry, Filter filter ) : System.Boolean

Send event to syslog server

SendThread ( ) : void

Thread to send syslog event to TCP syslog server

SetMessageInBuffer ( String message ) : void

Set syslog event into memory buffer to try to sent it later

SetPort ( int port ) : void

Set and control port number

SetProtocol ( String protocol ) : void

Set and control protocol

SetServerAddress ( String server ) : void

Set and control IP address or DNS

SetSyslogLevelAndFacility ( ) : void

Add syslog facilities and levels into Hashtable

메소드 상세

SendEvent() 공개 메소드

Send event to syslog server using UDP protocol
public SendEvent ( String eventLogName, System.Diagnostics.EventLogEntry eventLogEntry, Filter filter ) : void
eventLogName String
eventLogEntry System.Diagnostics.EventLogEntry Event to transfert to syslog server
filter Filter Filter with Syslog facility and level
리턴 void

SetSyslogServer() 공개 메소드

public SetSyslogServer ( String ServerAddress, int ServerPort ) : void
ServerAddress String
ServerPort int
리턴 void

SyslogServer() 공개 메소드

Definition of distant syslog server. This constructor set UDP protocol.
public SyslogServer ( String serverAddress ) : System
serverAddress String IP address or DNS
리턴 System

SyslogServer() 공개 메소드

Definition of distant syslog server
public SyslogServer ( String serverAddress, String protocol ) : System
serverAddress String IP address or DNS
protocol String Protocol: UDP or TCP
리턴 System

SyslogServer() 공개 메소드

Definition of distant syslog server
public SyslogServer ( String serverAddress, String protocol, int port ) : System
serverAddress String IP address or DNS
protocol String Protocol: UDP or TCP
port int Integer between 1 to 65535
리턴 System

SyslogServer() 공개 메소드

Definition of distant syslog server
public SyslogServer ( String serverAddress, String protocol, int port, int memoryBufferMaxSize ) : System
serverAddress String IP address or DNS
protocol String Protocol: UDP or TCP
port int Integer between 1 to 65535
memoryBufferMaxSize int Memory buffer size. Only used for TCP protocol.
리턴 System

SyslogServer() 공개 메소드

Definition of distant syslog server
public SyslogServer ( String serverAddress, String protocol, int port, int memoryBufferMaxSize, Debug &debug ) : System
serverAddress String IP address or DNS
protocol String Protocol: UDP or TCP
port int Integer between 1 to 65535
memoryBufferMaxSize int Memory buffer size. Only used for TCP protocol.
debug Debug Debug object
리턴 System

ToString() 공개 메소드

Obtain all properties of this object
public ToString ( ) : String
리턴 String

프로퍼티 상세

Sending_thread 공개적으로 프로퍼티

public Thread Sending_thread
리턴 Thread

connected 공개적으로 프로퍼티

public bool connected
리턴 bool

sending 공개적으로 프로퍼티

public bool sending
리턴 bool