summaryrefslogtreecommitdiff
path: root/netsvcs/lib/Server_Logging_Handler.h
blob: 3f20c55dbfa375a981593aa32680994cc1242307 (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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
/* -*- C++ -*- */
// $Id$

// ============================================================================
//
// = LIBRARY
//    ace
//
// = FILENAME
//    Server_Logging_Handler.h
//
// = AUTHOR
//    Doug Schmidt and Per Andersson
//
// ============================================================================

#ifndef ACE_SERVER_LOGGING_HANDLER_H
#define ACE_SERVER_LOGGING_HANDLER_H

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

// typedefs for Logging Handlers & acceptors using a static
// type based log message receivers.

// Synched and NULL synched 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;

// NULL synched logging handler
typedef ACE_Server_Logging_Handler<Null_Synch_Static_Receiver> Null_Synch_Logging_Handler_Static_Receiver;

// synched logging handlers
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;

// NULL synched logging acceptor
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;

// NULL synched logging acceptors
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;

// typedefs for Logging Handlers & acceptors using a instance
// based log message receivers.

// Synched message receivers
typedef Log_Message_Receiver<ACE_LOGGER_SYNCH> Synch_Receiver;

// synched logging handlers
typedef ACE_Server_Logging_Handler<Synch_Receiver> Synch_Logging_Handler_Receiver;
typedef ACE_Thr_Server_Logging_Handler<Synch_Receiver> Synch_Thr_Logging_Handler_Receiver;

// synched logging acceptors
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

// acceptors that use static/type based log message receiver
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;

// acceptors that use instance based log message receiver
//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 /* ACE_SERVER_LOGGING_HANDLER_H */