blob: 8dd11836a7bdf106af08c80940b362e61a252fc6 (
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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
|
/* -*- C++ -*- */
// $Id$
//
// ============================================================================
//
// = LIBRARY
// ORBSVCS Notification
//
// = FILENAME
// Notify_Default_CO_Factory.h
//
// = DESCRIPTION
// Default factory for channel objects.
//
// = AUTHOR
// Pradeep Gore <pradeep@cs.wustl.edu>
//
// ============================================================================
#ifndef NOTIFY_DEFAULT_CO_FACTORY_H
#define NOTIFY_DEFAULT_CO_FACTORY_H
#include "ace/pre.h"
#include "Notify_Channel_Objects_Factory.h"
#include "notify_export.h"
#include "ace/Service_Config.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
class TAO_Notify_Export TAO_Notify_Default_CO_Factory : public TAO_Notify_CO_Factory
{
// = TITLE
// TAO_Notify_Default_CO_Factory
//
// = DESCRIPTION
// Default Channel Objects factory
//
public:
TAO_Notify_Default_CO_Factory (void);
~TAO_Notify_Default_CO_Factory ();
static int init_svc (void);
// Helper function to register the default factory into the service
// configurator.
// = The Service_Object entry points
virtual int init (int argc, char* argv[]);
virtual int fini (void);
// = TAO_Notify_CO_Factory methods
// = Creation methods
TAO_Notify_EventChannel_i* create_event_channel (TAO_Notify_EventChannelFactory_i* parent TAO_ENV_ARG_DECL);
// Create an Event Channel.
TAO_Notify_ConsumerAdmin_i* create_consumer_admin (TAO_Notify_EventChannel_i* channel TAO_ENV_ARG_DECL);
// Create a Consumer Admin.
TAO_Notify_SupplierAdmin_i* create_supplier_admin (TAO_Notify_EventChannel_i* channel TAO_ENV_ARG_DECL);
// Create a Supplier Admin.
TAO_Notify_FilterFactory_i* create_filter_factory (TAO_ENV_SINGLE_ARG_DECL);
// Create the Filter Factory.
// = Proxy Creation methods.
TAO_Notify_StructuredProxyPushSupplier_i* create_struct_proxy_pushsupplier (TAO_Notify_ConsumerAdmin_i* parent TAO_ENV_ARG_DECL);
// Create a Structured ProxyPushSupplier.
TAO_Notify_SequenceProxyPushSupplier_i* create_seq_proxy_pushsupplier (TAO_Notify_ConsumerAdmin_i* parent TAO_ENV_ARG_DECL);
// Create a Sequence ProxyPushSupplier.
TAO_Notify_ProxyPushSupplier_i* create_proxy_pushsupplier (TAO_Notify_ConsumerAdmin_i* parent TAO_ENV_ARG_DECL);
// Create a ProxyPushSupplier.
TAO_Notify_StructuredProxyPushConsumer_i* create_struct_proxy_pushconsumer (TAO_Notify_SupplierAdmin_i* parent TAO_ENV_ARG_DECL);
// Create a Structured ProxyPushConsumer.
TAO_Notify_SequenceProxyPushConsumer_i* create_seq_proxy_pushconsumer (TAO_Notify_SupplierAdmin_i* parent TAO_ENV_ARG_DECL);
// Create a Sequence ProxyPushConsumer.
TAO_Notify_ProxyPushConsumer_i* create_proxy_pushconsumer (TAO_Notify_SupplierAdmin_i* parent TAO_ENV_ARG_DECL);
// Create a ProxyPushConsumer.
//= Locks
// = Methods to create locks.
ACE_Lock* create_channel_factory_lock (TAO_ENV_SINGLE_ARG_DECL);
// Create lock type used by channel factory.
ACE_Lock* create_event_channel_lock (TAO_ENV_SINGLE_ARG_DECL);
// Create lock type used by EC's.
ACE_Lock* create_consumer_admin_lock (TAO_ENV_SINGLE_ARG_DECL);
// Create lock type used by Consumer Admin's.
ACE_Lock* create_supplier_admin_lock (TAO_ENV_SINGLE_ARG_DECL);
// Create lock type used by Supplier Admin's.
ACE_Lock* create_proxy_supplier_lock (TAO_ENV_SINGLE_ARG_DECL);
// Create lock type used by proxy supplier.
ACE_Lock* create_proxy_consumer_lock (TAO_ENV_SINGLE_ARG_DECL);
// Create lock type used by proxy consumer.
};
ACE_STATIC_SVC_DECLARE (TAO_Notify_Default_CO_Factory)
ACE_FACTORY_DECLARE (TAO_Notify,TAO_Notify_Default_CO_Factory)
#include "ace/post.h"
#endif /* NOTIFY_DEFAULT_CO_FACTORY_H */
|