summaryrefslogtreecommitdiff
path: root/netsvcs/lib/Server_Logging_Handler.h
blob: 91a473caf40569f6f73ceb1cf0e666ed829fdd95 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
#if !defined (ACE_SERVER_LOGGING_HANDLER_H)
#define ACE_SERVER_LOGGING_HANDLER_H

#include "Log_Message_Receiver.h"
#include "Server_Logging_Handler_T.h"

// Type based log message receivers.
typedef Static_Log_Message_Receiver<ACE_NULL_SYNCH> Null_Synch_Static_Receiver;
typedef Static_Log_Message_Receiver<ACE_LOGGER_SYNCH> Synch_Static_Receiver;

typedef ACE_Server_Logging_Handler<Null_Synch_Static_Receiver> Null_Synch_Logging_Handler_Static_Receiver;

typedef ACE_Server_Logging_Handler<Synch_Static_Receiver> Synch_Logging_Handler_Static_Receiver;
typedef ACE_Thr_Server_Logging_Handler<Synch_Static_Receiver> Synch_Thr_Logging_Handler_Static_Receiver;

typedef ACE_Server_Logging_Acceptor_T<Null_Synch_Logging_Handler_Static_Receiver, 
                                     Null_Synch_Static_Receiver, 
                                     ACE_Schedule_All_Reactive_Strategy<Null_Synch_Logging_Handler_Static_Receiver> > 
                  Null_Synch_Logging_Handler_Static_Receiver_Acceptor;                  

typedef ACE_Server_Logging_Acceptor_T<Synch_Logging_Handler_Static_Receiver, 
                                     Synch_Static_Receiver, 
                                     ACE_Schedule_All_Reactive_Strategy<Synch_Logging_Handler_Static_Receiver> > 
                  Synch_Logging_Handler_Static_Receiver_Acceptor;                  

typedef ACE_Server_Logging_Acceptor_T<Synch_Thr_Logging_Handler_Static_Receiver, 
                                     Synch_Static_Receiver, 
                                     ACE_Schedule_All_Threaded_Strategy<Synch_Thr_Logging_Handler_Static_Receiver> > 
                  Synch_Thr_Logging_Handler_Static_Receiver_Acceptor;                  

// Instance based log message receivers 
typedef Log_Message_Receiver<ACE_LOGGER_SYNCH> Synch_Receiver;

typedef ACE_Server_Logging_Handler<Synch_Receiver> Synch_Logging_Handler_Receiver;
typedef ACE_Thr_Server_Logging_Handler<Synch_Receiver> Synch_Thr_Logging_Handler_Receiver;
                                 
typedef ACE_Server_Logging_Acceptor_T<Synch_Logging_Handler_Receiver, 
                                     Synch_Receiver, 
                                     ACE_Schedule_All_Reactive_Strategy<Synch_Logging_Handler_Receiver> > 
                  Synch_Logging_Handler_Receiver_Acceptor;                  

typedef ACE_Server_Logging_Acceptor_T<Synch_Thr_Logging_Handler_Receiver, 
                                     Synch_Receiver,
                                     ACE_Schedule_All_Threaded_Strategy<Synch_Thr_Logging_Handler_Receiver> > 
                  Synch_Thr_Logging_Handler_Receiver_Acceptor;                  

// Define external acceptors
typedef  Null_Synch_Logging_Handler_Static_Receiver_Acceptor ACE_Server_Logging_Acceptor;
typedef  Synch_Thr_Logging_Handler_Static_Receiver_Acceptor ACE_Thr_Server_Logging_Acceptor;

//typedef  Synch_Logging_Handler_Receiver_Acceptor ACE_Server_Logging_Acceptor;
//typedef  Synch_Thr_Logging_Handler_Receiver_Acceptor ACE_Thr_Server_Logging_Acceptor;


ACE_SVC_FACTORY_DECLARE (ACE_Server_Logging_Acceptor)
ACE_SVC_FACTORY_DECLARE (ACE_Thr_Server_Logging_Acceptor)

#endif